User forums > Using Code::Blocks

link errors

<< < (4/4)

tksuoran:
I'm having the same problem with gcc 4. It looks like gcc 4 really wants those virtual destructors. I get lots of warnings that they are missing, and then linking fails.

zieQ:
I think that, in the C++ standard, virtual destructors are not mandatory. It seems to be a bug from gcc4.
Anyway, it's a good habit to use virtual destructors, so IMHO we should change all the offending destructors in C::B!

Link5225:
Any progress on this yet?  I use Fedora Core 4 with gcc 4.0, and I'd really like to try out Code::Blocks.  I've been running into a few problems trying to compile gcc 3.4 from source, so I'd rather just be able to compile with 4.0.  Is there any easy way to fix this?

EDIT:  Okay, turns out it does work if I use wxWidgets 2.6.2 and the CVS version of C::B (downloaded at night on Oct 18, whatever version that might be).  From there I just followed the instructions on the wiki, including the bootstrapping and everything shown at the bottom.  Hopefully whatever was fixed to get rid of the 'undefined reference to vtable' errors will be included in the actual release sometime soon.

Navigation

[0] Message Index

[*] Previous page

Go to full version