From: Oscar F. <of...@wa...> - 2003-05-09 00:22:36
|
"ironhead" <iro...@ro...> writes: [snip] > g++ -mno-cygwin -o iTray main.o Tray.o -mwindows -luuid -lole32 > -lcomctl32 -L../Lib -liAPI -lbfd -liberty -L/usr/local/lib -lmpatrol > > C:/msys/1.0/local/lib/libmpatrol.a(symbol.o)(.text+0x100):symbol.c: > undefined reference to `bfd_close' [snip] Order matters. Put -lbfd *after* -lmpatrol. Usually, "most derived" libraries should appear first on the link command. OS system libraries are the "least derived" ones, thenn comes language implementation libraries (-lsupc++ and others), then tool libraries (such as mpatrol) then third party libraries and, finally, your own libraries. > C:/msys/1.0/local/lib/libmpatrol.a(symbol.o)(.text+0x119c):symbol.c: > undefined reference to `_imp__SymGetSymFromAddr@16' > C:/msys/1.0/local/lib/libmpatrol.a(symbol.o)(.text+0x11c5):symbol.c: > undefined reference to `_imp__SymGetLineFromAddr@16' Put -limagehlp after -lbfd -- Oscar |