User forums > Using Code::Blocks
undefined reference to `main'
BlueHazzard:
How did you added the files?
(@devs and only for the devs: this would not have happened if we save the project before building by default ;) because without fixed (saved) project a build is not possible, like the source files also have to be saved before build... )
Landslyde:
1) File -> New -> Project (game me main.cpp
2) File -> New-> Class (game me bottles.h and bottles.cpp)
BlueHazzard:
And at the popup about selecting target you enabled the tick on both?
Landslyde:
I did.
BlueHazzard:
i see from your signature that you are using a 5 year old release of codeblocks. Can you try the latest release? Can you reproduce this problem?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version