News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Compile error on Ubuntu (SVN version)

Started by David Perfors, December 17, 2005, 03:22:47 PM

Previous topic - Next topic

David Perfors

After a long time I am on Linux again :lol: but when trying to compile C::B I get the following error:

./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

connyosis

Yeah I get that too. I figure I'll wait a while and see if it gets fixed. It is svn after all...

undofen

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 ;-).

rickg22

#3
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).

David Perfors

#4
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..
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

thomas

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."

David Perfors

hmm. I got some other problems :(

/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

me22

Quote from: undofen 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 ;-).

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 =)

undofen

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!.

mandrav

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...

takeshimiya

Should we put a "Donate a PC to Yiannis so he can test better linux" thing? :D

undofen

hehe I thought about the same ;-), but I'd opt for donating money or hardware ;-).

takeshimiya

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.