Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Anonymous on May 19, 2005, 11:03:52 pm

Title: Linking error on debian
Post by: Anonymous on May 19, 2005, 11:03:52 pm
tried to compile the finalbeta using the tutorial in the wiki but:

Linking executable devel/codeblocks.exe...
/usr/local/lib/libwx_gtk2_xrc-2.4.so: undefined reference to `wxButton::IsOwnGtkWindow(_GdkDrawable*)'
/usr/local/lib/libwx_gtk2_xrc-2.4.so: undefined reference to `wxWindow::IsOwnGtkWindow(_GdkDrawable*)'
collect2: ld returned 1 exit status
make: *** [devel/codeblocks.exe] Fehler 1

I think i need some help :)
Title: Linking error on debian
Post by: Anonymous on May 26, 2005, 08:42:00 am
I am wondering, why there is no reply - did I ask the "wrong way" or does nobody knows a solution for this problem?
Title: Linking error on debian
Post by: mandrav on May 26, 2005, 12:12:47 pm
Hmm, I hadn't noticed this thread  :oops:

Anyway, it never happened to me. It looks like XRC is not compiled correctly. Or there's something different with your specific debian distro. Which is it by the way?

Yiannis.
Title: Linking error on debian
Post by: Anonymous on May 26, 2005, 04:53:18 pm
@mandrav: hehe, no problem :)
- I am using debian sid, installed from kanotix (a "better" knoppix livecd).
- I got no error on compiling/installing xrc.

btw, I am alredy using the windows version of code::blocks (gcc) and its great - so I will not vanish until it also works under linux :)
Title: Linking error on debian
Post by: rickg22 on May 26, 2005, 05:13:56 pm
What version of wxWidgets are you using?
And what's your name? ("Guest" doesn't say much ;-) )
Title: Linking error on debian
Post by: Anonymous on May 26, 2005, 05:38:59 pm
I am using 2.4.2 - as i was told in the tutorial.
ok, i know the right way is to register - as soon as i found a name thats unique in all forums i am registered - I will register. In some forums i am called seitan.
Title: Linking error on debian
Post by: Anonymous on May 30, 2005, 09:49:58 pm
got the same error in ubuntu hoary, just changing the lines (at the beginning of Makefile.unix):
LIB_WXSTC=wx_gtk2_stc-2.4
LIB_WXXRC=wx_gtk2_xrc-2.4

to:

LIB_WXSTC=wx_gtk_stc-2.4
LIB_WXXRC=wx_gtk_xrc-2.4

did it for me.
why is that there anyway, shouldn't wx-config take care of things like this?

-raven (who's also getting an account soon, but hates registering at thousand different forums, mailing lists are such a nice thing...)
Title: Linking error on debian
Post by: mandrav on May 30, 2005, 10:30:06 pm
Quote
why is that there anyway, shouldn't wx-config take care of things like this?

Last time I checked, wx-config was not aware of the "contrib" libs included in wxWidgets.
I may be wrong though...

Yiannis.
Title: Linking error on debian
Post by: Anonymous on June 01, 2005, 05:26:48 pm
@raven: ok, after renaming it worked!

but then i got errors on start of codeblocks (missing libs).
after "ldconfig" they were gone. (nothing was added manually in /etc/ld.so.conf - like the wiki told for fedora users)
then i tried to use the original makefile and it worked.
so we need a simple "ldconfig" for debian users.

"dos2unix -n update update.unix"
didn't worked here.
i used "dos2unix -d update"

seitan
Title: Linking error on debian
Post by: Anonymous on June 07, 2005, 10:15:01 am
i had similar problem before i found the libraries installed in /usr/local/lib only have libwx_gtk2_xrc-2.5.so and libwx_gtk_stc-2.4.so.
so i modified Makefile.unix

LIBS_WXSTC=wx_gtk_stc-2.4
LIBS_WXXRC=wx_gtk2_xrc-2.5

and recompiled without any errors.