Web lists-archives.com

Re: [Mingw-users] newbie errors




> From: Ralph Hipps <ralph.hipps@xxxxxxxxx>
> Date: Sun, 27 Nov 2016 09:07:20 -0800
> 
> c:\ash>dir
> Directory of c:\ash
> 
> 02/28/2014 12:00 PM 2,749 aadetect.c
> 02/28/2014 12:00 PM 28,126 aardvark.c
> 02/28/2014 12:00 PM 55,598 aardvark.dll
> 02/28/2014 12:00 PM 25,398 aardvark.h
> 11/24/2016 12:36 PM 5,726 aaspi_file.c
> 11/27/2016 08:58 AM 3,457 aaspi_file.o <----- .o object file created ok
> 02/28/2014 12:00 PM 2,919 Makefile
> 11/23/2016 09:52 PM 2,638 MinGW for First Time Users.txt
> 
> c:\ash>gcc -Wl,--no-undefined -Llib -o aaspi_file.exe aaspi_file.o -laardvark
> 
> c:/mingw/bin/../lib/gcc/mingw32/5.3.0/../../../../mingw32/bin/ld.exe: cannot find -laardvark
> collect2.exe: error: ld returned 1 exit status

Try "-L ." instead of "-Llib".  IOW, GCC needs to be told where to
look for aardvark.dll, if it is not in the "usual" places, where all
the other libraries are kept.


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