This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Syntax errors while compiling
- To: GNU-WIN32 at cygnus dot com
- Subject: Syntax errors while compiling
- From: kai at netwave dot de (Kai Szymanski)
- Date: Wed, 09 Apr 1997 13:14:14 GMT
- Organization: Netwave GmbH, Meierstr. 4, 28203 Bremen, Phone: +49-421-5571-7, Fax: +49-421-5571-810
Hello.
Yesterday i've installed the CygWin32 GCC. My first example
--- Snip
#include <stdio.h>
#include <windows32/sockets.h>
void main()
{
struct hostend *h;
h = (struct hostent *)gethostbyname("localhost");
printf("Name: %s\n",h->h_name);
}
-- Snip
A very stupid program :) If i try to compile it, the compiler
says that there is an syntax error in sockets.h in several lines. This
lines (30-40 of them) looks like this:
int PASCAL __FOO
The compiler says the syntaxerror occurs before __FOO...
I use the normal Dosshell to run the gcc. If i compile
the wonderfull Hello-World-Program, the gcc compiles it
without any error...
What is my problem ?
Thanks for your help.
Beste regards,
Kai Szymanski.
--
email: kai@netwave.de <Kai Szymanski>
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".