music 发表于 2020-7-9 23:26:52

这个编译警告可以忽略吗?

今天终于把SDL2的库编译出来了,最后有个编译警告。
如下,

libtool: link: warning: undefined symbols not allowed in i686-pc-mingw32 shared
libraries

编译环境是mingw gcc 4.62

完整信息如下

*** objectsbuild/version.o is not portable!
Creating library file: build/.libs/libSDL2.dll.a
CC   build/SDL_windows_main.lo
LTLINK build/libSDL2main.la
libtool: link: warning: undefined symbols not allowed in i686-pc-mingw32 shared
libraries
CC   build/SDL_test_assert.lo
CC   build/SDL_test_common.lo
CC   build/SDL_test_compare.lo
CC   build/SDL_test_crc32.lo
CC   build/SDL_test_font.lo
CC   build/SDL_test_fuzzer.lo
CC   build/SDL_test_harness.lo
CC   build/SDL_test_imageBlit.lo
CC   build/SDL_test_imageBlitBlend.lo
CC   build/SDL_test_imageFace.lo
CC   build/SDL_test_imagePrimitives.lo
CC   build/SDL_test_imagePrimitivesBlend.lo
CC   build/SDL_test_log.lo
CC   build/SDL_test_md5.lo
CC   build/SDL_test_memory.lo
CC   build/SDL_test_random.lo
LTLINK build/libSDL2_test.la
libtool: link: warning: undefined symbols not allowed in i686-pc-mingw32 shared
libraries
页: [1]
查看完整版本: 这个编译警告可以忽略吗?