Web lists-archives.com

[Mingw-users] newbie errors




Ok, I know I’m a newb, but I need help getting started on something urgent.

 

I’ve installed gcc, seems to be working, path is set, etc.

 

I’m getting errors about not finding stuff even tho it’s in the directory my source is in, and I’m in that dir when I invoke the tools. Seems a bit odd. I’m running on Win7 Enterprise.

 

Any suggestions?

 

aaspi_file.c has:

 

#include <stdio.h>

#include <stdlib.h>

#include "aardvark.h"

 

But….

 

C:\ash>gcc aaspi_file.c aardvark.h -o prog_ice.exe

 

C:\Users\rhipps\AppData\Local\Temp\cc6bFg5w.o:aaspi_file.c:(.text+0xa0): undefined reference to `aa_spi_write'

C:\Users\rhipps\AppData\Local\Temp\cc6bFg5w.o:aaspi_file.c:(.text+0xb4): undefined reference to `aa_status_string'

C:\Users\rhipps\AppData\Local\Temp\cc6bFg5w.o:aaspi_file.c:(.text+0x21c): undefined reference to `aa_sleep_ms'

C:\Users\rhipps\AppData\Local\Temp\cc6bFg5w.o:aaspi_file.c:(.text+0x309): undefined reference to `aa_open'

C:\Users\rhipps\AppData\Local\Temp\cc6bFg5w.o:aaspi_file.c:(.text+0x35a): undefined reference to `aa_configure'

C:\Users\rhipps\AppData\Local\Temp\cc6bFg5w.o:aaspi_file.c:(.text+0x36e): undefined reference to `aa_target_power'

C:\Users\rhipps\AppData\Local\Temp\cc6bFg5w.o:aaspi_file.c:(.text+0x399): undefined reference to `aa_spi_configure'

C:\Users\rhipps\AppData\Local\Temp\cc6bFg5w.o:aaspi_file.c:(.text+0x3ad): undefined reference to `aa_spi_bitrate'

C:\Users\rhipps\AppData\Local\Temp\cc6bFg5w.o:aaspi_file.c:(.text+0x3e5): undefined reference to `aa_close'

collect2.exe: error: ld returned 1 exit status

 

C:\ash>gcc aaspi_file.c -l aardvark.dll -o prog_ice.exe

 

c:/mingw/bin/../lib/gcc/mingw32/5.3.0/../../../../mingw32/bin/ld.exe: cannot find -laardvark.dll

collect2.exe: error: ld returned 1 exit status

 

C:\ash>gcc aaspi_file.c -l aardvark.h -o prog_ice.exe

 

c:/mingw/bin/../lib/gcc/mingw32/5.3.0/../../../../mingw32/bin/ld.exe: cannot find -laardvark.h

collect2.exe: error: ld returned 1 exit status

 

Thanks, and Happy Holidays!

 

Ralph Hipps

 

 

 

 

Ralph

>+<
 |    /\
 |___/  \
 [_@_]   `<
 O O O   
      IRS!
------------------------------------------------------------------------------------
In the twenty-first century, the robot will take the place
which slave labor occupied in ancient civilization.
 -- Nikola Tesla
------------------------------------------------------------------------------------

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