Info
此问题已关闭。 请重新打开它进行编辑或回答。
How to load the shared library when you have many headers files to be included
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
此问题已关闭。
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!