delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/04/09/17:10:45

From: kai AT netwave DOT de (Kai Szymanski)
Subject: Syntax errors while compiling
9 Apr 1997 17:10:45 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <33519457.2309416.cygnus.gnu-win32@pgp.netwave.de>
Mime-Version: 1.0
Original-To: GNU-WIN32 AT cygnus DOT com
X-Mailer: Forte Agent 1.0/32.390
X-MIME-Autoconverted: from quoted-printable to 8bit by cygnus.com id GAA28037
Original-Sender: owner-gnu-win32 AT cygnus DOT com

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 AT netwave DOT de <Kai Szymanski>
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019