This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: compiler option

Basavaraj Hiremath wrote:
I am compiling a file(strerror.c) with following
-bash-2.05b$ arm-wince-pe-gcc -mcpu=xscale -c -ansi
-D__stdcall= -D_OFF_T_ -DHA
VE_CONFIG_H -I/usr/local/wince/cross-tools/include -I. -I./../include -W -Wal
l -Wtraditional -pedantic ./strerror.c -o

It's giving following compilation error /strerror.c:626: error: expected identifier or '(' before string constant /strerror.c:628: error: expected identifier or '(' before '{' token

file strerror.c has following function

char *
strerror (errnoval)  -> line 626
  int errnoval;
{                    --> line 628
  const char *msg;
  static char buf[32];

Could somebody tell me, what is the compiler option to go pass thru this kind of implementation?

I don't know that gcc has an option to accept such non-standard code. I don't see how this is on topic for cygwin, particularly since cross compilers aren't part of the distribution.

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]