Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Rian

OpenGL OpenGL w/ Dev-C++

This topic is 5968 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I just began using OpenGL and am having problems with Dev-C++. Am I doomed to spend money on MSVC or can I get it free/cheap somewhere? Is getting the more "powerful" compiler worth it? Is there any reason why Dev-C++ isn''t working with OpenGL, or is it my own programming errors? Has a descent 3D game ever been made with Dev-C++ or is it not powerful enough?

Share this post


Link to post
Share on other sites
Advertisement
quote:
Original post by Rian
Is there any reason why Dev-C++ isn''t working with OpenGL, or is it my own programming errors?

It''s your fault. OpenGL works fine with Dev-C++ and the compiler it uses. What exactly is the issue?
quote:
Original post by Rian
Has a descent 3D game ever been made with Dev-C++ or is it not powerful enough?

The compiler behind Dev-C++ (an old version of GCC), is used to make almost anything you see in Unix environments. Look online for any 3D game for Unix; I can almost guarantee that that program will have been designed to compile in GCC. It is true that most software for Windows is made with MSVC, but you can get along fine in Dev-C++.

Share this post


Link to post
Share on other sites
I''ve worked pretty extensively with Dev-C++ and OpenGL together. If you''d reply with information about what exactly is going wrong, we might be able to help you.

Later,
ZE.

P.S. Releases 4.00 and 4.01 had some pretty severe bugs, but they were not a result of OpenGL. I expect they''ll be fixed in version 5.0, which is due out in beta any day now...If not, I just go back to MSVC Intro Ed. :-\

//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links

[if you have a link proposal, email me.]

Share this post


Link to post
Share on other sites
A great free c++ compiler I found was the Bloodshed one...

Its free, has a great IDE AND even an OpenGL template!!!

For something thats free, its esceptional quality

I forget the website though...

Share this post


Link to post
Share on other sites
Thanks guys. I didn''t expect to get a reply so soon. I love this website!

I guess I should recheck my include files and libraries. I thought I had that all set up,
but maybe something got misplaced...

Most of my problems have to do with the linker. ie, some functions don''t seem to be where
they should be. I''ll recheck everything tonight.

Share this post


Link to post
Share on other sites
quote:
Original post by Rian
Has a descent 3D game ever been made with Dev-C++ or is it not powerful enough?



As a matter of fact, Dec-C++ is only an IDE (it uses an external command line compiler). An IDE makes your life and developpment easier but isn't the "real" tool. You could make Quake3 with only notepad and a command line compiler but it would be a real pain.

EDIT : And as a side note, you would certainly have the same problem with MSVC.


[edited by - Prosper/LOADED on March 20, 2002 8:30:23 AM]

Share this post


Link to post
Share on other sites
quote:
Original post by Rian
Thanks guys. I didn''t expect to get a reply so soon. I love this website!

I guess I should recheck my include files and libraries. I thought I had that all set up,
but maybe something got misplaced...

Most of my problems have to do with the linker. ie, some functions don''t seem to be where
they should be. I''ll recheck everything tonight.




Dude, by all means, just tell us exactly what the problem is. I used Dev-C++ for over a year, and I know most of its quirks. If you still haven''t figured it out, drop a line.

Later,
ZE.

Share this post


Link to post
Share on other sites
Man, do I feel stupid. I found the problem, and, as I had thought, I didn''t have my libraries set-up right.

I kept getting errors from the linker saying gluPerspective,
CDS_FULLSCREEN, etc couldn''t be found, but after reading the help file, I realized that you had to fill out "Further object files" under project options with more than just -lopengl32.

For anyone else who made the same stupid mistake, the correct, full line should be: "-lopengl32 -lglaux -lglu32" if you include everything. I think that should do it, unless there''s more...

In my defense, I''m new to c++ after years of Pascal and am still learning all the headers and include stuff. Turbo Pascal doesn''t use a linker, as far as I know.

Anyway, thanks for the help. I''m sorry I couldn''t be more specific, but didn''t have access to my code from where I posted the question. I''ll be more specific next time.

Share this post


Link to post
Share on other sites
You fixed the CDS_FULLSCREEN bug by linking a library? Most of the time you have to explicitly define it...

#define CDS_FULLSCREEN 4

I might be wrong, but I''ve never seen another fix for it under Dev-C++ except maybe an updated windows.h

Later,
ZE.

BTW, Dev-C++ 5 is now in beta! Pick up a copy at www.bloodshed.net, but beware that the servers are slow as mess...

//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links

[if you have a link proposal, email me.]

Share this post


Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!