|
From: Eli Z. <el...@gn...> - 2016-10-01 15:36:53
|
> From: "Jannick" <thi...@gm...> > Date: Sat, 1 Oct 2016 14:15:10 +0200 > > mingw32-g++.exe -o t.exe main.c -lbfd -lintl -liberty -lz > > should be fine, in principle, i.e. MinGW’s bfd appears to depend on the libraries intl, (l)iberty and z, at least. > For MinGW compilation gcc needs -LC:\MinGW\msys\1.0\lib for linking. But still, the MinGW compiler is > complaining: > > c:/mingw/bin/../lib/gcc/mingw32/5.3.0/../../../libbfd.a(archive.o):(.text+0x3f4): undefined reference to > `filename_ncmp' filename_ncmp is in libiberty.a, so I don't understand why you are getting these unresolved externals. Perhaps your libiberty.a is from an old distribution? |