Code::Blocks Forums

User forums => Help => Topic started by: LarsPensjo on July 14, 2012, 09:01:27 am

Title: rev 8107 Ubuntu build error
Post by: LarsPensjo on July 14, 2012, 09:01:27 am
I get the following compilation error:

debuggersettingscommonpanel.o: In function `wxCheckBoxBase::DoGet3StateValue() const':
debuggersettingscommonpanel.cpp:(.text._ZNK14wxCheckBoxBase16DoGet3StateValueEv[wxCheckBoxBase::DoGet3StateValue() const]+0x22): undefined reference to `wxOnAssert(wchar_t const*, int, char const*, wchar_t const*, wchar_t const*)'
Title: Re: rev 8107 Ubuntu build error
Post by: MortenMacFly on July 14, 2012, 10:30:49 am
(.text._ZNK14wxCheckBoxBase16DoGet3StateValueEv[wxCheckBoxBase::DoGet3StateValue() const]+0x22): undefined reference to `wxOnAssert(wchar_t const*, int, char const*, wchar_t const*, wchar_t const*)'
Don't mix wxWidgets debug with wxWidgets release libs.

Next time,. please post the full build log. Such snippets are usually not helpful at all.
Title: Re: rev 8107 Ubuntu build error
Post by: LarsPensjo on July 14, 2012, 11:11:29 am
(.text._ZNK14wxCheckBoxBase16DoGet3StateValueEv[wxCheckBoxBase::DoGet3StateValue() const]+0x22): undefined reference to `wxOnAssert(wchar_t const*, int, char const*, wchar_t const*, wchar_t const*)'
Don't mix wxWidgets debug with wxWidgets release libs.

Next time,. please post the full build log. Such snippets are usually not helpful at all.

Thank you, now it compiles!

After doing "sudo make install", I get the following error:
Code
~/src/codeblocks$ which codeblocks 
/usr/local/bin/codeblocks
~/src/codeblocks$ codeblocks
codeblocks: symbol lookup error: codeblocks: undefined symbol: _ZTI14cbBacktraceDlg

I did have CB 10.05 installed first, but uninstalled it before doing the "sudo make install".
Title: Re: rev 8107 Ubuntu build error
Post by: LarsPensjo on July 14, 2012, 12:17:46 pm
I can run CB using codeblocks/src/src/codeblocks from the source folder, but /usr/local/bin/codeblocks doesn't work.

I can also run CB using codeblocks/src/src/.libs/lt-codeblocks. It seems the codeblocks/src/src/codeblocks is a shell script that runs the lt-file eventually. But the file in /usr/local/bin is not the lt-file, it is a copy of the codeblocks/src/src/.libs/codeblocks

If I copy the lt-file to /usr/local/bin/codeblocks, then everything is fine. Did the "make install" go wrong somewhere? Or did I fail to follow some instruction?
Title: Re: rev 8107 Ubuntu build error
Post by: MortenMacFly on July 14, 2012, 01:12:11 pm
Code
codeblocks: symbol lookup error: codeblocks: undefined symbol: _ZTI14cbBacktraceDlg
I did have CB 10.05 installed first, but uninstalled it before doing the "sudo make install".
It seems you did not un-install it completely, including its dependencies. This dialog came after 10/05. I Don't know your system and what you did exactly, all I can tell is that you are mixing two incompatible Code::Blocks libraries now. Why don't you simply use the Ubuntu packages provided via the nightlies? This will avoid such hassle if you don't exactly know what you are doing...
Title: Re: rev 8107 Ubuntu build error
Post by: LarsPensjo on July 14, 2012, 03:56:45 pm
Why don't you simply use the Ubuntu packages provided via the nightlies? This will avoid such hassle if you don't exactly know what you are doing...

Of, I didn't know there was one. But I found it in the wiki now.

Thanks for an excellent IDE!

I wish you could release an official update soon...