Original Post
🔒 Locked
compiling with GCC?
Advertisement
C-Junkie is completely correct, but since this is NeHe''s forum, I''m guessing you want some OpenGL stuff in there too
.
Linking with GL libraries:
gcc file.c -o file -lGL -lGLU
Manually adding GL header directory to search path (the path may be different for you):
gcc file.c -o file -lGL -lGLU -I/usr/X11/include
Add "-Wall" for warnings and "-O2" (or 1 or 3, higher is better) for optimizations.
[Resist Windows XP''s Invasive Production Activation Technology!]
Linking with GL libraries:
gcc file.c -o file -lGL -lGLU
Manually adding GL header directory to search path (the path may be different for you):
gcc file.c -o file -lGL -lGLU -I/usr/X11/include
Add "-Wall" for warnings and "-O2" (or 1 or 3, higher is better) for optimizations.
[Resist Windows XP''s Invasive Production Activation Technology!]
Ah, while I was typing it is revealed that I was thinking exactly what Psycho1 was
.
[Resist Windows XP''s Invasive Production Activation Technology!]
[Resist Windows XP''s Invasive Production Activation Technology!]
Yes, then you''ll need ''-lGLUT'' in there too.
[Resist Windows XP''s Invasive Production Activation Technology!]
[Resist Windows XP''s Invasive Production Activation Technology!]
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement