Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: FableSix on November 12, 2018, 07:36:57 am

Title: Problem(s) with compiler settings
Post by: FableSix on November 12, 2018, 07:36:57 am
Hello there! New user of C::B (well...currently learning C++ by myself) and for some reasons, my compiler settings stopped working. I've looked for solutions but found nothing. Here's what happening.

I first pressed F9 to compile and here is what showed up

(http://i67.tinypic.com/2pqqgc3.png)

Then I've seen that it says Borland as my default compiler (wich is not) so I go in my settings to see if something changed. Here is what I've found

(http://i65.tinypic.com/2e4yedc.png)

But the problem is when I close this window, I still get that error message and can't compile anything still

(http://i67.tinypic.com/2lsjr61.png)

I've also checked if my Debugger was correct and it's still correct as you can see

(http://i67.tinypic.com/2ch89bm.png)

Can someone help me with that? Thanks in advance! :)

PS: I've already uninstalled and re-installed code::blocks
PPS: Yes, Borland is now named 1- No Use...tried to rename it if by any chance he could forget it...didn't worked
Title: Re: Problem(s) with compiler settings
Post by: Quiss on November 12, 2018, 08:30:07 am
You should check/change your project's settings; right click project->Build options
Title: Re: Problem(s) with compiler settings
Post by: BlueHazzard on November 12, 2018, 03:06:48 pm
Can you please post the configuration file found in
c:\Users\YOURNAME\AppData\Roaming\Codeblocks\default.conf
? You probably can zip it and post the zip archive here.

To come faster to this folder you can enter
Code
%appdata%\Codeblocks
in the URL control of the explorer and press enter
Title: Re: Problem(s) with compiler settings
Post by: FableSix on November 12, 2018, 05:01:31 pm
Here is my conf settings
Title: Re: Problem(s) with compiler settings
Post by: FableSix on November 12, 2018, 05:02:29 pm
You should check/change your project's settings; right click project->Build options

I've tried it but didn't worked. Thanks anyway!  :'(
Title: Re: Problem(s) with compiler settings
Post by: stahta01 on November 12, 2018, 06:07:12 pm
You should check/change your project's settings; right click project->Build options

I've tried it but didn't worked. Thanks anyway!  :'(

You need to change the project's selected compiler to a valid compiler!

Tim S.
Title: Re: Problem(s) with compiler settings
Post by: oBFusCATed on November 12, 2018, 08:06:50 pm
What compiler is selected for the target you're building?
Title: Re: Problem(s) with compiler settings
Post by: BlueHazzard on November 12, 2018, 08:30:58 pm
Your settings file seems to be fine. You probably have messed up somehow your project.

As other have pointed out you probably have to select the right compiler for your project. You can do this with
1) Project->Build options->select the project name on the left->From the drop down menu "Selected compiler" select the "gnu gcc compiler".
2) Now click on each target name in the tree control on the left and check it there is the same compiler selected in the "Selected compiler" option.
3) Close the dialog with OK
4) Save everything with File->Save everything
5) Rebuild your project with Build->Rebuild

If this does not help please post your zipped project file