开发者

Including libraries while compilation

开发者 https://www.devze.com 2023-01-28 05:17 出处:网络
to include say gstreamer libraries we need to use -lgstreamer-0.10 but if i want to manually specify the complete path.. which in this case is

to include say gstreamer libraries we need to use

 -lgstreamer-0.10

but if i want to manually specify the complete path.. which in this case is

/usr/bin/gstreamer-0.10

how can i do that

i tried doing the following, but this give me following errors:

-L/usr/lib/gstreamer-0.10
开发者_如何学C


-L defines the search path so:

-L/usr/lib -lgstreamer-0.10

Note that if you don't use the expected style of library name ('lib' prefix - library name - '.a' suffix) the -L doesn't work. Instead, just include the entire name of the library at the end of your compile line in the makefile.

cc -o tst tst.o /usr/lib/gstreamer-0.10
0

精彩评论

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

关注公众号