|
From: Alan W. I. <ir...@be...> - 2016-10-01 16:09:52
|
On 2016-10-01 14:15+0200 Jannick wrote: > mingw32-g++.exe -o t.exe main.c -lbfd -lintl -liberty -lz Hi Jannick: I am just lurking on this list out of general (future) interest and don't have MinGW-w64/MSYS2 actually available to me yet. Neverthless, out of curiosity, I checked your first undefined reference, filename_ncmp with a google search (google is always your friend for undefined reference issues), and that routine is apparently defined by the libiberty library. So I agree you should be using at least the -liberty flag above (since -liberty should normally translate to whatever the actual libiberty library name is on MinGW-w64/MSYS2). But since that flag is obviously not finding the libiberty library, my guess is you don't have the libiberty development library installed. Have you searched your MinGW-w64/MSYS2 installation for any reference to the "iberty" name fragment? Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |