User forums > Using Code::Blocks

Compiling GTK 2

(1/1)

ordak:
Hi,

I am following this link for GTK 2 compiling. In Code::Blocks where can I input these :

-L/usr/lib -L/usr/X11R6/lib

BlueHazzard:
Project->Build options->Select your project name at the left->Search directories->Linker

Add your paths without the -L

Or you can put your options in
Project->Build options->Select your project name at the left->Linker settings->Other linker options

ordak:

--- Quote from: BlueHazzard on January 16, 2020, 03:51:08 pm ---Project->Build options->Select your project name at the left->Search directories->Linker

Add your paths without the -L

Or you can put your options in
Project->Build options->Select your project name at the left->Linker settings->Other linker options

--- End quote ---

Is the global way ( for all projects) like this :

Setting menu / compiler... / select desired compiler /

Rest is as your post or not ?

BlueHazzard:

--- Quote ---Is the global way ( for all projects) like this :

Setting menu / compiler... / select desired compiler /

--- End quote ---
yes but:
It is generally not a good idea to modify the global flags. A better way is to create a template project and use this, or modify the wizard script for the default project (a bit advanced)

For creating a project template:
1) Create a new project and set all settings as you like
2) Save the project as template with File->Save project as template

now if you want to use this template
File->New-> project->User templates

ordak:

--- Quote from: BlueHazzard on January 18, 2020, 05:24:14 pm ---
--- Quote ---Is the global way ( for all projects) like this :

Setting menu / compiler... / select desired compiler /

--- End quote ---
yes but:
It is generally not a good idea to modify the global flags. A better way is to create a template project and use this, or modify the wizard script for the default project (a bit advanced)


--- End quote ---

[...]

Actually in Global compiler setting I have different compiler setting in select compiler mode. GTK , warnings and more are configured there ,  I choose it for my temp projects.

Navigation

[0] Message Index

Go to full version