User forums > Using Code::Blocks
Adding new class with the class wizzard causes "undefined reference to main"
linuser42:
edit: see last post for solution
I'm using Code Blocks Release 13.12 rev 9501 (2013-12-25 18:25:45) gcc 5.2.1 Linux/unicode - 64 bit
This is not a new found bug by me, but has happened to a lot of people
- http://forums.codeblocks.org/index.php?topic=20115.0
- http://forums.codeblocks.org/index.php?topic=19639.0
- http://forums.codeblocks.org/index.php?topic=19772.0
- https://stackoverflow.com/questions/24537874/undefined-reference-to-main-after-adding-a-class-to-project
I didn't have this bug with the 32 bit version of Code Blocks on my previous system!
edit: I was using a svn build from https://launchpad.net/~pasgui/+archive/ubuntu/ppa which didn't contain the bug
As you can see from the link workarounds include:
- adding class by wizard, then closing and opening the project
- adding files manually to the project one by one
- installing the nightly builds
The most obvious one it to install the nightly builds of course.
But this seems like a minor bug to fix, especially since it has worked flawlessly for years.
Is anybody else experiencing this?
Is there a plan to add this to the stable builds?
Thanks in advance.
edit: see last post for solution
oBFusCATed:
We have 15.12rc1, so if you don't use a nightly try this and tell us if the bug is really fixed.
We won't be patching 13.12 for sure.
linuser42:
So it's a bug on the 64 bit version?
How do I install that version?
I'm running Ubuntu MATE 15.10, and there's no .deb package or something similar here:
http://sourceforge.net/projects/codeblocks/files/Binaries/15.12-RC1/
So nightly is the only option for me?
BlueHazzard:
--- Quote from: linuser42 on November 30, 2015, 05:46:39 pm ---So it's a bug on the 64 bit version?
--- End quote ---
As far as i know this was a bug in 13.12. In every version not only 64 or 32 bit.
--- Quote from: linuser42 on November 30, 2015, 05:46:39 pm ---So nightly is the only option for me?
--- End quote ---
yes. Your bug is fixed there. You can find pre build packages for your os in the corresponding forum posts: http://forums.codeblocks.org/index.php/topic,20707.msg141111.html#msg141111
greetings
linuser42:
--- Quote from: BlueHazzard on November 30, 2015, 06:44:31 pm ---As far as i know this was a bug in 13.12. In every version not only 64 or 32 bit.
--- End quote ---
I forgot to mention I used the svn build on Ubuntu 12.04 from https://launchpad.net/~pasgui/+archive/ubuntu/ppa and didn't have this bug.
So, which one should I use?
https://apt.jenslody.de - I'm guessing I need the unstable? Can I use them on Ubuntu?
or
https://launchpad.net/~damien-moore/+archive/ubuntu/codeblocks - will this work on Ubuntu 15.10?
Navigation
[0] Message Index
[#] Next page
Go to full version