S-function builder does not find limits.h
Mostrar comentarios más antiguos
Hi,
I'm trying to create a very simple s-function, just feeding through the input, using the s-function builder. I get an error saying that limits.h cannot be found. Limits.h is included by math.h, which I included. It does not help to add the path to limits.h, it still cannot be found.
regards, Fredrik
error message:
noop.c C:\PROGRA~1\MATLAB\R2012A\simulink\include\simstruc.h(147) : fatal error C1083: Cannot open include file: 'limits.h': No such file or directory
C:\PROGRA~1\MATLAB\R2012A\BIN\MEX.PL: Error: Compile of 'noop.c' failed.
4 comentarios
Titus Edelhofer
el 4 de Jun. de 2012
Which C compiler do you use? I.e., when running "mex -setup", which did you choose?
Melquisedec Andrade
el 9 de Ag. de 2012
I have the same problem. I'm using Microsoft Software Development Kit (SDK) 7.1 compiler. Before of I can see that problem I can't compile my s-fuction's file and the matlab show the messagem below:
Error using mex (line 206) Unable to complete successfully.
Error in C:\Program Files (x86)\MATLAB\R2012a\toolbox\simulink\simulink\+legacycode\@LCT\compile.p>compile (line 268)
I searched some solution and I found a group talking about and say to add the string "%MATLAB%\simulink\include" in the file mexopts.bat in the line "set INCLUDE" but the problems remains.
What should I do? I appreciate any help.
Kaustubha Govind
el 10 de Ag. de 2012
limits.h is a standard C header that should come with your compiler. Could you try doing a search in your SDK installation and see if it exists. Also, when you run "mex -setup", make sure that MATLAB is able to find your compiler automatically. If you have to provide the path manually, there might be something wrong in the configuration.
Melquisedec Andrade
el 13 de Ag. de 2012
Editada: Melquisedec Andrade
el 13 de Ag. de 2012
Well in my SDK installation the header does not exist indeed, then I added limits.h in the matching path but I still can't compile my project. The following error occurs:
### Start Compiling patientReaderSfun mex('patientReaderSfun.c', 'C:\Users\Melqui\Documents\MATLAB\model\ExtendedGPCA\PatientDataReaderLCT.c', '-IC:\Users\Melqui\Documents\MATLAB\model\ExtendedGPCA') PatientDataReaderLCT.obj : error LNK2005: _selectedLine already defined in patientReaderSfun.obj Creating library C:\Users\Melqui\AppData\Local\Temp\mex_Zllohm\templib.x and object C:\Users\Melqui\AppData\Local\Temp\mex_Zllohm\templib.exp patientReaderSfun.mexw32 : fatal error LNK1169: one or more multiply defined symbols found
C:\PROGRA~2\MATLAB\R2012A\BIN\MEX.PL: Error: Link of 'patientReaderSfun.mexw32' failed.
Currently I'm working on GPCA pump model of FDA and I can't execute the model because of these problens.
Respuestas (0)
Categorías
Más información sobre Troubleshooting in MATLAB Compiler SDK en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!