-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
g++: error: unrecognized command line option ‘-R’ #706
Comments
Actually, '-R' should be replace with '-Wl,-rpath=' . After replacing '-R' with '-Wl,-rpath=', the g++ command can be successfully run. You just copy the above wrong command and replace '-R' with '-Wl,-rpath=' or '-Wl,-R' (this is also ok) and run again. |
@xiamenwcy I have the same mistake, In that file will -R changed to -Wl,-rpath= |
Hi, |
After reading the docs of Cython and setup file in lib. I have solved the problem yet. You should modified the files in numpy/distutils which is named by unixcompiler.py. In this file changed '-R' to '-Wl,-rpath=' |
@SophieZhou thank you~~I have solved it. |
@SophieZhou I can find the file numpy/distutils/unixcompiler.py, but i can't find '-R'. Can you show me the code or where is the '-R'? Thank you very much! |
@zhoupan9109 in my computer: here is the -R,line in 255 |
@UUZYWEI Can you give me the absolute path of the file unixcompiler.py? |
@zhoupan9109 ...../anaconda3/lib/python3.6/distutils/unixcompiler.py, in your now python path/distutils/unixcompiler.py |
@UUZYWEI Thank you very much! I have solved it! |
hi,when I‘m ’building the Cython modules,
there is always a error occured.
![](https://camo.githubusercontent.com/38aed9afca4ef97f9811fd349d36e3628fb338be395ec306479775a56b42fa60/687474703a2f2f6f77363830797a65702e626b742e636c6f7564646e2e636f6d2f25453625393025394325453725384225393725453625383825414125453525394225424532303137313031373138333130322e706e67)
My gcc is 4.8.2,But I guess it does not matter with gcc version! who can help me ?
The text was updated successfully, but these errors were encountered: