I need Help getting started
HI,
I am trying to learn OpenGL and I an starting to understand the concepts but I do not know how to compile the programs. I just started working on an SGI Onyx3400 and it has a IRIX 6.5 operating system. This may sound really stupid but doesn''t the Silicon Graphics machines work under X windows? I don''t know where to type in the programs, maybe under the Unix shell?
HELP ME PLEASE.
I AM REALLY NOT THAT STUPID.
I JUST NEED A KICK START.
Thanks,
laura
laura stephens
Fire up a shell, and check if one of the following programs are available : nedit, pico, emacs, vi. All these are text editors (and more...) which will let you type programs.
vi is probably available, but (like emacs), but you''ll need to learn to use it... it is powerful though.
pico is available if pine (mail client) is installed, which it may, or not, you can still get it on the University of Washington site. It is trivial to use but has very little functionality.
Then use cc (for C) or CC (for C++) to compile (consult the man pages), unless gcc is installed, of course
vi is probably available, but (like emacs), but you''ll need to learn to use it... it is powerful though.
pico is available if pine (mail client) is installed, which it may, or not, you can still get it on the University of Washington site. It is trivial to use but has very little functionality.
Then use cc (for C) or CC (for C++) to compile (consult the man pages), unless gcc is installed, of course
"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
OK,
So if I am writing a c++ program to compile it I would do this:
CC filename
Will that also let you view the picture. Or is there a separate command for that?
Thanks,
Laura
Edited by - laura_steph1 on January 14, 2002 11:49:49 AM
So if I am writing a c++ program to compile it I would do this:
CC filename
Will that also let you view the picture. Or is there a separate command for that?
Thanks,
Laura
Edited by - laura_steph1 on January 14, 2002 11:49:49 AM
laura stephens
* To compile & link a single file, output is ''a.out''
CC filename
* To compile & link a single file, output is ''output''
CC filename -o output
* To compile (not link) a file, output is ''filename.o''
CC -c filename
* To link together several .o files
CC file1.o file2.o file3.o -o output
(Check the man page for more)
To run your program (and thus see the picture & so on), type the name of the file the compiler has output after the link step (i.e ''a.out'' or the name you specified).
CC filename
* To compile & link a single file, output is ''output''
CC filename -o output
* To compile (not link) a file, output is ''filename.o''
CC -c filename
* To link together several .o files
CC file1.o file2.o file3.o -o output
(Check the man page for more)
To run your program (and thus see the picture & so on), type the name of the file the compiler has output after the link step (i.e ''a.out'' or the name you specified).
"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
Hey,
Unix is tough to get into graphics programming on
If you''re doing straight C though, it rocks.
Most unix''s come with cc or gcc.
-Gelf
Unix is tough to get into graphics programming on
If you''re doing straight C though, it rocks.
Most unix''s come with cc or gcc.
-Gelf
~~~~~~~~~~~~~~~~~~~~~~~~~~~AIM: GelfTheElf
Thanks for your help.
I have one more question. I have gotten my program to compile but there seems to be many linking errors. It seems that it cannot identify #include <GL/glut.h>. Do the SGI computers not have this header? Or I thought I read that the Silicon Graphics computers run off X windows. Can you not use GLUT with X windows?
Thanks again for your help.
Laura
I have one more question. I have gotten my program to compile but there seems to be many linking errors. It seems that it cannot identify #include <GL/glut.h>. Do the SGI computers not have this header? Or I thought I read that the Silicon Graphics computers run off X windows. Can you not use GLUT with X windows?
Thanks again for your help.
Laura
laura stephens
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement