Author Topic: Compile error on Ubuntu (SVN version)  (Read 4879 times)

Offline David Perfors

  • Developer
  • Lives here!
  • *****
  • Posts: 560
Compile error on Ubuntu (SVN version)
« on: December 17, 2005, 03:22:47 pm »
After a long time I am on Linux again :lol: but when trying to compile C::B I get the following error:

Code: [Select]
./cbexception.h: In member function ‘void cbException::ShowErrorMessage(bool)’:
./cbexception.h:44: error: ‘L__DATE__’ was not declared in this scope
./cbexception.h:44: error: ‘L__TIME__’ was not declared in this scope
This is while compiling sdk.h.gch.
Is this a known issue?
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

Offline connyosis

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: Compile error on Ubuntu (SVN version)
« Reply #1 on: December 17, 2005, 04:03:29 pm »
Yeah I get that too. I figure I'll wait a while and see if it gets fixed. It is svn after all...

Offline undofen

  • Multiple posting newcomer
  • *
  • Posts: 19
Re: Compile error on Ubuntu (SVN version)
« Reply #2 on: December 17, 2005, 04:08:51 pm »
Yeah but we linux-only users are a bit out of luck I think, I'm not sure if any of the dev's are using linux as their main os. Thats why everythings works on win first, maybe if were lucky will get a linux-only C::B dev for christmas ;-).

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Compile error on Ubuntu (SVN version)
« Reply #3 on: December 17, 2005, 04:22:52 pm »
L__DATE__ ?

ROFL! That's because someone used _T() macro on another macro. They should use wxT() instead. Yes, Macros are Evil(TM) :P.

OK, fixed (rev 1540).
« Last Edit: December 17, 2005, 04:38:22 pm by rickg22 »

Offline David Perfors

  • Developer
  • Lives here!
  • *****
  • Posts: 560
Re: Compile error on Ubuntu (SVN version)
« Reply #4 on: December 17, 2005, 04:32:31 pm »
That did the trick :)

btw. on other places I get the same problems...

(for now startherepage.cpp:104) I will hunt these errors down and commit the changes..
« Last Edit: December 17, 2005, 04:40:24 pm by mispunt »
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Compile error on Ubuntu (SVN version)
« Reply #5 on: December 17, 2005, 04:50:36 pm »
I believe to remember that wx offers a macro __TDATE__ or something similar...

Yes: __TFILE__, __TDATE__ and __TTIME__
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline David Perfors

  • Developer
  • Lives here!
  • *****
  • Posts: 560
Re: Compile error on Ubuntu (SVN version)
« Reply #6 on: December 17, 2005, 05:11:27 pm »
hmm. I got some other problems :(
Code: [Select]
/bin/sh ../../libtool --tag=CXX --mode=link g++  -g -O2 -O2 -ffast-math -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC   -o codeblocks  app.o dlgabout.o dlgaboutplugin.o environmentsettingsdlg.o main.o prefix.o printdlg.o startherepage.o -pthread   -lwx_gtk2u_xrc-2.6 -lwx_gtk2u_qa-2.6 -lwx_gtk2u_html-2.6 -lwx_gtk2u_adv-2.6 -lwx_gtk2u_core-2.6 -lwx_baseu_xml-2.6 -lwx_baseu_net-2.6 -lwx_baseu-2.6  -LwxDockit -lwxdockit -L../sdk -lcodeblocks  -lpthread -ldl  -pthread   -lwx_gtk2u_xrc-2.6 -lwx_gtk2u_qa-2.6 -lwx_gtk2u_html-2.6 -lwx_gtk2u_adv-2.6 -lwx_gtk2u_core-2.6 -lwx_baseu_xml-2.6 -lwx_baseu_net-2.6 -lwx_baseu-2.6
g++ -g -O2 -O2 -ffast-math -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -o .libs/codeblocks app.o dlgabout.o dlgaboutplugin.o environmentsettingsdlg.o main.o prefix.o printdlg.o startherepage.o  -L/home/mispunt/codeblocks/trunk/src/src/wxDockit /home/mispunt/codeblocks/trunk/src/src/wxDockit/.libs/libwxdockit.a -L/home/mispunt/codeblocks/trunk/src/sdk /home/mispunt/codeblocks/trunk/src/sdk/.libs/libcodeblocks.so -lpthread -ldl -pthread -lwx_gtk2u_xrc-2.6 -lwx_gtk2u_qa-2.6 -lwx_gtk2u_html-2.6 -lwx_gtk2u_adv-2.6 -lwx_gtk2u_core-2.6 -lwx_baseu_xml-2.6 -lwx_baseu_net-2.6 -lwx_baseu-2.6 -Wl,--rpath -Wl,/usr/local/lib
/home/mispunt/codeblocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxScintilla::FindText(int, int, wxString const&, int, int*)'
(don't know if this is usefull.... )
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

Offline me22

  • Official tester
  • Multiple posting newcomer
  • ***
  • Posts: 53
    • TA Universe
Re: Compile error on Ubuntu (SVN version)
« Reply #7 on: December 17, 2005, 09:11:49 pm »
Yeah but we linux-only users are a bit out of luck I think, I'm not sure if any of the dev's are using linux as their main os. Thats why everythings works on win first, maybe if were lucky will get a linux-only C::B dev for christmas ;-).

Well, what there is is me.  I svn-compile C::B in Gentoo every day or so and yell at the devs when they break Unicode ( again :| ) and such =)

Offline undofen

  • Multiple posting newcomer
  • *
  • Posts: 19
Re: Compile error on Ubuntu (SVN version)
« Reply #8 on: December 17, 2005, 10:00:08 pm »
I also compile CB on getoo often, but I cant use it until it has a usable debugger - no actual line highlight or pointer, no debugging window for console app's :/. I can live without the latter, but reading which line I'm on from the debug output isn't to nice. This program is so much better then any linux alternatives I cant wait to be able to use it :-), good job dev's!.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Re: Compile error on Ubuntu (SVN version)
« Reply #9 on: December 17, 2005, 10:08:43 pm »
I switch back and forth to windows/linux. Mostly like one week with each. But I *have* to do it so both ports get the attention they deserve. I 'm sorry but I don't have a spare PC to setup so I can use both simultaneously...
Be patient!
This bug will be fixed soon...

Offline takeshi miya

  • Lives here!
  • ****
  • Posts: 1487
Re: Compile error on Ubuntu (SVN version)
« Reply #10 on: December 18, 2005, 01:36:06 am »
Should we put a "Donate a PC to Yiannis so he can test better linux" thing? :D

Offline undofen

  • Multiple posting newcomer
  • *
  • Posts: 19
Re: Compile error on Ubuntu (SVN version)
« Reply #11 on: December 18, 2005, 01:41:24 am »
hehe I thought about the same ;-), but I'd opt for donating money or hardware ;-).

Offline takeshi miya

  • Lives here!
  • ****
  • Posts: 1487
Re: Compile error on Ubuntu (SVN version)
« Reply #12 on: December 18, 2005, 02:14:39 am »
Jocking aside, it's not a bad idea.

Look at http://www.poedit.org/
In the left of the page, Vaclav put an "Mac OS X port donations needed" and received cash so he could buy a mac to test the wx programs there.