Skip to main content
GameDev.net gamedev.net
🔒 Locked

Compiler for OpenGL

Started by tauren12 Nov 9, 2006 at 9:28 PM 41 replies 8.2k views
Original Post
tauren12
tauren12
Hello, I am looking for a nice compiler to do some editing/creating games I will be using openGL so if anyone would be more then kind to help me that would be awesome. I found a good link http://www.gametutorials.com/gtstore/c-1-opengl-tutorials.aspx but I cant fin out what compiler they used? Thanks, Tauren
Fruny
Fruny
They most likely used either Visual C++, or GCC (try e.g. Code::Blocks, which uses MinGW)
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
tauren12
tauren12
HELL NO not going back to code::Block they make me angry They anser my questions like this

Me: So If I install it into the directory will it work this time?

Them: The directory works only if it chooses too.

WTH?!!!

So I will try GCC had problems with that one but we will solve em I guess
tauren12
tauren12
ADD: Also, I have Visual C++ how do I get it to run the openGL could someone

link a openGL tutorial that works succefully for Visual C++ to see if works?

Or Do I need to install the headers? Where can I download the headers and How

Do I install them into the program so that they work sucessfully?
doctorsixstring
doctorsixstring
The directory works only if it chooses too.

Just kidding. Have you looked at Nehe's tutorials? The first few tutorials tell you exactly how to set up an OpenGL application.

While I'm at it, I'll recommend a completely different course. Since you didn't explicitly state that you want to work with C or C++, you might want to take a look at Python game development with PyGame and PyOpenGL. It makes hard stuff easy, and easy stuff ridiculously fun.

Either way, good luck!

- Mike
tauren12
tauren12
No I wanna do c++ I found good tutorials for it I just dont know how to setup the glut files
Julian90
Julian90
Visual C++ comes with the headers and libraries but you need to add them as dependencies in the project :-). to do that go Project->Properties->Configuration Properties->Linker->Input and add openGL32.lib and glu32.lib to the Additional dependencies list. Also just incase in VC++ the headers are called "GL/gl.h" and "GL/glu.h".

Also heres a tutorial clicky

Hope that helps
tauren12
tauren12
Umm can you actually do it for me in code block ty... I decided I will use it instead

And this is a add Can u do the link for where do download those headers
tauren12
tauren12
Come on guys please explain if you guys dont help me I will have to quit
Adam Hamilton
Adam Hamilton
Tauren, do know you can click on edit post if you really need to *add* to your post?

The first step is to use a search engine. I will guarantee you that it will bring up something that you are looking for

eg. If you search for 'GLUT mingw' it will give you a link (the first one I think) to the page where you can download it. Mingw is what is used for Code Bloks and Dev C++

If you search for 'GLUT tutorial' it will give you links to tutorials on how to use and setup your environment.

SDL is another good library where there are many resources for.



tauren12
tauren12
Hello,

Ok here is what I exactly do I click on the Code:: Icon>File>New>Project>OpenGL project>Compiler GNU GCC Compiler>Finish> Then what do I do?! What do I download EXPLAIN ur anser


edit Download
Fruny
Fruny
Quote:
Original post by tauren12
HELL NO not going back to code::Block they make me angry


I can only suggest. You are free to listen or not.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
tauren12
tauren12
Ok All I want to really know is How to get The files Into the compiler I did a search didt find nothing good after you just like tell me I will leave I dont know where to go in the program it says for Microsoft devolper studio... i Know u guys want me to leave if so after u tell me how to do it I will leave Just help me plz
Fruny
Fruny
Quote:
Original post by tauren12
How to get The files Into the compiler

Which files, precisely, and what do you mean by "getting them into the compiler". It is rather unclear what you are asking for.

Quote:
I did a search didt find nothing good

What did you search for? What did you expect? What did you get?

Quote:
after you just like tell me I will leave

Go back and reread your posts. Their tone is rather demanding and does not precisely encourage us to help you. So first, calm down.

Quote:
I dont know where to go in the program it says for Microsoft devolper studio...

Where to go in the program to do what?

Quote:
i Know u guys want me to leave if so after u tell me how to do it I will leave

Where did we say that? We'd like to help, but your posts are confused. You asked a question (where to find a compiler) and rejected my suggestion in rather strong terms. What do you expect me to do next?

Quote:
Just help me plz

I'd love to, as soon as you explain exactly what you have a problem with. At this point, I don't even know if you are using Visual Studio or Code::Blocks, if you have installed them yet, if you are able to write and compile a simple "Hello World" program...
If you intend to become a programmer, you need to be able to figure out a minimum of things by yourself - creating a new project is a rather straightforward task in most IDEs.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
tauren12
tauren12
Well... I download mingW thingy And I have code Block I wanna know how to plug those in so that gl/glut.h Directory actually works
Fruny
Fruny
Quote:
Original post by tauren12
Well... I download mingW thingy And I have code Block

Did you install them and do they work?

Quote:
I wanna know how to plug those in so that gl/glut.h Directory actually works

Did you actually download a GLUT implementation (e.g. FreeGLUT)?

If everything is installed, you have two options. Either you stick GLUT into the include and library directories your compiler used (e.g. mingw/include/GL and mingw/lib), or you put them somewhere else: I have a D:/include and a D:/lib where I put any additional libraries I use (like Boost).
In that latter case, you need to tell Code::Blocks where to find them, which is easy enough if you check the menu options: Settings->compiler and debugger->directories. List the directory that contains the headers under the "compiler" tab, and the directory that contains the libraries under the "linker" tab.

Note that if you want to run your programs outside of the IDE, any dynamic library you are using must be on your path, which typically involves copying them to the directory the executable is in.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
tauren12
tauren12
Dude I am fricking retarded I dont understand that...
tauren12
tauren12
ZO MY FRICKING GOSH!!! The damn compiler actually worked ITs.... its.... itS A MIRACLE
tauren12
tauren12
When I click run it says nothing to be done cry
Fruny
Fruny
Quote:
Original post by tauren12
Dude I am fricking retarded I dont understand that...

What is it you don't understand?

Quote:
Original post by tauren12
ZO MY FRICKING GOSH!!! The damn compiler actually worked ITs.... its.... itS A MIRACLE

Do I detect sarcasm?

Quote:
Original post by tauren12
When I click run it says nothing to be done cry

Have you given it code to compile? Has it been modified since the last time you (tried to) compile it? If the code has already been compiled and not been modified since, the IDE will typically not bother recompiling it.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.