Thread: RE: [Dev-C++] RE: Help with wxWindows
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ken B. <ke...@al...> - 2002-11-07 15:07:27
|
Which version of Mingw (gcc -v) and which version of Dev-C++ are you using? Ken Bradford Alpha II Service, Inc. (614)868-5033 > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On Behalf Of Michael > Ivey > Sent: Thursday, November 07, 2002 3:22 AM > To: dev...@li... > Subject: [Dev-C++] RE: Help with wxWindows > > > Thanks Mark, I installed wxWindows from the DevPack. Trying to > compile the > template yields 6 errors, I'm not completely familiar with what > all of them > mean or how to solve them. Here's the compile log I get when > compiling it. > > Building Makefile: "C:\C++ Projects\wxtry\Makefile.win" > Executing make... > make.exe -f "C:\C++ Projects\wxtry\Makefile.win" all > g++.exe -c main.cpp -o > ain.o -I"C:/MinGW/include" -I"C:/MinGW/include" -D_X86_=1 > -DWIN32 -D_WIN32 > -D__WIN95__ -D__GNUWIN32__ -D__WIN32__ -DSTRICT -D__WXMSW__ > -D__WINDOWS__ > -fno-pcc-struct-return -fno-rtti -fno-exceptions > -fstrict-aliasing -ansi -s > -O3 -fexpensive-optimizations -mwindows > > In file included from C:/MinGW/include/wx/string.h:70, > from C:/MinGW/include/wx/memory.h:20, > > from C:/MinGW/include/wx/object.h:20, > from C:/MinGW/include/wx/wx.h:16, > from main.cpp:5: > C:/MinGW/include/wx/buffer.h: In constructor > `wxCharBuffer::wxCharBuffer(const > > char*)': > C:/MinGW/include/wx/buffer.h:33: `strdup' undeclared (first use this > function) > C:/MinGW/include/wx/buffer.h:33: (Each undeclared identifier is reported > only > once for each function it appears in.) > > In file included from C:/MinGW/include/wx/memory.h:20, > from C:/MinGW/include/wx/object.h:20, > > from C:/MinGW/include/wx/wx.h:16, > from main.cpp:5: > C:/MinGW/include/wx/string.h: In function `int Stricmp(const char*, const > char*)': > > C:/MinGW/include/wx/string.h:147: `strcasecmp' undeclared (first use this > function) > > In file included from C:/MinGW/include/c++/3.2/backward/iostream.h:31, > from C:/MinGW/include/wx/memory.h:33, > > from C:/MinGW/include/wx/object.h:20, > from C:/MinGW/include/wx/wx.h:16, > from main.cpp:5: > C:/MinGW/include/c++/3.2/backward/backward_warning.h:32:2: > warning: #warning > This file includes at least one deprecated or antiquated header. Please > consider using one of the 32 headers found in section 17.4.1.2 of the C++ > standard. Examples include substituting the <X> header for the > <X.h> header > for C++ includes, or <sstream> instead of the deprecated header > <strstream.h>. To disable this warning use -Wno-deprecated. > In file included from C:/MinGW/include/wx/utils.h:26, > from C:/MinGW/include/wx/cursor.h:20, > from C:/MinGW/include/wx/event.h:24, > from C:/MinGW/include/wx/wx.h:23, > from main.cpp:5: > C:/MinGW/include/wx/filefn.h: At global scope: > C:/MinGW/include/wx/filefn.h:51: syntax error before `=' token > > In file included from main.cpp:6: > main.h:62:8: warning: extra tokens at end of #endif directive > > make.exe: *** [main.o] Error 1 > > To email me, remove nospam/ from my email address. > > > > ------------------------------------------------------- > This sf.net email is sponsored by: See the NEW Palm > Tungsten T handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Santiago P. C. <San...@yd...> - 2002-11-07 15:14:38
|
Hi *,
Michael, I think you've got a problem with your include paths. If you take a
look at the output you've sent to us you'll find:
-I"C:/MinGW/include" -I"C:/MinGW/include"
Why to specify this twice?
I'm not familiar with wxWindows DevPack (sorry, I downloaded wxWindows
source and compiled it by myself), so I cannot tell you what are actually
the "extra" paths you must have... I'm not pretty sure about this (because
you may have all includes in the same dir... Who knows) but I think your
build process lacks some paths or the order of them is wrong, could you
check this please?
Anyway (hoping this helps a bit) these are my (current) includes (in the
order they are specified in my makefiles):
-ID:/Dev/wxWindows/v2.3.3/lib/mswd
-ID:/Dev/wxWindows/v2.3.3/include
-ID:/Dev/wxWindows/v2.3.3/contrib/include
-ID:/Dev/wxWindows/v2.3.3/src/regex
-ID:/Dev/wxWindows/v2.3.3/src/png
-ID:/Dev/wxWindows/v2.3.3/src/jpeg
-ID:/Dev/wxWindows/v2.3.3/src/zlib
-ID:/Dev/wxWindows/v2.3.3/src/tiff
-ID:/Dev/WinAPI/v2.0/include
-ID:/Dev/MinGW/v2.0.0/include
-ID:/Dev/MinGW/v2.0.0/include/sys
-ID:/Dev/MinGW/v2.0.0/include/c++/3.2
-ID:/Dev/wxWindows/v2.3.3/include/wx/msw/gnuwin32
Hope this helps.
~Santy
PS: As you'll probably found out, I'm using both MinGW 2.0.0 and MinGW 1.1
for different projects, so that's why I'm specifiying different folders for
each release (making the release number part of the path)... I'm able to
switch between releases by specifying the release number in an environment
variable.
-----Original Message-----
From: Mark L. Wise [mailto:ma...@al...]
Sent: jueves, 07 de noviembre de 2002 17:57
To: 'Michael Ivey'; dev...@li...
Subject: RE: [Dev-C++] RE: Help with wxWindows
You are now officially beyond my help.... sorry :-( Someone else able to
help here?
Mark
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Michael Ivey
Sent: Thursday, November 07, 2002 12:22 AM
To: dev...@li...
Subject: [Dev-C++] RE: Help with wxWindows
Thanks Mark, I installed wxWindows from the DevPack. Trying to compile the
template yields 6 errors, I'm not completely familiar with what all of them
mean or how to solve them. Here's the compile log I get when compiling it.
Building Makefile: "C:\C++ Projects\wxtry\Makefile.win" Executing make...
make.exe -f "C:\C++ Projects\wxtry\Makefile.win" all
g++.exe -c main.cpp -o
ain.o -I"C:/MinGW/include" -I"C:/MinGW/include" -D_X86_=1 -DWIN32 -D_WIN32
-D__WIN95__ -D__GNUWIN32__ -D__WIN32__ -DSTRICT -D__WXMSW__ -D__WINDOWS__
-fno-pcc-struct-return -fno-rtti -fno-exceptions -fstrict-aliasing -ansi -s
-O3 -fexpensive-optimizations -mwindows
In file included from C:/MinGW/include/wx/string.h:70,
from C:/MinGW/include/wx/memory.h:20,
from C:/MinGW/include/wx/object.h:20,
from C:/MinGW/include/wx/wx.h:16,
from main.cpp:5:
C:/MinGW/include/wx/buffer.h: In constructor
`wxCharBuffer::wxCharBuffer(const
char*)':
C:/MinGW/include/wx/buffer.h:33: `strdup' undeclared (first use this
function)
C:/MinGW/include/wx/buffer.h:33: (Each undeclared identifier is reported
only
once for each function it appears in.)
In file included from C:/MinGW/include/wx/memory.h:20,
from C:/MinGW/include/wx/object.h:20,
from C:/MinGW/include/wx/wx.h:16,
from main.cpp:5:
C:/MinGW/include/wx/string.h: In function `int Stricmp(const char*, const
char*)':
C:/MinGW/include/wx/string.h:147: `strcasecmp' undeclared (first use this
function)
In file included from C:/MinGW/include/c++/3.2/backward/iostream.h:31,
from C:/MinGW/include/wx/memory.h:33,
from C:/MinGW/include/wx/object.h:20,
from C:/MinGW/include/wx/wx.h:16,
from main.cpp:5:
C:/MinGW/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning
This file includes at least one deprecated or antiquated header. Please
consider using one of the 32 headers found in section 17.4.1.2 of the C++
standard. Examples include substituting the <X> header for the <X.h> header
for C++ includes, or <sstream> instead of the deprecated header
<strstream.h>. To disable this warning use -Wno-deprecated. In file included
from C:/MinGW/include/wx/utils.h:26,
from C:/MinGW/include/wx/cursor.h:20,
from C:/MinGW/include/wx/event.h:24,
from C:/MinGW/include/wx/wx.h:23,
from main.cpp:5:
C:/MinGW/include/wx/filefn.h: At global scope:
C:/MinGW/include/wx/filefn.h:51: syntax error before `=' token
In file included from main.cpp:6:
main.h:62:8: warning: extra tokens at end of #endif directive
make.exe: *** [main.o] Error 1
To email me, remove nospam/ from my email address.
-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
--------------------------------------------------------------------------------------
This message and any files transmitted with it are confidential and intended solely
for the use of the individual or entity to whom they are addressed. No confidentiality
or privilege is waived or lost by any wrong transmission.
If you have received this message in error, please immediately destroy it and kindly
notify the sender by reply email.
You must not, directly or indirectly, use, disclose, distribute, print, or copy any
part of this message if you are not the intended recipient. Opinions, conclusions and
other information in this message that do not relate to the official business of
Ydilo Advanced Voice Solutions, S.A. shall be understood as neither given nor endorsed by it.
--------------------------------------------------------------------------------------
|
|
From: Michael I. <je...@am...> - 2002-11-07 19:02:34
|
To Santy:
I think the include paths are okay. Dev-C++ requires a path entered for
includes for both C Includes and C++ Includes. For both I've entered the
same include path because MinGW checks all subdirectories. I've tried
changing the include paths but it's the same problem, it just changes the
compile log
g++.exe -c main.cpp -o
ain.o -I"C:/MinGW/include" -I"C:/MinGW/include/c++/3.2"
But it's effectively the same thing and all errors remain the same.
Thanks for the suggestion,
Michael
<Original Message from Santiago Palmier Campos>
>Hi *,
>Michael, I think you've got a problem with your include paths. If you take
a
>look at the output you've sent to us you'll find:
>-I"C:/MinGW/include" -I"C:/MinGW/include"
>Why to specify this twice?
>I'm not familiar with wxWindows DevPack (sorry, I downloaded wxWindows
>source and compiled it by myself), so I cannot tell you what are actually
>the "extra" paths you must have... I'm not pretty sure about this (because
>you may have all includes in the same dir... Who knows) but I think your
>build process lacks some paths or the order of them is wrong, could you
>check this please?
To Ken Bradford:
I'm using MinGW 2.0.0-3 (gcc 3.2) with Dev-C++ 5 Beta 6
I think the problem may be caused by using MinGW 2.0.0-3 I may have to
compile wxWindows instead of using the DevPack.
Thanks for the help,
Michael
<Original Message from Ken Bradford>
>Which version of Mingw (gcc -v) and which version of Dev-C++ are you using?
|