![]() If you can't compile, if it can't find the header files, you'll need to help it find the header files. I just discovered it so I'm not a master yet but look at this link and go to the example, make sure to follow the comments at the top for how to compile with the X11 library (you can ignore the -Wall and -O commands as long as you have the -lX11). I googled "BSD X Window Programming" and stumbled my way into finally getting a window open in pure C. Where on page 17 the phrase ".X Windowing System developed at MIT" hit me and I remembered how I couldn't open up a window and how pissed I was about that, and I thought maybe this was finally the solution! I was reading up on the operating system the Mac is built on - Berkley Software Distribution. I remember seeing this question about a year ago, back when I so desperately wished I could open up a d*** window, googling for days and only finding the type of answers you see above this post. You can actually add menu using NSMenu id applicationMenuBar = ![]() Typedef enum NSApplicationActivationPolicy ' | gcc -fobjc-arc -framework Cocoa -x objective-c -o MicroApp. ![]() $ clang minimal.c -framework Cocoa -o minimal.app Minimal Pure C code to create a window in Cocoa I did a translation of the accepted answer to Pure C: // based on ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |