我正在使用代码块mingw32 portable作为我的c ++编译器 编译cpp时我的编译器会出错(下面给出了链接到cpp)。 错误如下: -
ld||cannot find -lSDL2_image|
ld||cannot find -lSDL2_mixer|
||=== Build finished: 2 errors, 0 warnings (0 minutes, 4 seconds) ===|
我已经在链接器选项中包含了-lSDL2_image -lSDL2_mixer
链接到从lazyfoo下载的cpp文件: - http://lazyfoo.net/tutorials/SDL/06_extension_libraries_and_loading_other_image_formats/index2.php
我真的很感谢你的帮助!!!!
答案 0 :(得分:0)
你只需要添加
的lib文件sdl_image and sdl_mixer
到minw32的lib文件夹,如上面的错误编译器无法找到链接库