Handmade Hero Starting With OSX Platform Layer

Hey all,

I wanted to start building Handmade Hero on my Mac but there weren't any videos starting on that platform. So instead of buying a P.C. to start following along, I decided to learn how it's done on a Mac and share it as a tutorial series (Youtube videos coming soon).

https://medium.com/@theobendixson...platform-layer-day-1-9348559e9211

Happy to hear your feedback.

Edited by Ted Bendixson on Reason: Initial post
Your snippet with iostream and printf is kind of wrong. printf is in "stdio.h" (or "cstdio"), not in iostream. In iostream there is std::cout, if that is your thing.
Thanks! Changed it.
1
2
3
#include "stdio.h"
/* Should be */
#include <stdio.h>

Using < and > instead of " changes where the compiler is looking for the header. For system header (header provided by xcode) you should use < and >, for the headers of your project you should use ". Here is how it works with msvc, but I guess it works in a similar way with clang.
Again, many thanks.