-
Notifications
You must be signed in to change notification settings - Fork 530
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
[Build] collect2: error: ld returned 1 exit status #3531
Labels
Comments
When I tried building the examples using cmake, it completed successfully, and I was able to run the build results without any issues. |
I believe the key to solving the problem is figuring out how to make my GCC compile successfully. |
Try to compile your program using |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The error you encountered while using rust-arrayfire is "collect2: error: ld returned 1 exit status." To troubleshoot, you tried manually compiling with GCC using the following command:
gcc -lafcpu -L/opt/arrayfire/lib -I/opt/arrayfire/include -std=c++11 helloworld.cpp
.This also resulted in the same error.
You have installed ArrayFire by compiling it, with the installation path at /opt/arrayfire,
using the command
cmake .. -DCMAKE_INSTALL_PREFIX=/opt/arrayfire.
$LD_LIBRARY_PATH=/opt/arrayfire/lib
The text was updated successfully, but these errors were encountered: