All it does is open a window that says Hello World.
https://github.com/BuckRogers1965/SDLtut/blob/master/first.c
You compile this program by typying:
gcc `sdl-config --cflags --libs` first.c
Then run the a.out program by typing:
./a.out
https://github.com/BuckRogers1965/SDLtut/blob/master/first++.c
I had to use a c extension on this c++ program because wordpress is retarded.
You compile this program by typying:
g++ `sdl-config --cflags --libs` first++.c
Then run the a.out program by typing:
./a.out
The only difference between the two is that the c++ version uses the bool, true and false keywords, while the c version uses int
and then defines TRUE and FALSE.
I got the original example code from here.
Interestingly the code is .2KB bigger when compiled as C++.
A blog devoted to challenging dogma, where ever and who ever is shoveling it.
Subscribe to:
Post Comments (Atom)
The Digital Town Hall: Architectural Constraints as Democratic Defense
J. Rogers, SE Ohio. A Sociological Analysis of the Distributed Dunbar Protocol 1. Abstract The transition from analog democratic feedback l...
-
The tent smelled of ozone, sawdust, and cheap miracles. On a rickety stage, a man named Constantine adjusted the frayed cuffs of his tuxedo...
-
First the bad news. For som e reason the Amazon Web S ervice console was running very badly under F irefox. It was taking forever to load a...
-
So, I saw this kit on Amazon. It seemed too good too be true. The kit was priced right, it was less than 2 dollars for each board. Of co...
No comments:
Post a Comment