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.
我需要在 Application.mk 文件中指定库的路径才能正确链接它。这该怎么做?有没有 GCC 命令呢?
您必须添加LOCAL_LDLIBS := -L/path/to/the/library到文件Android.mk中。
LOCAL_LDLIBS := -L/path/to/the/library
Android.mk
将-L/path/to/the/library标志添加到 gcc 命令行参数。
-L/path/to/the/library