Hi, I cant find fedora rpm package with sfml 1.6 so I decided to compile it on my own. I tried compile source code linked on sfml site but I got strange error. I didn't give up and I cloned git repository, switch to 1.6 branch.. and then.. get the same problem.
g++ -o PostFX.o -c PostFX.cpp -W -Wall -pedantic -I../../../include -I../../ -O2 -DNDEBUG -fPIC -I/usr/include/freetype2
In file included from ../../../include/SFML/System/Resource.hpp:211:0,
from ../../../include/SFML/Graphics/Image.hpp:31,
from ../../../include/SFML/Graphics/PostFX.hpp:32,
from PostFX.cpp:29:
../../../include/SFML/System/ResourcePtr.inl: In constructor ‘sf::ResourcePtr< <template-parameter-1-1> >::ResourcePtr()’:
../../../include/SFML/System/ResourcePtr.inl:31:12: error: ‘NULL’ was not declared in this scope
../../../include/SFML/System/ResourcePtr.inl: In member function ‘void sf::ResourcePtr< <template-parameter-1-1> >::OnResourceDestroyed()’:
../../../include/SFML/System/ResourcePtr.inl:148:18: error: ‘NULL’ was not declared in this scope
2.0 compile clean but I want to use 1.6
32 bit, Fedora 15 Beta, GCC 4.6.0.
(it's not a problem of beta version of fedora, I found a bug report for ubuntu as well)
Any idea how to deal with it?
---
I've used gcc3.4, sfml compiled
But this is not the way I want work.. Still need help.