Hi. I'm working with the TS-7250, doing development under Cygwin.
I've run into a problem I beleive is with the path configuration. On
my first experiment with the board, I wrote some code to blink the
LEDs, which worked fine. My next try was to configure the serial port
and send and recieve some characters. After some checking I
discovered that the compiler was including the header files for the
Cygwin default gcc (x86). I've got a pretty good background with
embedded systems, but none with linux configuration. Is there any
standard makefile for setting up paths, etc?
The includes from my code are:
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/time.h>
#include <fcntl.h>
#include <termios.h>
My makefile includes the following lines:
ARMINCLUDE1 = -I/opt/crosstool/arm-unknown-linux-gnu/gcc-3.3.2-glibc-
2.3.2/arm-unknown-linux-gnu/include
ARMINCLUDE3 = -I/opt/crosstool/arm-unknown-linux-gnu/gcc-3.3.2-glibc-
2.3.2/arm-unknown-linux-gnu/lib/gcc-lib/arm-unknown-linux-
gnu/3.3.2/include
On my attempts to compile my code there have been problems finding a
number of items. The most common are:
error: parse error before "size_t"
error: parse error before "__gnuc_va_list"
These are from header files, since I haven't used them.
I realize there's probably more info needed, but any suggestions I
can get would be appreciated. Thanks.
Lee
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|