Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
OpenGL / C++ compiler
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Nethfel" data-source="post: 1232822" data-attributes="member: 89124"><p>Worked just fine in XCode with only a couple of VERY minor changes...</p><p></p><p>1: #include<GL/glut.h> was changed to: #include<glut/glut.h></p><p>2: Add frameworks OpenGL and GLUT to the build phases</p><p>3: changed void main (int argc, char **argv) to int main (int argc, char **argv) and made it return 0 at the end of the main function (it's a stickler of main returning an int value and not void)</p><p></p><p>After that I compiled and ran your code and got the image I've attached to this post...</p><p></p><p>[ATTACH=full]14993[/ATTACH]</p></blockquote><p></p>
[QUOTE="Nethfel, post: 1232822, member: 89124"] Worked just fine in XCode with only a couple of VERY minor changes... 1: #include<GL/glut.h> was changed to: #include<glut/glut.h> 2: Add frameworks OpenGL and GLUT to the build phases 3: changed void main (int argc, char **argv) to int main (int argc, char **argv) and made it return 0 at the end of the main function (it's a stickler of main returning an int value and not void) After that I compiled and ran your code and got the image I've attached to this post... [ATTACH=full]14993[/ATTACH] [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
OpenGL / C++ compiler
Top