Handmade Network»Forums
Ted Bendixson
27 posts
I make apps and games for Mac OS and iOS. Avid terrain park snowboarder. Park City, UT.
Handmade Hero Starting With OSX Platform Layer
Edited by Ted Bendixson on Reason: Initial post
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.
Mārtiņš Možeiko
2198 posts / 1 project
Handmade Hero Starting With OSX Platform Layer
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.
Ted Bendixson
27 posts
I make apps and games for Mac OS and iOS. Avid terrain park snowboarder. Park City, UT.
Handmade Hero Starting With OSX Platform Layer
Thanks! Changed it.
Simon Anciaux
1050 posts
Handmade Hero Starting With OSX Platform Layer
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.
Ted Bendixson
27 posts
I make apps and games for Mac OS and iOS. Avid terrain park snowboarder. Park City, UT.
Handmade Hero Starting With OSX Platform Layer
Again, many thanks.