A quick question

Reply

Join Date: Dec 2006
Posts: 22
Reputation: jd_1604 is an unknown quantity at this point 
Solved Threads: 0
jd_1604 jd_1604 is offline Offline
Newbie Poster

A quick question

 
0
  #1
Dec 5th, 2006
Hello again. After my past few weeks getting annoyed with compiling issues, I seem to have started getting somewhere.(Visual C++)
I have a quick question. Since visiting numerous sites and experimenting with various sample and source codes I am finding one thing. One block of code from a certain site will work, one from another won't. Does this mean that OpenGL code needs to be radically modified depending on the compiler being used. Is it maybe worth my while installing linux instead of the unstable MSwindowsXP. Can anyone suggest a competent compiler?
Thanx Jason
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,134
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 529
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: A quick question

 
0
  #2
Dec 5th, 2006
generally most compilers will be compatible with eachother

The problem is with microsoft visual C++ as it uses slightly nonstandard syntax and libaries so needs a bit of tweaking

Personally, my fave windows compiler/ide is Bloodshed Dev C++ (free with lots of tutorials and the most recent version comes with an opengl example)
Last edited by jbennet; Dec 5th, 2006 at 7:06 pm.
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,600
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 462
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: A quick question

 
0
  #3
Dec 5th, 2006
I dont think the OpenGL code depends on the compiler but on OS --- yes.

If you need to run the same code on different OS's you can head over to NeHe where he has provided code snippets for different OS's and different compiler (OpenWatcom etc. )

IMHO, you are better off writing code which is portable which won't be difficult since OpenGL itself if platform independent.

If any more doubts repost.
I don't accept change; I don't deserve to live.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Game Development Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC