Article View: gnu.gcc.help
Article #42852G++ and Windows95
From: Wartenweiler Walter
Date: Mon, 30 Oct 1995 00:00
Date: Mon, 30 Oct 1995 00:00
51 lines
2611 bytes
2611 bytes
Hye !
Sorry if there was a similar post but I've encounterd some problems with
my news system ....
I tried to compile the following code with gcc for win32 :
#include <windows.h>
main()
{}
If compiling as C code (gcc essai.c -o essai.exe) everything goes fine but
If compiling as C++ code (gcc essai.cc -o essai.exe) it produced the following
errors :
c:\\apps\\gcc\\include/windef.h:4: syntax error before `__attribute__'
In file included from c:\\apps\\gcc\\include/windows.h:8,
from essai.cpp:1:
c:\\apps\\gcc\\include/wingdi.h:360: syntax error before `('
c:\\apps\\gcc\\include/wingdi.h:360: `FARPROC' was not declared in this scope
c:\\apps\\gcc\\include/wingdi.h:360: syntax error before `,'
c:\\apps\\gcc\\include/wingdi.h:362: syntax error before `__attribute__'
c:\\apps\\gcc\\include/wingdi.h:376: type specifier omitted for parameter
c:\\apps\\gcc\\include/wingdi.h:377: `FARPROC' was not declared in this scope
c:\\apps\\gcc\\include/wingdi.h:377: syntax error before `)'
In file included from c:\\apps\\gcc\\include/windows.h:10,
from essai.cpp:1:
c:\\apps\\gcc\\include/winkernel.h:707: syntax error before `__attribute__'
c:\\apps\\gcc\\include/winkernel.h:708: syntax error before `__attribute__'
c:\\apps\\gcc\\include/winkernel.h:710: syntax error before `__attribute__'
c:\\apps\\gcc\\include/winkernel.h:711: syntax error before `__attribute__'
c:\\apps\\gcc\\include/winkernel.h:858: syntax error before `__attribute__'
c:\\apps\\gcc\\include/winkernel.h:871: syntax error before `*'
c:\\apps\\gcc\\include/winkernel.h:883: syntax error before `*'
In file included from c:\\apps\\gcc\\include/windows.h:14,
from essai.cpp:1:
c:\\apps\\gcc\\include/wincon.h:57: semicolon missing after struct declaration
Do you have an idea of what caused that ?
I'm in a hurry because it's part of my diploma work at the Federal Institute of
Technology in Lausanne....
Thanks a lot
Walter Wartenweiler
Technical Details
Message-ID:
<472oce$onn@disunms.epfl.ch>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,b1f445455e913ac4,start X-Google-Attributes: gid11318c,public From: Wartenweiler Walter <wwartenw@studi.epfl.ch> Subject: G++ and Windows95 Date: 1995/10/30 Message-ID: <472oce$onn@disunms.epfl.ch> X-Deja-AN: 118303489 content-type: text/plain; charset=us-ascii organization: Ecole Polytechnique Federale de Lausanne (Laboratoire de Teleinformatique) x-url: news://dinews/gnu.gcc.help#00000D5100000B01@nashville.com mime-version: 1.0 newsgroups: gnu.gcc.help x-mailer: Mozilla 1.1N (X11; I; OSF1 V3.2 alpha)