[Metakit] Trouble with linking C++ DLLs

Jean-Claude Wippler jcw at equi4.com
Fri Nov 4 10:38:18 CET 2005


gdedwards at blueyonder.co.uk 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



More information about the Metakit mailing list