1
Graphics / Beginner: Pixel coordiates, put a pixel in the image
« on: June 23, 2012, 12:38:42 pm »
Hello,
I followed the tutorial and managed to compile that programm for a blank window. But then I tried to compile that code from the rendered window tutorial and I got that error
My first question what do I do wrong here and second one: How do I put a single pixel into the screen.
I followed the tutorial and managed to compile that programm for a blank window. But then I tried to compile that code from the rendered window tutorial and I got that error
Quote
namal@ubuntu:~/Documents$ g++ -c w2.cpp
namal@ubuntu:~/Documents$ g++ -o w2 w2.o -lsfml-graphics
/usr/bin/ld: w2.o: undefined reference to symbol 'sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)'
/usr/bin/ld: note: 'sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)' is defined in DSO /usr/lib/libsfml-window.so.1.6 so try adding it to the linker command line
/usr/lib/libsfml-window.so.1.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
My first question what do I do wrong here and second one: How do I put a single pixel into the screen.