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

Link cilkrts to external application #3

Open
gonidelis opened this issue May 14, 2021 · 1 comment
Open

Link cilkrts to external application #3

gonidelis opened this issue May 14, 2021 · 1 comment

Comments

@gonidelis
Copy link

I have download and built OpenCilk/cilkrts from source. I have exported ~/cilk/cilkrts/build/install/lib to LD_LIBRARY_PATH but I still get /usr/bin/ld: cannot find -lcilkrts when compiling one of you applications with the Tapir-LLVM compiler.

What am I missing here?

@neboat
Copy link
Contributor

neboat commented May 17, 2021

In addition to adding that path to LD_LIBRARY_PATH (which tells the dynamic linker where to find the library), I think you need to tell the compiler where to find the library. You should be able to do that by specifying passing -L~/cilk/cilkrts/build/install/lib to the compiler.

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

2 participants