News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Using code::blocks w/o a project

Started by dukester, January 27, 2024, 05:04:56 PM

Previous topic - Next topic

dukester

The compiler is set correctly in my C::B - GCC!! For some reason, C::B is running gcc in such a way that the obj file(s) are not created in single file, no project mode.
--
Duke

stahta01

#46
Quote from: dukester on January 29, 2024, 06:41:50 AM
The compiler is set correctly in my C::B - GCC!! For some reason, C::B is running gcc in such a way that the obj file(s) are not created in single file, no project mode.

If you expected the linker to be called, you will not see that.
I do think it is creating an object file, but, it will be someplace that might not be expected.
Edit: My info is years out of date; I have not used it in the last 3 years.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Pecan

#47
I think what @stahta01 is saying is:

Menu/Setting/compiler and in the top comboBox choose
the compiler with "(default)" appended.
See if that solves the problem.

It might as well do the link for you. It did for me.
Or maybe i should say, it created the executable.

dukester

I tried to include a screen shot but it didn't work.
Anyway, I don't have an entry like you show with the arrow.
I just have GNU GCC Compiler with no default after it
--
Duke

nenin

Quote from: dukester on January 30, 2024, 06:42:39 AM
I tried to include a screen shot but it didn't work.
Anyway, I don't have an entry like you show with the arrow.
I just have GNU GCC Compiler with no default after it
Here you can set it as default.

dukester

The "Set as Default" button is greyed out/not active on my version of C::B. The dropdown menu works and I can select from a long list of compilers - so I chose GNU GCC Compiler - but I cannot make it the default!!
--
Duke

Grit Clef

#51
Is your GNU GCC Compiler already default(followed by "default" within a pair of parentheses )? In that case, the Set As Default button will be gray.
-Windows 7, 32-bit
-CodeBlocks r13542, gcc 14.2.0, debug version

dukester

See reply #48 above! Anyway - I've given up on C::B on my Linux box. I've wasted enough of my and others' time. Thx for the input!!
--
Duke

Grit Clef

Sorry, I didn't read your reply#48.
But I Think This still can be solved. Could you please try closing all projects, and reset Compiler options again(my personal idea)?
-Windows 7, 32-bit
-CodeBlocks r13542, gcc 14.2.0, debug version

dukester

I've already nuked C::B off my system. I first installed a binary version for Linux. No joy! Then I built from source - No joy! I'm done - especially when I can compile C code by hand on a  terminal with zero probs - or from emacs - or from geany! Thanks anyway!!
--
Duke

stahta01

Quote from: dukester on January 30, 2024, 01:44:44 PM
The "Set as Default" button is greyed out/not active on my version of C::B. The dropdown menu works and I can select from a long list of compilers - so I chose GNU GCC Compiler - but I cannot make it the default!!

On windows, this means the currently selected compiler is the default already.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]