0

我正在使用一个名为 OlcPixelGameEngine 的头文件,还有一个头文件,但是当我运行编译命令时,我得到了一个很大的错误。

这是编译cpp程序的命令。

g++ main.cpp -o main -luser32 -lgdi32 -lopengl32 -lgdiplus -lShlwapi -lstdc++fs -static -std=c++17 -lxinput9_1_0 -lole32 -loleaut32 -ldinput8 -ldxguid -ldwmapi

这是错误:-

/usr/bin/ld: cannot find -luser32
/usr/bin/ld: cannot find -lgdi32
/usr/bin/ld: cannot find -lopengl32
/usr/bin/ld: cannot find -lgdiplus
/usr/bin/ld: cannot find -lShlwapi
/usr/bin/ld: cannot find -lxinput9_1_0
/usr/bin/ld: cannot find -lole32
/usr/bin/ld: cannot find -loleaut32
/usr/bin/ld: cannot find -ldinput8
/usr/bin/ld: cannot find -ldxguid
/usr/bin/ld: cannot find -ldwmapi
collect2: error: ld returned 1 exit status

我正在使用 Linux,Ubuntu 20.04。

4

0 回答 0