News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Problem(s) with compiler settings

Started by FableSix, November 12, 2018, 07:36:57 AM

Previous topic - Next topic

FableSix

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



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



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



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



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

Quiss

You should check/change your project's settings; right click project->Build options

BlueHazzard

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
%appdata%\Codeblocks in the URL control of the explorer and press enter

FableSix


FableSix

Quote from: Quiss on November 12, 2018, 08:30:07 AM
You should check/change your project's settings; right click project->Build options

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

stahta01

Quote from: FableSix on November 12, 2018, 05:02:29 PM
Quote from: Quiss on November 12, 2018, 08:30:07 AM
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.
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]

oBFusCATed

What compiler is selected for the target you're building?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

BlueHazzard

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