Re: [Dev-C++] Re: Creating import libraries
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Gregor P. <pe...@in...> - 2002-01-09 16:56:49
|
Let me guess you are using the mingw-compiler? Got some problems with it myself here http://www.cygwin.com/ml/cygwin/1999-12/msg00382.html is a bug report which talks about 'interesting link time errors'. Some of my problems (all of my 'undefined references') get solved by switching to the cygwin compiler. The Problem with the cygwin compiler is it isn't the easiest to install and its 'stdlib.h' does not declare the itoa(..)function which I personally need. So this tradeoff is on yourself. If you are not shure if your libs are OK pack them via the ar-tool from cygwin. The command ar rsc libWhateverYouWant.a *.o packs all object code into the lib file 'libWhateverYouWant.a' which get used by Dev-C++ as -lWhateverYouWant Hope this helps Gregor (pe...@in...) DXFX wrote: > I'm sorry, but I stated it wrong... > > I have the DLLs, precompiled for me. Particularly, the .DLL files is what I have. > > What I know is to use this DLLs in new programs, I have to make interface libraries for the DLLs... How do I do that? I've been trying to use dlltool with this purpose. I'm using the following in the command line... > > dlltool -D MyDLL.dll -l MyDLL.a > > and the interface library comes out just fine. However, When I try to compile programs linking with the library, I'm still getting undefined references to functions. I have made a header file for the library, which contains the DLLs exported functions... but when I compile, I get the an undefined reference to the functions. > > Am I doing the thing right? I created the import/interface library then created my own header files. I included this header files with my code, then linked with the interface library... was it right? > > __________________________________ > www.edsamail.com > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > |