Re: Trouble with linking C++ DLLs
Jean-Claude Wippler <[email protected]> Fri, 4 Nov 2005 10:38:18 +0100
| Newsgroups | gmane.comp.db.metakit |
|---|---|
| Message-ID | <[email protected]> |
[email protected] wrote: >> g++ -I./include -L./bin main.cpp -lmk4vc60 -o mktest.exe >> >> I get the following errors: >> >> C:\...\Temp/cc0Iaaaa.o(.text+0x155):main.cpp: undefined reference to >> `c4_Storage::c4_Storage()' >> C:\...\Temp/cc0Iaaaa.o(.text+0x160):main.cpp: undefined reference to >> `c4_Storage::~c4_Storage()' >> collect2: ld returned 1 exit status >> >> I'm sure that I'm probably overlooking something simple, but I'm >> having a devil of a time figuring out what. Any help will be greatly >> appreciated. [...] > So I think you would have to rebuild the Metakit DLL with MinGW for > this > to work. That would be my guess too. > Which brings me to a follow-up question which I also need the > answer to > because it looks like I need to do it too: Has anyone had experience > compiling Metakit with the MSYS/MinGW toolset? Does it Just Work? Yes, it should. Something like: cd builds sh ../unix/configure make I.e. the same way things get built on Unix. -jcw _____________________________________________ Metakit mailing list - [email protected] http://www.equi4.com/mailman/listinfo/metakit