Gcc找不到葡萄酒库

时间:2012-04-24 08:41:26

标签: c++ c gcc opensuse wine

编译LMMS时出现以下错误:

/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -lshell32
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -lcomdlg32
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -lgdi32
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -ladvapi32
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -luser32
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -lkernel32
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -lntdll

我有32位和64位版本的葡萄酒,所有的库都位于/ usr / lib(64)/ wine /

我该怎么做才能用它编译?

Makefile:http://pastebin.com/kgUe0cW1

1 个答案:

答案 0 :(得分:0)

在编译命令中添加此opt行?
-L/usr/lib(64)/wine

然后你的ld会找到.so文件。