Subject: Syntax errors while compiling
From: [email-masked] (Kai Szymanski)

9 Apr 1997 17:10:45 -0700
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
Original-To: [email-masked]
X-Mailer: Forte Agent 1.0/32.390
X-MIME-Autoconverted: from quoted-printable to 8bit by cygnus.com id GAA28037
Original-Sender: [email-masked]

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: [email-masked] <Kai Szymanski>
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".