Code::Blocks Forums

User forums => Help => Topic started by: leocata72c++ on April 15, 2018, 07:23:06 pm

Title: [SOLVED] configure codeblocks 17.12 for cimg
Post by: leocata72c++ 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?
Title: Re: configure codeblocks for cimg
Post by: oBFusCATed on April 15, 2018, 07:44:48 pm
http://wiki.codeblocks.org/index.php/FAQ-Compiling_(errors)#Q:_What_do_I_need_to_know_when_using_3rd_party_libs.3F
Title: Re: configure codeblocks for cimg
Post by: leocata72c++ 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
Title: Re: configure codeblocks for cimg
Post by: BlueHazzard on April 15, 2018, 09:29:59 pm
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F