0

I'm doing some experimenting with magick++ and when I compile my snippets I just use g++ and type g++ test.cpp `Magick++-config --cppflags --cxxflags --ldflags --libs` -o prog but I have recently fallen in love Code:Blocks and I'm wondering how I can tell it to compile like above? I haven't been able to figure it out on my own.

1 Answer 1

2

Open from menu →Project →Build Options Navigate to →Compiler settings →OtherOptions and enter:

$\(Magick++-config --cppflags --cxxflags\) 

Navigate to →Linker settings and enter to →Other linker options:

$\(Magick++-config --ldflags --libs\) 

Escaping \( and \) are necessary. Remember to select the project on left, not a build target.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.