Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-static flag #21

Open
GoogleCodeExporter opened this issue Mar 13, 2015 · 3 comments
Open

-static flag #21

GoogleCodeExporter opened this issue Mar 13, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

一直compilation error

/usr/bin/ld: cannot find -lstdc++
/usr/bin/ld: cannot find -lm
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status

装了
libstdc++-static.i686 : Static libraries for the GNU standard C++ library
glibc-static.i686 : C library static libraries for -static linking.
两个包以后解决 = =

Original issue reported on code.google.com by [email protected] on 23 Apr 2012 at 10:21

@GoogleCodeExporter
Copy link
Author

噢 
多谢反馈。这是因为你在x64的系统上安装,但是oj默认是按照
x86进行编译,所以需要安装x86的lib。

Original comment by [email protected] on 10 Dec 2012 at 6:23

@GoogleCodeExporter
Copy link
Author

p.s. ubuntu amd64下对应的包可能是 libc6-dev-i386 libc6-i386 

Original comment by [email protected] on 10 Dec 2012 at 7:56

@GoogleCodeExporter
Copy link
Author

谢啦哥们,我当时用的Fedora。偷来交..毕业..设计的.. ಠ_ಠ
非常出色的系统!迟到的回复勾起了很多回忆 ಠ◡ಠ

Original comment by [email protected] on 10 Dec 2012 at 8:11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant