Web lists-archives.com

Re: [Mingw-users] libaddr2line.a: dependencies of libbfd.a?

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 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

Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
MinGW-users mailing list

This list observes the Etiquette found at 
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

You may change your MinGW Account Options or unsubscribe at:
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe