[Dev-C++] Possible bug in C preprocessor?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Cesar R. <cs...@uo...> - 2002-09-06 00:43:30
|
Folks,
After I updated my Devcpp installation to the present 4.9.5.2 I'm
experiencing a weird bug:
The way to produce it in my installation is as follows:
1) Create a new project;
2) choose "Windows Application";
3) choose "C project" in the radio buttons;
4) let the default source be main.c;
5) compile the project.
You get the following compiler log:
Building Makefile: "C:\Meus documentos\Makefile.win"
Executando make...
make.exe -f "C:\Meus documentos\Makefile.win" all
gcc.exe -c ../Dev-C++/Templates/main.c -o ../Dev-C++/Templates/main.o
-I"C:\DEV-C++\include" -g3 -mwindows
In file included from C:/DEV-C++/include/windows.h:117,
from ../Dev-C++/Templates/main.c:1:
C:/DEV-C++/include/winnls.h:415: redefinition of `LONG_PTR'
C:/DEV-C++/include/basetsd.h:94: `LONG_PTR' previously declared here
make.exe: *** [../Dev-C++/Templates/main.o] Error 1
Execu=E7=E3o terminada
-----------------------------
The include file 'winnls.h' line 415 (below), seems to me to be
correctly guarded by an ifndef and basetsd.h is include in windows.h at
line 107 ten lines before winnls.h!
414: #ifndef _BASETSD_H
415: typedef long LONG_PTR;
416: #endif=20
Are you experiencing something similar?
--=20
Cesar Rabak
GNU/Linux User 52247.
Get counted: http://counter.li.org/
|