From: SourceForge.net <no...@so...> - 2005-09-15 08:03:24
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=3339736 By: miro I am having the main C++ program (compiled using g++) dependent on a C static library (compiled using gcc). Both projects compile OK, but at the link stage I get bunch of "undefined reference ..." errors: ./bin/IOLayerZlib.o(.text+0x19e): In function `ZN11IOLayerZlib10InitializeEi': d:/tmp/notecase-1.0.7/./src/lib/IOLayerZlib.cpp:34: undefined reference to `deflateInit_' ./bin/IOLayerZlib.o(.text+0x1c4):d:/tmp/notecase-1.0.7/./src/lib/IOLayerZlib.cpp:36: undefined reference to `inflateInit_' ./bin/IOLayerZlib.o(.text+0x4d3): In function `ZN11IOLayerZlib8FinalizeEv': d:/tmp/notecase-1.0.7/./src/lib/IOLayerZlib.cpp:113: undefined reference to `deflateEnd' ... On my link line, I've tried to use both "-lz" and explicit "./bin/obj/libz.a" dependencies, but these both fail the same way. Note that compiling with Linux Makefile or Visual Studio 6.0 works fine. What could be the problem ? I've put the full sources online at: http://notecase.sourceforge.net/temp/notecase-1.0.7pre8.zip (makefiles for MinGW have .mingw extension) TIA ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=286529 |