User forums > Help
Wont Build C code
Jenna:
It looks like the ending of your file is ".o" that can never work.
Try to create a simple project with the wizard.
If you create a file make sure you type the correct ending, C::B does not create the ending automagical.
stahta01:
--- Quote from: Rich_P on January 25, 2013, 02:08:25 pm ---I had the wrong one installed, so i have installed the correct one and have this issue now
Execution of 'mingw32-g++.exe -o "C:\simple\Simple 3.exe" "C:\simple\Simple 3.o"' in 'C:\Users\richardpel\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\CodeBlocks' failed.
i selected "C" as my starting langueage but it seems to want to build it using the g++ compiler ? and not gcc?
I have checked int he folder that C::B is pointing to for its compiler and there is the ming32-gcc.exe
im stumped,
thanks
Rich
--- End quote ---
I am guessing you choose to only install a C compiler and not the C++ compiler.
Please post a full re-build log; so, I can confirm this.
The means do a re-build instead of a build!
After that post the full compiler log; so, I can see the compiler commands.
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
Edit2: The command you posted in the error message looks like a linking command using the default c++ linker exe.
Tim S.
Rich_P:
HI Tim,
When i open the Hello.C program, and try and BUILD it, i get the error i posted,
I dont get the option to REBUILD it as this option is greyed out in the toolbar.
Sorry to be such a pain in the arse
Hope you can help
Rich
Rich_P:
Hi Jens,
I open the Hello.C code from the File..open Menu,
From there, i choose build, and get the error posted, with no option to rebuild
Rich
Rich_P:
This is the full build Log from C::B
Thanks
Rich
mingw32-gcc.exe -c "\\fs02\users\richardpel\C Code\hello.c" -o "\\fs02\users\richardpel\C Code\hello.o"
mingw32-g++.exe -o "\\fs02\users\richardpel\C Code\hello.exe" "\\fs02\users\richardpel\C Code\hello.o"
Execution of 'mingw32-g++.exe -o "\\fs02\users\richardpel\C Code\hello.exe" "\\fs02\users\richardpel\C Code\hello.o"' in 'C:\Users\richardpel\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\CodeBlocks' failed.
Nothing to be done (all items are up-to-date).
Checking for existence: \\fs02\users\richardpel\C Code\hello.exe
Executing: C:\Program Files (x86)\CodeBlocks/cb_console_runner.exe "\\fs02\users\richardpel\C Code\hello.exe" (in \\fs02\users\richardpel\C Code)
Process terminated with status -1073741510 (0 minutes, 44 seconds)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version