How to add GCC C++ Linker Flag AFTER cpp file ? #542
-
Hello , I am new in C++ and Eclipse CDT in this context and I have created a very simple CPP file that uses Imagick that compiles and works great from command line in Linux using : I have added the I have tried many things: Any help explaining what should I do to make it work would be great and highly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I suggest you try separating the linker flags from the libraries as follows:
|
Beta Was this translation helpful? Give feedback.
-
Thank you jld01 for your answer , that works great , and for helping me understand a bit more about it. |
Beta Was this translation helpful? Give feedback.
-
How do I mark the discussion solved , but leave it to the threads so others that might have a similar problem view the answer ? |
Beta Was this translation helpful? Give feedback.
I suggest you try separating the linker flags from the libraries as follows:
`Magick++-config --cxxflags --cppflags`
`Magick++-config --ldflags`
${COMMAND} ${FLAGS} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} ${INPUTS} ${EXTRA_FLAGS} `Magick++-config --libs`