Simulink library linking error
Show older comments
Hi all,
I have the following situation:
1) I have a sfunction builder block, where I have defined a function in C, which uses external library (libxml2 to be precise). I use visual studio 2010 to compile the sfunction.
2) I am able to build the sfunction, and when I simulate/run on computer, the system responds the way I want it.
3) Trying to build the model though creates an error.
To be precise, the error I get on matlab command prompt is:
LINKING APPLICATION ...
< lnkppc >
(E) #A0368-D Unresolved external:
xmlParseDoc (first referenced in module: parse.o50)
xmlCharStrdup (first referenced in module: parse.o50)
xmlDocGetRootElement (first referenced in module: parse.o50)
Errors: 1, Warnings: 0
-- call "C:\SW\dSPACE RCPHIL 7.4\Compiler\PPCTools37\BIN\lnkppc.exe" -K0 -QmsA0314 -QmeA0307 -QmeA0329 -m..\test_parser.map -o ..\test_parser.ppc -c _tmp_test_parser.lk
LINKING FAILED (1)
MAKE PROCESS ABORTED
Any help would be deeply appreciated! Thanks in advance!
Accepted Answer
More Answers (0)
Categories
Find more on Simulink Coder in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!