User forums > Help

Linker error while building Code::Blocks

(1/2) > >>

JCBCIV:
I just downloaded the latest svn revision (8073) and tried to build it, but make (under Ubuntu 12.04, with g++-4.6) failes with


--- Code: ---...
libtool: link: g++ -O2 -ffast-math -DCB_AUTOCONF -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -o .libs/codeblocks app.o appglobals.o backtracedlg.o breakpointsdlg.o compilersettingsdlg.o cpuregistersdlg.o crashhandler.o debugger_interface_creator.o debuggermenu.o debuggersettingscommonpanel.o debuggersettingsdlg.o debuggersettingspanel.o disassemblydlg.o dlgabout.o dlgaboutplugin.o environmentsettingsdlg.o examinememorydlg.o infopane.o main.o notebookstyles.o prefix.o printdlg.o scriptconsole.o scriptingsettingsdlg.o splashscreen.o startherepage.o switcherdlg.o threadsdlg.o watchesdlg.o -pthread  -L../sdk /home/me/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so -L/usr/lib/x86_64-linux-gnu -lwx_gtk2u_aui-2.9 -lwx_gtk2u_propgrid-2.9 -lwx_gtk2u_xrc-2.9 -lwx_gtk2u_html-2.9 -lwx_gtk2u_qa-2.9 -lwx_gtk2u_adv-2.9 -lwx_gtk2u_core-2.9 -lwx_baseu_xml-2.9 -lwx_baseu_net-2.9 -lwx_baseu-2.9 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 /usr/lib/x86_64-linux-gnu/libcairo.so -lpango-1.0 /usr/lib/x86_64-linux-gnu/libfreetype.so -lfontconfig -lgobject-2.0 -lglib-2.0 -lpthread -ldl -pthread -Wl,-rpath -Wl,/opt/codeblocks/lib
/home/me/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `lmCoffeeScript'
collect2: ld returned 1 exit status
make[3]: *** [codeblocks] Error 1
make[3]: Leaving directory `/home/me/CodeBlocks/trunk/src/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/me/CodeBlocks/trunk/src/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/me/CodeBlocks/trunk/src'
make: *** [all-recursive] Error 1

--- End code ---

I had no such problems with revision 8065, so i looked a bit at the difference between them and noticed that LexCoffeeScript has been added recently.
Then i searched for LexCoffeeScript.o, but in trunk/src/sdk/wxscintilla/.libs, where the other Lex*.o 's are, i didn't find it.

is it me doing something stupid or is it your code/Makefiles being broken?

by the way: Code::Blocks is great! :)

MortenMacFly:

--- Quote from: JCBCIV on June 28, 2012, 02:51:37 pm ---is it me doing something stupid or is it your code/Makefiles being broken?

--- End quote ---
You have to re-build the makefiles (using automake), as the configuration changed.

JCBCIV:
I did that.
However, the error did not change. :/

MortenMacFly:

--- Quote from: JCBCIV on June 28, 2012, 04:41:37 pm ---I did that.
However, the error did not change. :/

--- End quote ---
Did you do both: make clean and make dist clean and then start with bootstrap, configure etc...?

I guess a Linux dude needs to answer here...

Jenna:
did you run ./bootstrap before running ./configure ?

Navigation

[0] Message Index

[#] Next page

Go to full version