-
Notifications
You must be signed in to change notification settings - Fork 106
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
-lm does not end up on the linker command line with hcc-config #144
Comments
Sorry, accidentally submitted the issue w/o a description. I'm having the problem that with a command line like
So what is the right way to compile with hcc, I have a program that uses math functions on both host and device side? |
This can btw. be reproduced nicely with the following really tiny program: // main.cpp
#include <hcc/hc_math.hpp>
//#include <cmath>
int main()
{
return (int)sqrtf(2.0f);
} When calling
the linker complains:
while
compiles and links just fine. BTW: Ubuntu 14.04
|
@szellmann normally it's anticipated that user would link with |
No description provided.
The text was updated successfully, but these errors were encountered: