News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Compilation Error on CodeBlocks

Started by Fredy, September 23, 2023, 06:02:35 PM

Previous topic - Next topic

Fredy

I am running Code::Blocks version 16.01 on windows 10. The compiler I use is GNU GCC Compiler. Version, I am not sure. When I try to compile a multiple-source file program, it just could not compile. I tried saving both source files on the same directory but it could not work. I have attached the build logs and build messages on this post. Any help?


Miguel Gimenez

You must add whatever file contains WinMain to the linker.

You have used code tags (the #) for the description, please use them (only) for attaching logs and messages instead of using images.

MortenMacFly

...fixed in revision 13360. Sorry about that, I forgot to select one file on the initial commit
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

ollydbg

Quote from: MortenMacFly on September 24, 2023, 07:26:41 PM
...fixed in revision 13360. Sorry about that, I forgot to select one file on the initial commit

Hi, Morten, thanks. But you replied in the wrong thread.

It should be here: https://forums.next.codeblocks.org/index.php/topic,25527.msg173806.html#msg173806
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.