
对于libopencv_core249.dll.a,怎么连接呢?
In MinGW you don’t put the full name of the libraries, the linker will add the extension and the lib prefix. So when you say -llibcurl the linker will look for liblibcurl.a. Just use -lcurl and it will work.
由上可知,有以下两种方式:
- g++ my.cpp -l opencv_core249
- g++ my.cpp -l opencv_core249.dll
其实,这两种方法均可以,最好就用第一种了




近期评论