PDA

View Full Version : how to compile, where can i get a compiler, and im an idiot



xixsephirothxix
02-07-2001, 04:28 PM
i need to know how to compile and where to get one and in simpletons terms what a compiler is, i understand the basic but i need to know how to compile a program so that i can run my sample program

mango
02-07-2001, 05:54 PM
I think the easiest free compiler to start with is Borland. Here is a page with some information and links: http://sites.netscape.net/ptrpck/borland.htm

Remember that OpenGL is something pretty advanced so you must understand the basic stuff first.

MrShoe
02-07-2001, 07:23 PM
The BEST free C++ compiler out there which also comes with a IDE is Dev-CPP, get it at www.bloodshedsoftware.com (http://www.bloodshedsoftware.com) (someone correct me if i got the address wrong)

hordac
02-08-2001, 06:29 AM
Originally posted by MrShoe:
The BEST free C++ compiler out there which also comes with a IDE is Dev-CPP, get it at www.bloodshedsoftware.com (http://www.bloodshedsoftware.com) (someone correct me if i got the address wrong)
www.bloodshed.net (http://www.bloodshed.net)
Thats the real site... http://www.opengl.org/discussion_boards/ubb/smile.gif

xixsephirothxix
02-08-2001, 09:33 AM
thanks for the help but i think i need some explination also

Slo
02-08-2001, 12:07 PM
A compiler is a piece of software that parses a string (or in this case a program) and produces equivelent machine code. Basically it converts code into tokens, checks the syntax and semantics and then produces byte code in the form of an *.exe.

[This message has been edited by Slo (edited 02-08-2001).]

Deiussum
02-08-2001, 01:19 PM
I think you should probably look into getting a book on programming. Look at your local bookstore for books on C/C++, or check Amazon.com. (Bookstore is better because you can look through the book to see if the writing style is something you could learn from.) We can teach you what a compiler is, and the basics of how to use it, but when it comes to writing code, you'll need to put in some effort of your own.

citizen.x
02-08-2001, 01:38 PM
Personally speaking, I'd go for Borland's command line compiler, and as regards using an IDE, download a copy of Programmers File Editor: http://www.lancs.ac.uk/people/cpaap/pfe

xixsephirothxix
02-13-2001, 12:12 PM
thanks for the help, maybe i should just start with c or c++ instead of openGL

Elixer
02-13-2001, 12:29 PM
Eh? OpenGL is a API, not a compiler.

Deiussum
02-13-2001, 12:58 PM
Yeah, you should definitely start with c/c++, or even some other language if you prefer. As Elixer says, OpenGL is an API. That basically means that it is a set of functions to be used in a programming language (like c/c++). You NEED an understanding of SOME programming language, before you can use OpenGL.

Dire_Avenger
02-14-2001, 07:30 AM
Try learning Pascal, It's _THE_ easiest programming language on the planet http://www.opengl.org/discussion_boards/ubb/smile.gif(except -gag- VB...), & the syntax is very similar to C/C++, too. Try getting a copy of Delphi, they show u pevery onw & then on coverdisks

Elixer
02-14-2001, 09:25 AM
Pascal? ARGH! ICK!! RUN!!!!

**shudders**

He said the dreaded P word!


http://www.opengl.org/discussion_boards/ubb/wink.gif

Humus
02-14-2001, 12:07 PM
Pascal rox!!! http://www.opengl.org/discussion_boards/ubb/biggrin.gif

Delphi is definitely a good option for a language to start with. Very easy to get a GUI running in notime.

Dire_Avenger
02-16-2001, 06:50 AM
Not just Pascal... OBJECT Pascal http://www.opengl.org/discussion_boards/ubb/smile.gif
I agree, Pascal isn't the most advanced language in the world, but it's good for a lot of things.
Borland's version adds more functionality to it, so unless you're about to start OS coding or low-level device drivers, it's usable http://www.opengl.org/discussion_boards/ubb/smile.gif plus, ever tried to write spaghetti code in it? Dosen't work very well...

Validus
02-17-2001, 09:39 AM
Ok, I am not going to join in on a lanaguge war http://www.opengl.org/discussion_boards/ubb/smile.gif be it C/C++ or Pascal you start with I would defently sugest you do not start withe a RAD type tool(eg. Delphi, C++ Bulder or VB) it is very inportant that you first learn basic programing theroy. Algorithm drsgine and basic data structs, even if you are going to only be uesing the WIndows API and OpenGL when you do real programing knowing how a basic banalsed tree is constructed and how to do recursive algorithms will help you with latter. It is much harrder (not imposibule) to learn that type of basic theroy with a RAD tool as your primary learing envirement.
Good Luck

mango
02-17-2001, 04:25 PM
I disagre, it is not harder to learn basic theory with a RAD tool.

Validus
02-18-2001, 02:15 PM
I guess for some people it may be as easy to learn with a RAD tool but it is just one more layer to learn and it takes away some of your attention away from the core stuff. I do not think there is a Universty out there that teaches the core Computer Sci class with RAD toos( I know that some is now going to find one to prove me wron http://www.opengl.org/discussion_boards/ubb/smile.gif but Th know the Cal State system dose not and the Universty of Manatoba dose not, and I am pritty sure the UC system does not).

2600 Freedom
02-18-2001, 10:19 PM
It is was easier for me to learn from the command line, than from a GUI (RAD), because there was not so much media coming at you/that you have to be concerned with. http://www.opengl.org/discussion_boards/ubb/wink.gif

Gavin
02-20-2001, 03:43 AM
Start with command line. It may not be easier but as has been mentioned you will learn more about what is actually going on. If you are thinking of using c (good idea) then you may want to use unix/linux environments as they are probably the best for coding in c. A good set of notes for c coding (very complete) try http://www.cs.cf.ac.uk/Dave/C_index.html
It is aimed at UNIX os but don't worry as it will still work on your environment, just ignore the UNIX bits.

gav

Starnut coder
02-20-2001, 04:25 AM
I suggest you just do the very basic c++ dos programming. Its easier to do c++ immediatly then to go over pascal. And c++ is much much more useful. I suggest you go to www.cprogramming.com (http://www.cprogramming.com)
there you can get the very basics.
opengl is a later stage.
Start with c++dos then visualc++windows,
then directdraw the opengl this is my suggestion