Thread Subject: wrong compiler parameters using rtw

Subject: wrong compiler parameters using rtw

From: Martin

Date: 26 Nov, 2009 13:37:20

Message: 1 of 2

Hello,

when I try to run the rtw_demos for the embedded coder, I got the error message :

### Compiling "rtwdemo_PCG_Eval_P1_sfun.c"
cl.exe /c /Zp8 /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD /I "c:\matlab\work\rtw_demos\sfprj\build\rtwdemo_pcg_eval_p1\sfun\src" /I "c:\matlab\work\rtw_demos" /I "c:\program" /I "c:\matlab\work\rtw_demos\files\matlab\r2007b\toolbox\rtw\rtwdemos\embeddedcoderoverview" /I "c:\program files\matlab\r2007b\extern\include" /I "c:\program files\matlab\r2007b\simulink\include" /I "c:\program files\matlab\r2007b\stateflow\c\mex\include" /I "c:\program files\matlab\r2007b\stateflow\c\debugger\include"" ""rtwdemo_PCG_Eval_P1_sfun.c"
rtwdemo_PCG_Eval_P1_sfun.c
c:\matlab\work\rtw_demos\sfprj\build\rtwdemo_pcg_eval_p1\sfun\src\rtwdemo_PCG_Eval_P1_sfun.h(17) : fatal error C1083: Cannot open include file: 'ThrottleBus.h': No such file or directory
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.exe"' : return code '0x2'
Stop.
_________________________________________

Obviously the include path is wrong, but I don't know how to fix it. I proved it by correcting the path and running the compile command in the matlab console window. This works fine, but how and where can I change the compiler's include path. The given settings are neither given in simulinks configuration parameter menu nor in the msvc80.opts file. Does anyone know why I get these wrong parameters

Thanks

Martin

Subject: wrong compiler parameters using rtw

From: Brian Neumann

Date: 19 Jul, 2011 21:22:08

Message: 2 of 2

Search the doc for "CustomLibrary" (without the quotes).

In terms of the model, the location to specify include paths and libraries is under the following menu:
Tools->Real-Time Workshop->Options...
this opens the Configuration Parameters. Choose the Real-Time Workshop -> Custom Code

Two sections handle headers
Include custom C code... Header file
and
Include list of additional.. Include directories

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
rtw Brian Neumann 19 Jul, 2011 17:24:10
include path Brian Neumann 19 Jul, 2011 17:24:10
header files Brian Neumann 19 Jul, 2011 17:24:10
custom code Brian Neumann 19 Jul, 2011 17:24:10
rssFeed for this Thread

Contact us at files@mathworks.com