Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

How to load the shared library when you have many headers files to be included

1 Ansicht (letzte 30 Tage)
Sandeep
Sandeep am 1 Okt. 2015
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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.

Antworten (0)

Diese Frage ist geschlossen.

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by