Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
包括我们需要使用的 gstreamer 库
-lgstreamer-0.10
但是如果我想手动指定完整的路径..在这种情况下是
/usr/bin/gstreamer-0.10
我怎样才能做到这一点
我尝试执行以下操作,但这给了我以下错误:
-L/usr/lib/gstreamer-0.10
-L 定义搜索路径:
-L/usr/lib -lgstreamer-0.10
请注意,如果您不使用预期的库名称样式('lib' 前缀 - 库名称 - '.a' 后缀),则 -L 不起作用。相反,只需在 makefile 的编译行末尾包含库的完整名称。
cc -o tst tst.o /usr/lib/gstreamer-0.10