Libnoise 不想编译:找不到 -lnoise

Libnoise don't want to compile: Cannot find -lnoise

我正在尝试使用 Libnoise 库,但我一直收到此错误:

F:\PortableApps\Documents\Adventure³>g++ Compiled/*.o -o Adventure3 -L./Libs -static -lglew32 -lglfw3dll -lopengl32 -lfreetype -lnoise -static-libgcc-static-libstdc++ Resources/icon.res
f:/portableapps/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lnoise
collect2.exe: error: ld returned 1 exit status

我的 Libs 文件夹中有 libnoise.lib。我尝试使用 -llibnoise 代替,我得到:

F:\PortableApps\Documents\Adventure³>g++ Compiled/*.o -o Adventure3  -L./Libs -static -lglew32 -lglfw3dll -lopengl32 -lfreetype -llibnoise -static-libgcc -static-libstdc++ Resources/icon.res
Compiled/Generator.o:Generator.cpp:(.text+0x3d): undefined reference to `noise::module::Perlin::GetValue(double, double, double) const'
Compiled/Generator.o:Generator.cpp:(.text+0x8a): undefined reference to `noise::module::Perlin::Perlin()'
Compiled/Generator.o:Generator.cpp:(.text$_ZN5noise6module6PerlinD1Ev[__ZN5noise6module6PerlinD1Ev]+0xa): undefined reference to `vtable for noise::module::Perlin'
Compiled/Generator.o:Generator.cpp:(.text$_ZN5noise6module6PerlinD1Ev[__ZN5noise6module6PerlinD1Ev]+0x19): undefined reference to `noise::module::Module::~Module()'
collect2.exe: error: ld returned 1 exit status

我不知道如何手动编译源代码,它总是 return 我 WinMain@16 错误,无论我尝试什么 make.

现在,我真的不知道该怎么办了...

有人有解决办法吗?

gcc 的

-l 选项假定库的名称以 lib 开头,因此 -lnoise 会 link libnoise.

通常.lib是n导入库或静态库。此处描述的与导入库相关的问题:

关于 libnoise:Netbeans C++ using MinGW and the libnoise library