-
Notifications
You must be signed in to change notification settings - Fork 8
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
error: cast from ‘Thread*’ to ‘int’ loses precision [-fpermissive] #1
Comments
The precision loss in cast is intended as it is only a hash value (that isn't even used yet). Please test and report back if the compiler is satisfied with this solution or not. |
I get an error:
But adding In any case, both GCC and I say thanks! |
Ok, I double checked with http://glew.sourceforge.net/install.html and they say GL should be added just like on windows. |
System
Arch Linux 64bit
gcc (GCC) 4.7.0 20120505 (prerelease)
Git commit
0a98355
Error
$ make -j1 Make for Linux and derivates c++ -Wp,-M,-MP,-MT,build/source/de/hackcraft/lang/Thread.o,-MF,dep/build-source-de-hackcraft-lang-Thread.o.d -std=gnu++0x -Wall -I source -O1 -funroll-loops -c source/de/hackcraft/lang/Thread.cpp -o build/source/de/hackcraft/lang/Thread.o source/de/hackcraft/lang/Thread.cpp: In member function ‘virtual int Thread::hashCode()’: source/de/hackcraft/lang/Thread.cpp:41:17: error: cast from ‘Thread*’ to ‘int’ loses precision [-fpermissive] make: *** [build/source/de/hackcraft/lang/Thread.o] Error 1
The text was updated successfully, but these errors were encountered: