Web lists-archives.com

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




On 2016-10-01 09:09-0700 Alan W. Irwin wrote:

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

Oops. I am lurking on both the MinGW/MSYS list and the MinGW-w64/MSYS2
mailing lists and incorrectly assumed you were using the latter platform.  But since you are using
the former, please translate everything I said above as follows:

MinGW-w64/MSYS2 ==> MinGW/MSYS.

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
__________________________

------------------------------------------------------------------------------
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
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
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:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe