MATLAB: Do I get the errors about duplicate files with the packNgo function in Real-Time Workshop 5.1 (R2008a)

Embedded Coder

When I execute the code
packNGo(buildInfo, {'packType', 'hierarchical'})
I get the error
??? Error using ==> locCheckForDups at 230
The following files have the same file name which cannot be packaged
together in a flat hierarchy:
C:/LowProfile/ICPS/ICPSSubsystem_ert_rtw\ICPSSubsystem.h
C:\LowProfile\ICPS\ICPSSubsystem_ert_rtw\ICPSSubsystem.h
C:/LowProfile/ICPS/ICPSSubsystem_ert_rtw\ICPSSubsystem_private.h
C:\LowProfile\ICPS\ICPSSubsystem_ert_rtw\ICPSSubsystem_private.h
C:/LowProfile/ICPS/ICPSSubsystem_ert_rtw\ICPSSubsystem_types.h
C:\LowProfile\ICPS\ICPSSubsystem_ert_rtw\ICPSSubsystem_types.h
C:/LowProfile/ICPS/ICPSSubsystem_ert_rtw\rtwtypes.h
C:\LowProfile\ICPS\ICPSSubsystem_ert_rtw\rtwtypes.h

Best Answer

The packNgo function does not work with RTW generated makefiles.
In order to use the packNgo function uncheck the 'Generate Makefile' option from the Real-Time Workshop settings in the Configuration Parameters window.
For more information on the limitations of the packNgo function see the documentation section titled 'packNGo Function Limitations'.
You can open the documentation directly by executing the following in a MATLAB 2008a command window:
web([docroot '/toolbox/rtw/ug/bqufw6y.html#bquf1h7'])