Author Topic: codeblocks 1-0rc2 compiling  (Read 4180 times)

khlero

  • Guest
codeblocks 1-0rc2 compiling
« 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



Offline jpaterso

  • Multiple posting newcomer
  • *
  • Posts: 57
Re: codeblocks 1-0rc2 compiling
« Reply #1 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.

Offline Auria

  • Almost regular
  • **
  • Posts: 152
Re: codeblocks 1-0rc2 compiling
« Reply #2 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!!

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: codeblocks 1-0rc2 compiling
« Reply #3 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2785
Re: codeblocks 1-0rc2 compiling
« Reply #4 on: March 04, 2007, 04:12:31 pm »
   //-- 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