itfrombit / osx_handmade

OS X port of Handmade Hero
152 stars 18 forks source link

Question about compiling handmade on OSX #1

Closed joekarl closed 9 years ago

joekarl commented 9 years ago

I'm in the midst of doing a swift version of the platform layer and am running into some issues with compiling the handmade source. In particular I'm getting errors finding the following types:

debug_platform_free_file_memory
debug_platform_read_entire_file
debug_platform_write_entire_file
debug_read_file_result

Did you run into this?

joekarl commented 9 years ago

nvm, figured it out. Needed to define HANDMADE_INTERNAL=1 as a preprocessor directive.

itfrombit commented 9 years ago

Glad you got it sorted out. I ran into that too when I started the port. You might also want to define HANDMADE_SLOW if you want Casey's Assert() macro to be active.

Good luck with the Swift version. I'll be interested to see it in action.

joekarl commented 9 years ago

Heh, yeah I'm learning swift as I go so should be interesting lol. Wish the code was actually C not C++ though, oh well ¯(ツ)

itfrombit commented 9 years ago

Well, look on the bright side - when you have it up and running alongside C and C++ code, you'll know even that much more about Swift.

If you're looking at my OS X version and have any questions, let me know. I'm happy to help, or at least explain what I did.