SFML community forums
Bindings - other languages => C => Topic started by: Dominator on December 10, 2009, 05:52:40 pm
-
I updated SFML2 from the SVN repository today.
Then I successfully compiled SFML, but when I tried to compile CSFML I got the following error:
g++ -o Clock.o -c Clock.cpp -W -Wall -pedantic -Wno-unused -I../.. -I../../../include -g -O2 -DNDEBUG -fPIC -DCSFML_EXPORTS
In file included from Clock.cpp:29:
../../SFML/System/ClockStruct.h:31:33: error: SFML/System/Clock.hpp: No such file or directory
The file isn't missing, so what's the problem here?
Did a path change in an update?
-
I don't know. Everything works for me on Windows, I haven't tried on Linux yet.
Are you sure that you execute "make" from <root>/branches/sfml2/?
-
In Windows it works for me too.
I compiled SFML from the root directory, but I changed into the CSFML directory to compile CSFML, is this the wrong way to do it?
I believe I did it the same way when I compiled it before.
-
I compiled SFML from the root directory, but I changed into the CSFML directory to compile CSFML, is this the wrong way to do it?
No, it's ok.
-
I checked it out again from branches/sfml2 in a new empty directory to be sure that nothing went wrong with the update, but I still get the same error.
-
I got it working by adding -I../../../../include to CFLAGS.
-
That's weird. I should definitely look into this issue.