473,320 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How do I get GLUT to work with GCC for Win32?

What's that? I've go GCC working for Windows? Well, sort of. But I'm
not using a Unix Emulator.

The trick is to install Dev-C++, but do not use the Dev-C++ IDE unless
you feel like it.

I don't use it because I have grow so accustom to using Linux. (GCC
rox!)

I find GCC to be good because of its simplicity.

$ c++ -c file.cpp -o file.o

to compile a module (object file).

$ c++ -Wl--startgroup file1.o file2.o file3.o -Wl--endgroup -o
program.exe

to link modules into a program.

Even though Linux program don't end with .exe, I like to do that with
my programs.

These same command can be used in Windows with modification.

If you install Dev-C++ at C:\Dev-Cpp, the program c++.exe will be
located at C:\Dev-Cpp\bin\c++.exe, to which you can compile modulues by
typing:

C:\> c:\Dev-Cpp\bin\c++ -c file.cpp -o file.o

and link module by typing

C:\> c:\Dev-Cpp\bin\c++ -Wl--startgroup file1.o file2.o file3.o
-Wl--endgroup -o program.exe

Now that I understand all that gobledy-gook, I'm now interested in
configuring GLUT for GCC for Windows. GLUT is an OpenGL Utility
Toolkit. While I was able to set it up for Linux (the instructions
escape me right now), installing GLUT for GCC for Windows has been a
real pain in the butt.

So here are a few question that I have:
1) How do Install GLUT for GCC for Win32? Just GLUT, not anything
else.
2) How do I compile using GLUT for GCC for Win32? I have the codes to
make an OpenGL program using GLUT, but I want to know how they did it
for Win32?
3) How do I link using GLUT for GCC for Win32?

Jul 23 '05 #1
0 2183

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Fulko van Westrenen | last post by:
Hello, I'm very new to Python and rather unexperienced in OpenGL, and now I try to learn both at the same time. I can find my way around in Perl with Perl/Tk. What I try to do is combining Tk...
0
by: Fulko van Westrenen | last post by:
Hello, A few days ago I asked help with GLUT/Tk. This combination seems to be difficult. Is there another combination with GLUT, like GTK or Qt, or a true GLUT widget-set that I can use to make...
5
by: Steven Gutstein | last post by:
I've just managed to get PyOpenGL installed on a Windows NT machine. I've tried testing it using one of the programs supplied with the PyOpenGL download - molehill.py. On my machine, it was placed...
9
by: max(01)* | last post by:
hi there. i installed python2.3-opengl, then i tried one of those demos: ---- #!/usr/bin/python2.3 # This is statement is required by the build system to query build info if __name__ ==...
1
by: Scott Chang | last post by:
Hi All I tried to use the attached OpenGL code to draw a Star-shaped figure on my Microsoft Visual C++ .NET 2002-Windows XP Pro PC. When I did 'Build' in Debug Mode, I got an error C2065:...
5
by: Michael Kipper | last post by:
Hi, I'm having a problem moving from C to C++. In C, I have a function: void display(void) {} that I can register with OpenGL as a callback using: GLUTAPI void glutDisplayFunc( void...
1
by: Advait | last post by:
Hello everyone, I am using GCC through DevC++ & Code Block Studio IDEs. I got libraries "gl" & "glu" with these IDEs. Programs based on these two libs gl & glu are executing well. I want...
2
by: Advait | last post by:
Hello everyone, I am using GCC through DevC++ & Code Block Studio IDEs. I got libraries "gl" & "glu" with these IDEs. Programs based on these two libs gl & glu are executing well. I want to...
0
by: shortyzms | last post by:
I have been trying to write a small glut program that uses popup context menus on right clicks to draw objects. However, every time I do this, the area underneath the submenu item I clicked does not...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.