Code::Blocks Forums

User forums => Help => Topic started by: khlero on March 04, 2007, 11:05:14 am

Title: codeblocks 1-0rc2 compiling
Post by: khlero on March 04, 2007, 11:05:14 am
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


Title: Re: codeblocks 1-0rc2 compiling
Post by: jpaterso on March 04, 2007, 11:38:40 am
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.
Title: Re: codeblocks 1-0rc2 compiling
Post by: Auria on March 04, 2007, 03:50:45 pm
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)

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!!
Title: Re: codeblocks 1-0rc2 compiling
Post by: MortenMacFly on March 04, 2007, 03:54:38 pm
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?
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.
Title: Re: codeblocks 1-0rc2 compiling
Post by: Pecan on March 04, 2007, 04:12:31 pm
   //-- Wiki Index
     CodeBlocks Wiki Index (http://wiki.codeblocks.org/index.php?title=Special:Allpages)
   //-- Wiki Main Page
     CodeBlocks Wiki Main Page (http://wiki.codeblocks.org/index.php?title=Main_Page)

Search the Wiki index for "building", "installing", "compiling" and "cookbook"


http://wiki.codeblocks.org/index.php?title=Nightly_Cookbook
Nightly Cookbook - CodeBlocks