Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
How to load the shared library when you have many headers files to be included
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I have a shared library, that needs many headers to be included so I use the includepath option, but it fails when I want to use more than 120 include path's. So below is the code , where I have included 8 includepath, but when I want to includepath more than 120, I get an error:
Error using loadlibrary (line 447)
Failed to preprocess the input file.
Output from preprocessor is:The command line is too long.
My code:
[notfound, warnings] = loadlibrary('libfile', 'libfile.h', 'includepath', 'C:\Project\Prog1\_inc'...
, 'includepath', 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include'...
, 'includepath', 'C:\Tools\API1\Includes'...
, 'includepath', 'C:\Tools\API1\Core'...
, 'includepath', 'C:\Program Files\Microsoft SDKs\Windows\v7.1\Include'...
, 'includepath', 'C:\Project\Prog2\_inc'...
, 'includepath', 'C:\Project\Prog3\_inc'...
, 'includepath', 'C:\Project\Prog4\_inc'...
)
If somebody can please help me with some alternative for this or some options available when I want to include more than 120 path's.
0 comentarios
Respuestas (0)
La pregunta está cerrada.
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!