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.cpp
pkg-config opencv --cflags --libs works.
however, how can setup code blocks when build code, applies correct order?
Comments
Post a Comment