954,190 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

A quick question

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

jd_1604
Newbie Poster
22 posts since Dec 2006
Reputation Points: 10
Solved Threads: 0
 

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)

jbennet
Moderator
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,820
Solved Threads: 600
 

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.

~s.o.s~
Failure as a human
Administrator
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 733
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You