1st time dev-c++ user - problems Topic is solved

If you are using wxDev-C++ for your wxWidgets design, please ask your questions here instead of in IDE Related.
Post Reply
scorche
Experienced Solver
Experienced Solver
Posts: 59
Joined: Fri Jan 20, 2006 9:54 pm

1st time dev-c++ user - problems

Post by scorche » Thu Jun 15, 2006 4:58 pm

hello
I just wanted to switch to DEV C++ but I'm having some issues.

here's some stuff I get when I compile:
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\projects\wxwidgets\grid2\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\projects\wxwidgets\grid2\Makefile.win" all
g++.exe -c main.cpp -o main.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:/Program Files/QCamSDK/inc-shared" -I"C:/Program Files/QCamSDK/inc-pc/qgl" -I"C:/Program Files/QCamSDK/inc-pc" -I"C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include" -I"C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/lib/wx/include" -I"C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include" -I"C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/lib/wx/include/msw-ansi-release-static-2.6" -D__WXMSW__ -DNO_GCC_PRAGMA -fno-rtti -fno-exceptions

In file included from C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/defs.h:21,
from C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/wxprec.h:13,
from main.cpp:52:
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/platform.h:190:22: wx/setup.h: No such file or directory
In file included from C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/platform.h:271,
from C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/defs.h:21,
from C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/wxprec.h:13,
from main.cpp:52:
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:84:9: #error "wxUSE_DYNLIB_CLASS must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:92:9: #error "wxUSE_EXCEPTIONS must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:100:9: #error "wxUSE_FILESYSTEM must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:113:9: #error "wxUSE_DYNAMIC_LOADER must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:121:9: #error "wxUSE_LOG must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:129:9: #error "wxUSE_LONGLONG must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:137:9: #error "wxUSE_MIMETYPE must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:153:9: #error "wxUSE_PROTOCOL must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:195:9: #error "wxUSE_REGEX must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:203:9: #error "wxUSE_STDPATHS must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:211:9: #error "wxUSE_XML must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:219:9: #error "wxUSE_SOCKETS must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:227:9: #error "wxUSE_STREAMS must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:235:9: #error "wxUSE_STOPWATCH must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:243:9: #error "wxUSE_TEXTBUFFER must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:251:9: #error "wxUSE_TEXTFILE must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:267:9: #error "wxUSE_URL must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:285:9: #error "wxUSE_ACCEL must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:293:9: #error "wxUSE_BMPBUTTON must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:301:9: #error "wxUSE_BUTTON must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:309:9: #error "wxUSE_CALENDARCTRL must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:317:9: #error "wxUSE_CARET must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:325:9: #error "wxUSE_CHECKBOX must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:341:9: #error "wxUSE_CHOICE must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:349:9: #error "wxUSE_CHOICEBOOK must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:357:9: #error "wxUSE_CHOICEDLG must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:365:9: #error "wxUSE_CLIPBOARD must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:373:9: #error "wxUSE_COLOURDLG must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:381:9: #error "wxUSE_COMBOBOX must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:389:9: #error "wxUSE_DATAOBJ must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:397:9: #error "wxUSE_DATEPICKCTRL must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:405:9: #error "wxUSE_DISPLAY must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:413:9: #error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:421:9: #error "wxUSE_FILEDLG must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:429:9: #error "wxUSE_FONTDLG must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:437:9: #error "wxUSE_FONTMAP must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:445:9: #error "wxUSE_GAUGE must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:453:9: #error "wxUSE_GRID must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:461:9: #error "wxUSE_HELP must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:469:9: #error "wxUSE_HTML must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:477:9: #error "wxUSE_XRC must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:498:9: #error "wxUSE_ICO_CUR must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:506:9: #error "wxUSE_IFF must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:514:9: #error "wxUSE_IMAGLIST must be defined."

