1
General discussions / Problems with gcc 4.6
« on: April 09, 2011, 09:40:28 am »
Since I have upgraded to gcc 4.6, I get errors when compiling my sfml project. For example:
I looked this up and it seems that in gcc 4.6 STL headers don't include <cstddef> any longer.
I could manually work around this by adding "#include <cstddef>" to ResourcePtr.inl myself but I hope there is a better way than that.
Is anyone else using gcc 4.6 getting this problem?
Code: [Select]
/usr/include/SFML/System/ResourcePtr.inl:31: error: ‘NULL’ was not declared in this scope
I looked this up and it seems that in gcc 4.6 STL headers don't include <cstddef> any longer.
I could manually work around this by adding "#include <cstddef>" to ResourcePtr.inl myself but I hope there is a better way than that.
Is anyone else using gcc 4.6 getting this problem?