News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

codeblocks 1-0rc2 compiling

Started by khlero, March 04, 2007, 11:05:14 AM

Previous topic - Next topic

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)

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?
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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

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