Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / Dev-C++ 4.9.9.2 + wxWidgets 2.5.4 + wxWidgets 2.5.4 contrib: template project could not be compiled

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Dev-C++ 4.9.9.2 + wxWidgets 2.5.4 + wxWidgets 2.5.4 contrib: template project could not be compiled
#6036
Posted by: 2005-04-20 20:17:30
I have downloaded and installed Dev-C++ 4.9.9.2 with wxWidgets 2.5.4 + wxWidgets 2.5.4 contrib DEVPacks (through DEV-C++ WebUpdate Utility).

I am doing:
File-New project->GUI->wxWindows.
Save Project As...
Build all.

Compiler prints:
g++.exe -c base.cpp -o base.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include"  -I"C:\Dev-Cpp\\include\..\lib\wx\include\msw-ansi-release-static-2.5" -I"C:\Dev-Cpp\\include\wx-2.5" -D__WXMSW__ -mthreads -DNO_GCC_PRAGMA   -fexpensive-optimizations -O3

In file included from C:/Dev-Cpp//include/wx-2.5/wx/wxchar.h:148,
                 from C:/Dev-Cpp//include/wx-2.5/wx/debug.h:22,
                 from C:/Dev-Cpp//include/wx-2.5/wx/defs.h:449,
                 from C:/Dev-Cpp//include/wx-2.5/wx/wxprec.h:13,
                 from base.cpp:1:
C:/Dev-Cpp/include/tchar.h:274:1: warning: "_puttchar" redefined
In file included from C:/Dev-Cpp//include/wx-2.5/wx/platform.h:544,
                 from C:/Dev-Cpp//include/wx-2.5/wx/defs.h:21,
                 from C:/Dev-Cpp//include/wx-2.5/wx/wxprec.h:13,
                 from base.cpp:1:
C:/Dev-Cpp//include/wx-2.5/wx/msw/gccpriv.h:108:1: warning: this is the location of the previous definition

g++.exe base.o  -o "guit.exe" -L"C:/Dev-Cpp/lib" -lwx_msw-2.5 -lgdi32 -loleaut32 -lole32 -lcomctl32 -lcomdlg32 -mthreads -Wl,--subsystem,windows -mwindows -lrpcrt4 -luuid -lodbc32 -lole32 -loleaut32 -lwinspool -lwinmm -lshell32 -lctl3d32 -ladvapi32 -lwsock32 

collect2: ld returned 128 exit status

make.exe: *** [guit.exe] Error 1

What to do with this error?
I tried to comment warning lines. No effect.
(I know about http://wxdsgn.sourceforge.net, but I want this DEV-C++ to be working with wxWindows).

Thank you.
Message2. Re: Dev-C++ 4.9.9.2 + wxWidgets 2.5.4 + wxWidgets 2.5.4 contrib: template project could not be compiled
#6226
Posted by: 2005-06-06 04:24:32
I have the same problem, with dev cpp 4.9.9.1
moreover when i make a new project gui wxWidgets, i have no function main and file main.cpp :s
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Wed 2024-12-11  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0