473,796 Members | 2,595 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2206

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

Similar topics

1
1995
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 and GLUT. Based on the dots.py code (from the examples) I wrote a working application that reacts fine to my keyboard. Now I would like to add some Tk widgets, like 'Quit' in the texturesurf2.py example. The problem is that texturesurf2.py takes a
0
1265
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 buttons,sliders,dials,etc? If there is such a combination, does it come with example code (I learn through examples)? Thanks,
5
5511
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 in the python23\Lib\site-packages\OpenGL\Demo\GLUT\examples directory. When I'm in Windows Explorer and double click on the icon for this program, it runs fine. However, when I try to 'execfile' molehill from the Python command line, I have...
9
4764
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__ == '__build__':
1
5617
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: 'RenderScence': undeclared identifier. Please help and tell me (1) what it is wrong with my coding in this program and how to correct the problem, and (2) whether the functions/commands of the OpenGL v1.1 (existing in Microsoft Visual C++ .NET 2002) and GLUT...
5
14296
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 (GLUTCALLBACK *func)(void) )
1
1632
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 use "glut" library. So I downloaded glut package and copied it to respective folders i.e. to
2
1687
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 use "glut" library. So I downloaded glut package and copied it to respective folders i.e. to include\GL\glut.h
0
1730
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 refresh. Here's a helpful test program I've found from Mindf**k's glut tutorial... #include <iostream> #include <GL/glut.h> #include <cstdlib> using namespace std; void createMenu(void);
0
9527
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10223
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10172
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9050
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7546
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5441
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4115
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.