c++ - How do I set up the linking order in code blocks? -


i tried run program on opencv got following error:

test_1.cpp:(.text+0x44): undefined reference `cv::imread(std::basic_string<char,     std::char_traits<char>, std::allocator<char> > const&, int)' 

i learnt order of sources , libraries on link line matters

so, running g++ -o test_1 test_1.cpppkg-config opencv --cflags --libs works.

however, how can setup code blocks when build code, applies correct order?


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -