News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Linking error on debian

Started by Anonymous, May 19, 2005, 11:03:52 PM

Previous topic - Next topic

Anonymous

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

Anonymous

I am wondering, why there is no reply - did I ask the "wrong way" or does nobody knows a solution for this problem?

mandrav

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.
Be patient!
This bug will be fixed soon...

Anonymous

@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 :)

rickg22

What version of wxWidgets are you using?
And what's your name? ("Guest" doesn't say much ;-) )

Anonymous

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.

Anonymous

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

mandrav

Quotewhy 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.
Be patient!
This bug will be fixed soon...

Anonymous

@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

Anonymous

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.