Web lists-archives.com

Re: [Mingw-users] newbie errors




> ok, tried a couple different things based on suggestions received,
> still no joy. I'm sure I'm forgetting something or doing something
> stupid, but I haven't figured out what just yet.

> perhaps the makefile has some useful info.... I've looked at it but so far not sure I can use it right now.

> Thanks, and Happy Holidays!
Which holidays are you talking about? School holidays?

> If you are writing a program yourself, take a seat, relax and dust out
> some C primer book or tutorial: you are not hitting yet a MinGW issue,
> but just standard build issues.
It seems to be quite hard to explain (or teach) something to beginners via this 'medium', doesn't it?

The steps below work fine for me!

$ gcc -Iinclude -o aaspi_file.o -c aaspi_file.c

$ gcc -Wl,--no-undefined -Llib -o aaspi_file.exe aaspi_file.o -laardvark

$ dir
total 143
drwxr-xr-x 5 Administrator Administrators  4096 Nov 25 20:43 .
drwxr-xr-x 4 Administrator Administrators  8192 Nov 25 20:20 ..
-rwxr-xr-x 1 Administrator Administrators 61737 Nov 25 20:37 aardvark.dll
-rw-r--r-- 1 Administrator Administrators  5558 Feb 28  2014 aaspi_file.c
-rwxr-xr-x 1 Administrator Administrators 60741 Nov 25 20:43 aaspi_file.exe
-rw-r--r-- 1 Administrator Administrators  3561 Nov 25 20:43 aaspi_file.o
drwxr-xr-x 2 Administrator Administrators     0 Nov 25 20:33 bin
drwxr-xr-x 2 Administrator Administrators     0 Nov 25 20:34 include
drwxr-xr-x 2 Administrator Administrators     0 Nov 25 20:34 lib

Administrator@melbourne /src/aardvark
$ aaspi_file.exe
usage: aaspi_file PORT MODE filename
  mode 0 : pol = 0, phase = 0
  mode 1 : pol = 0, phase = 1
  mode 2 : pol = 1, phase = 0
  mode 3 : pol = 1, phase = 1

  'filename' should contain data to be sent
  to the downstream spi device

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