News:

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

Main Menu

[SOLVED] configure codeblocks 17.12 for cimg

Started by leocata72c++, April 15, 2018, 07:23:06 PM

Previous topic - Next topic

leocata72c++

How to set Codeblocks 17.12 for Cimg:
1- copy Cimg.h in the directory with the files and add this file at the project;
2-in the management tab under Project, right click on the project name->Properties->Project's build options-> linker settings->Other Linker Options (text box on the right)... you must write this:
-lm -lpthread -lX11.

have a nice day :)

Hi everyone,
i want to use Codeblocks with cimg library.I have copied CImg.h in the directory with sources and i add the file at the project but the compile process does not func
How to do?

oBFusCATed

(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!]

leocata72c++

#2
hi, I've set the search directories .. but it doesn't work :(
the main.cpp compiles  from the shell... there is an only one big file to include CImg.h and I have copied it in main directory of sources (where is main.cpp)
i've used :
g++ -o hello_word main -O2  -lm -lpthread -lX11
and the compilation process run out...
I've tried to add " -O2  -lm -lpthread -lX11" in "Other compiler Options" but it did not run out