User forums > General (but related to Code::Blocks)

Giving some feedback: Why I quit using Codeblocks.

<< < (3/3)

BlueHazzard:

--- Quote ---Edit: All of the settings went away that I thought needed grayed out under Project Compiler settings; including some that I thought should not go away. So, I am confused on what to do.

--- End quote ---
i really don't want to clutter this topic, and we probably should open a new topic for discussion, but i was talking about the settings:
Project->Settings->project settings->Object names generation (is not grayed out, but should be)
Project->Settings->Build targets->Output filename (should be grayed out)
ecc...
Project->Build options->Compiler settings->Compiler flags (should be grayed out)
Project->Build options->Compiler settings->Other compiler options (should be grayed out)
ecc...


--- Quote ---I just realized the problem is in the global compiler settings.

I think the solution should consider have a compiler used only for makefiles.
--- End quote ---
I don't understand what you are talking about? If a custom make file is used EVERY setting of compiler executable (linker and so) on SHOULD be ignored. Only the "make" program should work.... Can you elaborate more? Am i on the wrong path here?

stahta01:

--- Quote from: BlueHazzard on March 26, 2018, 08:34:24 pm ---
--- Quote ---Edit: All of the settings went away that I thought needed grayed out under Project Compiler settings; including some that I thought should not go away. So, I am confused on what to do.

--- End quote ---
i really don't want to clutter this topic, and we probably should open a new topic for discussion, but i was talking about the settings:
Project->Settings->project settings->Object names generation (is not grayed out, but should be)
Project->Settings->Build targets->Output filename (should be grayed out)
ecc...
Project->Build options->Compiler settings->Compiler flags (should be grayed out)
Project->Build options->Compiler settings->Other compiler options (should be grayed out)
ecc...


--- Quote ---I just realized the problem is in the global compiler settings.

I think the solution should consider have a compiler used only for makefiles.
--- End quote ---
I don't understand what you are talking about? If a custom make file is used EVERY setting of compiler executable (linker and so) on SHOULD be ignored. Only the "make" program should work.... Can you elaborate more? Am i on the wrong path here?

--- End quote ---

http://forums.codeblocks.org/index.php/topic,22529.0.html

Tim S.

Krice:

--- Quote from: paulvdh on March 25, 2018, 02:01:38 pm ---For a lot of (especially for Open Source) projects it is mandatory that they are buildable from the commandline (and scripts).
--- End quote ---

In IDE the project is the "makefile". Makefile is another way to tell how to build the project, but it's quite shady and outdated way to be honest. You should be able to compile the project within the IDE, why else use it in the first place? Why not use a text editor for code and write a makefile for the project if it's what you need? Or you can also write the code in IDE and then just write a makefile for the project and run it from command line.

BlueHazzard:
Just a quick follow up for people who find this thread by google and wonder how you can make codeblocks to execute different targets with makefiles...

Codeblocks by default calls the makefile like this:
/PATH/TO/MAKE/SET/BY/COMPILER/OPTIONS/FOR/THIS/PROJECT/makebinary TARGET_NAME

So if your environment is like this:
1) AVR gcc (with bin utils and make and whatever) installed in /bin/avr/gcc and the base for your makefile project is the avr gcc compiler
2) Your project has two targets one is called "build" the other is called "program"

Now if you build (Build->Build) the target "build" codeblocks calls

--- Code: ---/bin/avr/gcc/make -f makefile build
--- End code ---

If you build (Build->Build) the target "program" codeblocks calls

--- Code: ---/bin/avr/gcc/make -f makefile program
--- End code ---

You can modify the behaviour in Project->Build options->Make commands

Navigation

[0] Message Index

[*] Previous page

Go to full version