Error loading a DLL (c++ code)
Error loading a DLL (c++ code)
(OP)
I'm trying to load a c++ library called AdaptiveHuffman.
Here's some of the code:
libname = 'AdaptiveHuffman'
loadlibrary(libname, libname)
I've either the header file and dll file in this directory.
Here's the errors I got:
lcc preprocessor error: G:\src\TP2\AdaptiveHuffman.h:14 Could not find include file <iostream>
lcc preprocessor error: G:\src\TP2\AdaptiveHuffman.h:15 Could not find include file <vector>
lcc preprocessor error: G:\src\TP2\AdaptiveHuffman.h:16 Could not find include file <sstream>
lcc preprocessor error: G:\src\TP2\AdaptiveHuffman.h:17 Could not find include file <string>
lcc preprocessor error: G:\src\TP2\AdaptiveHuffman.h:18 Could not find include file <stdexcept>
Doesn't MATLAB support STL libs? <vector>, <string>, <sstream>, ...
Thanks for your time,
ows
Here's some of the code:
libname = 'AdaptiveHuffman'
loadlibrary(libname, libname)
I've either the header file and dll file in this directory.
Here's the errors I got:
lcc preprocessor error: G:\src\TP2\AdaptiveHuffman.h:14 Could not find include file <iostream>
lcc preprocessor error: G:\src\TP2\AdaptiveHuffman.h:15 Could not find include file <vector>
lcc preprocessor error: G:\src\TP2\AdaptiveHuffman.h:16 Could not find include file <sstream>
lcc preprocessor error: G:\src\TP2\AdaptiveHuffman.h:17 Could not find include file <string>
lcc preprocessor error: G:\src\TP2\AdaptiveHuffman.h:18 Could not find include file <stdexcept>
Doesn't MATLAB support STL libs? <vector>, <string>, <sstream>, ...
Thanks for your time,
ows





RE: Error loading a DLL (c++ code)
#include< iostream.h> and see your error list changes.
Also, I notice you use lcc. That is not C++, it is strictly c. So, that is definatly a problem you must fix. MATLAB supports C++, but they do not give away a free C++ compiler.
If you decide to go to Microsoft, Borland, or g++ let me know, I might have some tips for setting up MATLAB that might save you some time.