开发者

GCC - Linking bass.lib on Ubuntu

I wrote an application on Windows using CPP and BASS, and now I have to get it running on Linux (UBUNTU).

I am using gcc versio开发者_C百科n 4.5.2.

I have bass.lib in my directory from which I try to compile prog.cpp using the following command arguments:

gcc prog.cpp -L. -lbass.lib

But I get the following error:

/usr/bin/ld: cannot find -lbass.lib
collect2: ld returned 1 exit status

I figure that this is a linking error, the compiler is not finding Bass.lib but I have specified as an argument on the command line.

Not sure what to do, any help would be really great.


bass.lib sounds like the windows library. You cannot use libraries generated on windows, (likely generated with the MSVC compiler), on linux.

The linux version of the library seems to be named libbass.so , in which case you'd use -lbass as the linker argument , and possibly other compiler/linker flags as well depending on where on the system you install the library. The bass.txt in the linux download of libbass have a few notes on what to do on Linux.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