Created attachment 414014 [details] The cpp code to reproduce the error. Description of problem: If you try to link a C Plus Plus file, which uses the openCv function cv:: imwrite, it gets an undefined reference error. undefined reference to `cv::imwrite(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::Mat const&, std::vector<int, std::allocator<int> > const&)' The strange thing is, that it links all other tested opencv functions like cv::imread successfully. Version-Release number of selected component (if applicable): 2.0.0-7.fc13 How reproducible: Try to compile and link the code in the attachment. Steps to Reproduce: 1. Download the attached code 2. Try to compile and link it: g++ -I/usr/include/opencv -lcxcore -lcv -lhighgui -lcvaux -lml opencv_bug.cpp 3. Actual results: []$ g++ -I/usr/include/opencv -lcxcore -lcv -lhighgui -lcvaux -lml opencv_bug.cpp /tmp/ccBD9wCz.o: In function `main': opencv_bug.cpp:(.text+0xfa): undefined reference to `cv::imwrite(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::Mat const&, std::vector<int, std::allocator<int> > const&)' collect2: ld returned 1 exit status Expected results: Compile and link sucessfully. Additional info:
Sorry for the late answear: Your code worked with : g++ $(pkg-config --cflags opencv) $(pkg-config --libs opencv) opencv_bug.cpp Only tested on OpenCV 2.2 just updated in Rawhide. So At least Closing to Rawhide.