Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error loading a DLL (c++ code)

Status
Not open for further replies.

owsgeneral

Computer
Dec 14, 2005
2
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
 
Replies continue below

Recommended for you

I have used each of those with MATLAB on microsoft 6, 7 and with Borland 5 something. It might be your compilers library and not MATLAB. You Huffman library may expect the newer extensionless libraries as you listed them, but your compiler might have an older library. Try
#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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor