Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Linux Linker error in SVN HEAD (Rev. 1542)
DanDanger:
System : Debian Unstable (GNU Linux)
wx-Version : wxWidgets 2.61 (unicode) (and yes, wx-common IS installed ;-))
g++ Version : 4.0.3
CB-Version : SVN HEAD (rev. 1542)
Hi,
I encounter a linker-Error while trying to compile the current Code::Blocks SVN HEAD :
--- Code: ---trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxScintilla::FindText(int, int, wxString const&, int, int*)'
collect2: ld returned 1 exit status
--- End code ---
Does anyone know how to solve this error !?
Thank's in advance
DanDanger
PS :
There is also a error in
"trunk/src/sdk/confimanager.h" (Line 201)
--- Code: ---if(TiXmlNode *n = ph.FirstChild(key).FirstChild("objmap").Node())
must be changed to :
if(TiXmlNode *n = ph.FirstChild(key.ToAscii()).FirstChild("objmap").Node()) // <-- key.ToAscii()
--- End code ---
Otherwise, TinyXML is not able to compile in Unicode-Mode.
Greetings
DanDanger
mandrav:
--- Quote from: DanDanger on December 17, 2005, 11:24:52 pm ---Hi,
I encounter a linker-Error while trying to compile the current Code::Blocks SVN HEAD :
--- Code: ---trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxScintilla::FindText(int, int, wxString const&, int, int*)'
collect2: ld returned 1 exit status
--- End code ---
Does anyone know how to solve this error !?
--- End quote ---
Yes, manually delete sdk/sdk.h.gch. The precompiled header holds an older signature of this function.
--- Quote from: DanDanger on December 17, 2005, 11:24:52 pm ---PS :
There is also a error in
"trunk/src/sdk/confimanager.h" (Line 201)
--- Code: ---if(TiXmlNode *n = ph.FirstChild(key).FirstChild("objmap").Node())
must be changed to :
if(TiXmlNode *n = ph.FirstChild(key.ToAscii()).FirstChild("objmap").Node()) // <-- key.ToAscii()
--- End code ---
Otherwise, TinyXML is not able to compile in Unicode-Mode.
--- End quote ---
Fixed.
DanDanger:
Hi,
--- Quote ---Yes, manually delete sdk/sdk.h.gch. The precompiled header holds an older signature of this function.
--- End quote ---
unfortunately, this doesn't work ;-(
Every time I type 'make', the Pre-Compiled Header will be generated new.
So, i edited the Makefile in "src/sdk/Makefile"
--- Code: ---"src/sdk/Makefile" (Line 268)
Changed :
#BUILT_SOURCES =
BUILT_SOURCES = $(srcdir)/sdk.h.gch
to :
BUILT_SOURCES =
#BUILT_SOURCES = $(srcdir)/sdk.h.gch
(apparently, i am not the only one with this Problem ;-) )
--- End code ---
So, I typed 'make clean" and recompiled everything.
The "sdk.h.gch"-File is gone, however, the same linker-error is still there ;-(
I could not find any other Pre-Compiled headers in the "src/"-Directory, so i wonder
if something is wrong with the Makefiles... ?
Any suggestions ?
Greetings
DanDanger
thomas:
--- Quote ---unfortunately, this doesn't work ;-(
Every time I type 'make', the Pre-Compiled Header will be generated new.
--- End quote ---
Umm.... this is exactly what should happen. You should delete the precompiled header so it gets freshly compiled with the proper signatures.
Without the precompiled header alltogether, you might get the same error (and others in addition) because it is possible that we do not include everything that is needed in every file. Since we use precompiled headers by default, it is easy to miss one file.
DanDanger:
Hi,
well, the freshly compiled "Pre-Compiled header" is not working at all ;-(
Still, the same Linker-Error ;-(
Why is C::B so hard to compile ??
Greetings
DanDanger
Navigation
[0] Message Index
[#] Next page
Go to full version