So this tutorial is kind of interesting.
http://www.sfml-dev.org/tutorials/1.6/graphics-wxwidgets.phpBut how do you actually compile the code?
Using my somewhat limited knowledge of wxWidgets development and the SFML tutorial
here. I was able to get this compile line to not give any dependency errors:
g++ wxSFMLCanvas.cpp -lsfml-graphics `wx-config --libs` `wx-config --cxxflags` `pkg-config --cflags gtk+-2.0` `pkg-config --libs gtk+-2.0` -o out
But it fails with the somewhat cryptic:
/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
Which means. . . what exactly?
what am I going about wrong?
I'm new to SFML and somewhat new to wxWidgets, still only a journeyman with Linux.