我使用 CPP 和 BASS 在 Windows 上编写了一个应用程序,现在我必须让它在 Linux (UBUNTU) 上运行。
I am using gcc version 4.5.2.
我的目录中有 bass.lib,我尝试使用以下命令参数编译 prog.cpp:
gcc prog.cpp -L. -lbass.lib
但我收到以下错误:
/usr/bin/ld: cannot find -lbass.lib
collect2: ld returned 1 exit status
我认为这是一个链接错误,编译器没有找到 Bass.lib,但我已在命令行上指定为参数。
不知道该怎么做,任何帮助都会非常棒。