Author Topic: [SOLVED] configure codeblocks 17.12 for cimg  (Read 3828 times)

Offline leocata72c++

  • Single posting newcomer
  • *
  • Posts: 2
[SOLVED] configure codeblocks 17.12 for cimg
« on: April 15, 2018, 07:23:06 pm »
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?
« Last Edit: April 17, 2018, 09:56:17 pm by leocata72c++ »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
(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!]

Offline leocata72c++

  • Single posting newcomer
  • *
  • Posts: 2
Re: configure codeblocks for cimg
« Reply #2 on: April 15, 2018, 08:05:57 pm »
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
« Last Edit: April 15, 2018, 08:08:16 pm by leocata72c++ »