ben —
's at file scope have external linkage by default in C99 In C++ they have linkage! (i.e. declarin…
Mike T —
I'd like a half stack of bananacakes, please!
I definitely second "K&R" for learning The C Programming Language. Tour of C++ comes highly…
Thanks for the replies. I tried the commands from the first the stackOverflow link: It fixes both…
use const for everything. variables are overrated.
Hi! You can see examples of the first Platform API shown by Casey in SDL and cocos2dx code. SDL ha…
Bob Nystrom wrote a series of articles at about some ways to structure code specifically in games…
My Quick tip would be : use mingw.
Thanks for your excellent responses I will check out those texts. What I was having some problems…
Hello I have a question about distributing C programs: What is the best way to guarantee that a co…
I think it's a great thing you are dooing. Thumbs up!
Marco —
May the variable be with you.
is a tutorial for porting Handmade Hero to Linux using the SDL library. I thought this thread mig…
Yes, __rdtsc() is available for gcc. You just need to do #include
sizeof('a') is 4 in C, but 1 in C++
The game, like the series, is also called Handmade Hero :) And yes, this is a forum for talking a…
That doesn't sound like something you should have to do. I don't use GCC anymore, but on LLVM you…
Although I'm not a spec wrangler myself, my understanding is there are definitely a number of thes…
As a sidenote, compilers like LLVM also allow you do to this - if you use an enum for the switch, …
My understanding was that the C++ Committee is still hotly debating whether or not variables are i…
I heard there will be The Variable in C++17 is it true?
Oh no no no, my friend. Javascript has variables, if you want them to be variables. You can even…
Totally tangentially, one of the features that I enjoy in D (the programming language) is "final s…
I'll be honest, I knew that this topic was going to be excellent from the title, but I didn't expe…
Very interesting article. Goes to show that you should never just assume that your mental model of…
This is another presentation by Jonathan Blow which I found quite interesting: If you want to see…
I think this is the quickest way to tell if you're using a C compiler or a C++ compiler:
Neo Ar —
For C++ the recommended books would be A Tour of C++ by Bjarne Stroustrup and Effective Modern C++…
Don't fight Windows until you know its patterns of behavior/expectations well enough to manipulate…