User forums > Help
codeblocks 1-0rc2 compiling
(1/1)
khlero:
hi. i'm trying to compile codeblocks 1-0rc2 but i have this error:
src/PlatWX.cpp: In member function `void Window::SetTitle(const char*)':
src/PlatWX.cpp:633: error: `SetTitle' undeclared (first use this function)
src/PlatWX.cpp:633: error: (Each undeclared identifier is reported only once
for each function it appears in.)
src/PlatWX.cpp: In constructor `ElapsedTime::ElapsedTime()':
src/PlatWX.cpp:1356: warning: `wxStartTimer' is deprecated (declared at
/opt/wx/2.6/include/wx-2.8/wx/stopwatch.h:73)
src/PlatWX.cpp: In member function `double ElapsedTime::Duration(bool)':
src/PlatWX.cpp:1360: warning: `wxGetElapsedTime' is deprecated (declared at
/opt/wx/2.6/include/wx-2.8/wx/stopwatch.h:77)
make[4]: *** [PlatWX.lo] Error 1
How can I solve it?
Thanks
jpaterso:
Is there actually a reason why you're trying to compile RC2? C::B has gone a long way since, I suggest you checkout the latest source via svn, and go from there.
Joseph.
Auria:
--- Quote from: khlero on March 04, 2007, 11:05:14 am ---src/PlatWX.cpp:1356: warning: `wxStartTimer' is deprecated (declared at
/opt/wx/2.6/include/wx-2.8/wx/stopwatch.h:73)
src/PlatWX.cpp: In member function `double ElapsedTime::Duration(bool)':
src/PlatWX.cpp:1360: warning: `wxGetElapsedTime' is deprecated (declared at
/opt/wx/2.6/include/wx-2.8/wx/stopwatch.h:77)
--- End quote ---
Code::Blocks only officially supports wxWidgets 2.6 and it seems like you're using 2.8. SVN has some support for 2.8 though.
And i too recommend using SVN instead of RC2!!
MortenMacFly:
--- Quote from: khlero on March 04, 2007, 11:05:14 am ---src/PlatWX.cpp:1360: warning: `wxGetElapsedTime' is deprecated (declared at
/opt/wx/2.6/include/wx-2.8/wx/stopwatch.h:77)
make[4]: *** [PlatWX.lo] Error 1
How can I solve it?
--- End quote ---
The time RC2 came out wxWidgets 2.8 was not even present. Even now there is no official support for 2.8. Thus this won't work. Either you compile RC2 against wxWidgets v 2.6.3 (which should work) and/or switch to SVN (as proposed in the previous answer). However - use the wxWidgets 2.6.x stream to avoid issues until C::B officially supports 2.8.
With regards, Morten.
Pecan:
//-- Wiki Index
CodeBlocks Wiki Index
//-- Wiki Main Page
CodeBlocks Wiki Main Page
Search the Wiki index for "building", "installing", "compiling" and "cookbook"
http://wiki.codeblocks.org/index.php?title=Nightly_Cookbook
Nightly Cookbook - CodeBlocks
Navigation
[0] Message Index
Go to full version