C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:522:9: #error "wxUSE_JOYSTICK must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:530:9: #error "wxUSE_LISTBOOK must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:538:9: #error "wxUSE_LISTBOX must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:546:9: #error "wxUSE_LISTCTRL must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:554:9: #error "wxUSE_LOGGUI must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:562:9: #error "wxUSE_LOGWINDOW must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:570:9: #error "wxUSE_LOG_DIALOG must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:578:9: #error "wxUSE_MDI must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:586:9: #error "wxUSE_MDI_ARCHITECTURE must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:594:9: #error "wxUSE_MENUS must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:602:9: #error "wxUSE_MSGDLG must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:610:9: #error "wxUSE_NOTEBOOK must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:618:9: #error "wxUSE_PALETTE must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:626:9: #error "wxUSE_POPUPWIN must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:634:9: #error "wxUSE_PRINTING_ARCHITECTURE must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:642:9: #error "wxUSE_RADIOBOX must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:650:9: #error "wxUSE_RADIOBTN must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:658:9: #error "wxUSE_SASH must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:666:9: #error "wxUSE_SCROLLBAR must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:674:9: #error "wxUSE_SLIDER must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:682:9: #error "wxUSE_SOUND must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:690:9: #error "wxUSE_SPINBTN must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:698:9: #error "wxUSE_SPINCTRL must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:706:9: #error "wxUSE_SPLASH must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:714:9: #error "wxUSE_SPLITTER must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:722:9: #error "wxUSE_STATBMP must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:730:9: #error "wxUSE_STATBOX must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:738:9: #error "wxUSE_STATLINE must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:746:9: #error "wxUSE_STATTEXT must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:754:9: #error "wxUSE_STATUSBAR must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:762:9: #error "wxUSE_TAB_DIALOG must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:770:9: #error "wxUSE_TEXTCTRL must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:778:9: #error "wxUSE_TIPWINDOW must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:786:9: #error "wxUSE_TOOLBAR must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:794:9: #error "wxUSE_TOOLTIPS must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:802:9: #error "wxUSE_TREECTRL must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:810:9: #error "wxUSE_VALIDATORS must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:818:9: #error "wxUSE_WXHTML_HELP must be defined."
C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include/wx/chkconf.h:1543:9: #error "wxMessageBox is always needed"
main.cpp: In member function `void MyFrame::OnAbout(wxCommandEvent&)':
main.cpp:220: error: `wxMessageBox' undeclared (first use this function)
main.cpp:220: error: (Each undeclared identifier is reported only once for each function it appears in.)

make.exe: *** [main.o] Error 1

Execution terminated




I get this from when I compile the code I get from the project template.

I see that it's missing the setup.h in the wx diretory - but why is it missing
should I copy it into there from the msw folder?

scorche
Experienced Solver
Experienced Solver
Posts: 59
Joined: Fri Jan 20, 2006 9:54 pm

Post by scorche » Thu Jun 15, 2006 5:01 pm

after I added the setup.h, I still got some error messages, but not as many this time.

Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\projects\wxwidgets\001\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\projects\wxwidgets\001\Makefile.win" all
g++.exe -c 001.cpp -o 001.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:/Program Files/QCamSDK/inc-shared" -I"C:/Program Files/QCamSDK/inc-pc/qgl" -I"C:/Program Files/QCamSDK/inc-pc" -I"C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/include" -I"C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/lib/wx/include" -D__WXMSW__ -DNO_GCC_PRAGMA -fno-rtti -fno-exceptions

windres.exe -i Project1_private.rc --input-format=rc -o Project1_private.res -O coff

g++.exe 001.o Project1_private.res -o "Project1.exe" -L"C:/Dev-Cpp/lib" -L"C:/Program Files/QCamSDK/lib-pc" -L"C:/Dev-Cpp/wxWidgets-2.6.3-msw-static/lib" -mwindows -s -mwindows -lwx_msw_core-2.6 -lwx_base-2.6 -lwxjpeg-2.6 -lwxpng-2.6 -lwxzlib-2.6 -lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32 -ltiff

001.o(.rdata$_ZTV5MyApp[vtable for MyApp]+0xa4):001.cpp: undefined reference to `wxAppConsole::CreateLogTarget()'
001.o(.rdata$_ZTV5MyApp[vtable for MyApp]+0xa8):001.cpp: undefined reference to `wxAppConsole::CreateMessageOutput()'
001.o(.rdata$_ZTV7MyFrame[vtable for MyFrame]+0x138):001.cpp: undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
001.o(.rdata$_ZTV7MyFrame[vtable for MyFrame]+0x13c):001.cpp: undefined reference to `wxWindow::UnregisterHotKey(int)'
collect2: ld returned 1 exit status

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

Execution terminated

HK
Earned a small fee
Earned a small fee
Posts: 14
Joined: Thu Apr 20, 2006 8:13 am
Location: China(Taiwan)

Post by HK » Sat Jun 17, 2006 9:42 am

:wink:
Scorche,
try
wxWidgets-2.6.1-gcc3.4.2-1spec.DevPak
I had the same problems as you.
After using wxWidgets-2.6.1-gcc3.4.2-1spec.DevPak
It's no problem,I don't know why.

regards

HK

scorche
Experienced Solver
Experienced Solver
Posts: 59
Joined: Fri Jan 20, 2006 9:54 pm

Post by scorche » Sat Jun 17, 2006 8:45 pm

looks like that did it
thanks a lot

Post Reply