2012-07-20 95 views
0

当库路径包含空格时,找不到路径。 因此,我使用引号来包装路径。该路径已找到,但无法在目录中找到该库。Makefile在库目录中有空格

如:
Debug_Library_Path=-L"../Externals/TextLibrary/libs/with space/gccDebug/" Release_Library_Path=-L"../Externals/TextLibrary/libs/with space/gccRelease/"

Debug_Libraries=-Wl,--start-group -lTextLibrary -Wl,--end-group Release_Libraries=-Wl,--start-group -lTextLibrary -Wl,--end-group

它提示说:找不到 “-lTextLibrary”

有谁知道什么可能会造成这个问题?

+0

您能否提供有关生成错误的实际命令的信息? – 2012-07-23 18:55:04

回答

0

由于错误消息指出-lTextLibrary找不到(不是TextLibrary!),我怀疑这是路径问题。相反,您的程序会将您的选项解释为输入文件。检查你的程序使用什么类型的参数,也许试着改变参数/选项的顺序。