Fatal Error LNK 1104: Cannont Open File 'glut32.lib'

Hi all,
I have Visual C++.NET 2003 in my Windows XP Pro PC. I executed the attached 
OpenGL program "POINTSZ" and I got a fatal error  LNK 1104: Cannont Open 
File 'glut32.lib'.  Please help and advise me
 how to solve this problem.
Thanks in advance,
Scott Chang
// Pointsz.c

// OpenGL SuperBible, Chapter 4

// Demonstrates OpenGL Primative GL_POINTS with point size

// Program by Richard S. Wright Jr.

#include "../../Common/OpenGLSB.h" // System and OpenGL Stuff

#include <math.h>

// Define a constant for the value of PI

#define GL_PI 3.1415f

// Rotation amounts

static GLfloat xRot = 0.0f;

static GLfloat yRot = 0.0f;

// Called to draw scene

void RenderScene(void)


GLfloat x,y,z,angle; // Storeage for coordinates and angles

GLfloat sizes[2]; // Store supported point size range

GLfloat step; // Store supported point size increments

GLfloat curSize; // Store current size

// Clear the window with current clearing color


// Save matrix state and do the rotation


glRotatef(xRot, 1.0f, 0.0f, 0.0f);

glRotatef(yRot, 0.0f, 1.0f, 0.0f);

// Get supported point size range and step size



// Set the initial point size

curSize = sizes[0];

// Set beginning z coordinate

z = -50.0f;

// Loop around in a circle three times

for(angle = 0.0f; angle <= (2.0f*3.1415f)*3.0f; angle += 0.1f)


// Calculate x and y values on the circle

x = 50.0f*sin(angle);

y = 50.0f*cos(angle);

// Specify the point size before the primative is specified


// Draw the point


glVertex3f(x, y, z);


// Bump up the z value and the point size

z += 0.5f;

curSize += step;


// Restore matrix state


// Flush drawing commands



// This function does any needed initialization on the rendering

// context.

void SetupRC()


// Black background

glClearColor(0.0f, 0.0f, 0.0f, 1.0f );

// Set drawing color to green

glColor3f(0.0f, 1.0f, 0.0f);


void SpecialKeys(int key, int x, int y)


if(key == GLUT_KEY_UP)

xRot-= 5.0f;

if(key == GLUT_KEY_DOWN)

xRot += 5.0f;

if(key == GLUT_KEY_LEFT)

yRot -= 5.0f;

if(key == GLUT_KEY_RIGHT)

yRot += 5.0f;

if(key > 356.0f)

xRot = 0.0f;

if(key < -1.0f)

xRot = 355.0f;

if(key > 356.0f)

yRot = 0.0f;

if(key < -1.0f)

yRot = 355.0f;

// Refresh the Window



void ChangeSize(int w, int h)


GLfloat nRange = 100.0f;

// Prevent a divide by zero

if(h == 0)

h = 1;

// Set Viewport to window dimensions

glViewport(0, 0, w, h);

// Reset projection matrix stack



// Establish clipping volume (left, right, bottom, top, near, far)

if (w <= h)

glOrtho (-nRange, nRange, -nRange*h/w, nRange*h/w, -nRange, nRange);


glOrtho (-nRange*w/h, nRange*w/h, -nRange, nRange, -nRange, nRange);

// Reset Model view matrix stack




int main(int argc, char* argv[])


glutInit(&argc, argv);


glutCreateWindow("Points Size Example");






return 0;



8/19/2005 7:25:39 PM
comp.graphics.api.opengl 7069 articles. 1 followers. Post Follow

2 Replies

Similar Articles

[PageSpeed] 55
Scott Chang wrote:

> Hi all,
> I have Visual C++.NET 2003 in my Windows XP Pro PC. I executed the attached 
> OpenGL program "POINTSZ" and I got a fatal error  LNK 1104: Cannont Open 
> File 'glut32.lib'.  Please help and advise me
>  how to solve this problem.
> Thanks in advance,
> Scott Chang
<snip long code sample that does not help at all!>

Boy, there are a lot of new OpenGL programmers lately. This is GOOD, but it is a 
slight pain...

Anyway, to the problem: This is a compiler problem, and it is telling you 
EXACTLY what the problem is: it cannot find the glut32.lib library. Did you 
download and install it? If you did install it, then you need to tell your 
compiler WHERE it can find it. To make things simple, I copied the GLUT headers 
and library directly to my MSVC include and library folders, and the glut32.dll 
file to my Windows system32 folder.

Phil Frisbie, Jr.
Hawk Software
8/19/2005 9:38:54 PM
Scott Chang wrote:
> Hi all,
> I have Visual C++.NET 2003 in my Windows XP Pro PC. I executed the attached 
> OpenGL program "POINTSZ" and I got a fatal error  LNK 1104: Cannont Open 
> File 'glut32.lib'.  Please help and advise me

You might need to install GLUT (it isn't really part
of OpenGL).


/ O O \
\_____/  FTB.    For email, remove my socks.

In science it often happens that scientists say, 'You know
that's a really good argument; my position is mistaken,'
and then they actually change their minds and you never
hear that old view from them again.  They really do it.
It doesn't happen as often as it should, because scientists
are human and change is sometimes painful.  But it happens
every day.  I cannot recall the last time something like
that happened in politics or religion.

- Carl Sagan, 1987 CSICOP keynote address

8/20/2005 11:19:55 AM
Similar Artilces:

Error message for rayleighchan
Hi all; I've been using my own Rayleigh fading simulator for a long time. Thought I would give rayleighchan a try; looks simple enough. However I'm getting this error message when I try this in the command window. The command is copied from MATLAB's help example. Any help would be appreciated. I'm using version R2008b. c1 = rayleighchan(1e-5,130) ??? Error using ==> plus Matrix dimensions must agree. Error in ==> firls at 169 b = b + (F(s+1)*(m*F(s+1)+b1)*sinc(2*k*F(s+1)) ... Error in ==> intfilt at 74 h=firls(n-1,F*2,M); Error in ==> ch...

Error in error code database.vi
Hi.... I am working on a programm which was developed in Version 6.1. I am currently working with Version 7.1 and I get the errors in the following VI; -General Error Handler -Error Code Database General Error Handler CORE I've been trying to solve my problem with the following posts; http://digital.ni.com/public.nsf/websearch/A87185BF42937DE986256CB0006CA387= ?OpenDocument http://groups.google.de/group/comp.lang.labview/browse_thread/thread/fb2c52= fd4f089517/75d7b00ac66509fb?q=3Derror+code+database&rnum=3D1#75d7b00ac66509= fb It did work the first time after Reinstalling Version ...

Updating multiple Records
Hi All, I am having the hardest time getting a multiple record update form to work. I found a great tutorial at http://www.phpeasystep.com/mysql/10.html, and, from what i can tell, have followed all the steps/code correctly. My form is based on a dynamic table, and all i want to do is update changes to two fields for each record with one submit of the form. Whenever i submit the form i get the error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order='5', WHERE news_id='8'' at l...

fatal error while compling
Hi all, When I compile my code , I keep getting this error message Anyone seen this before ? How can I fix the error I am using Vxwork 2.02 Thanks! Ming ***************************************************************** ccppc: Internal compiler error: program cc1 got fatal signal 5 make: *** [Hello_Mgr.o] Error 0x1 dr. Watson for windows nt an application error has occurred and an application error log is being generated cc1.exe exception :access violation (0xc0000005), address: 0x0051d13c ********************************************************************** I am n...

HowTo launch email client with file attached
I am using Visual Studio 6.0. I would like to use ShellExecute{} or any method to launch the registered email client and include a specific file as an attachment to that email. How do I NOT include the email address but DO include a file for attachment? I have a feeling that this cannot be done with ShellExecute(). Is there any way to do it? Thanks a lot, Robert ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups ----= East and West-Coast Server Farms ...

button to load files from a window
I am trying to make a button to load a file but that allows you to use a window to browse through the directory tree ( like a C# winform or when the window that pops up when go File->Open in the Mathematica front end ) and click on a file. So, I suppose the button should contain the command "ToFileName[]" as the command to load the file. However, is there a command for a browser window or is there a way to construct one =3F Peter --------------------------------------------------------------------------- --- NOTICE: Protiviti is a leading international...

Why is this line an error
I am getting an "Incorrect type of actual parameter" error for this line: WHILE(WINUSER.SetTimer (hwnd, ID_TIMER, 1000, NIL)=0) DO I think the 4th param is declared as a procedure param. How do I achieve the same effect as passing it a NIL pointer? Should I declare an empty proc for this purpose? (For those who don't know, I'm using SBM2.) Thanks Robert Solomon wrote: > I am getting an "Incorrect type of actual parameter" error for this > line: > > WHILE(WINUSER.SetTimer (hwnd, ID_TIMER, 1000, NIL)=0) DO > > I thi...

Input/Output Error when deleting files.
I am trying to download the Debian CDs and DVDs with jigdo and it makes a temp dir. It was interrupted and the files are messed up and now I want to start over but when I try to delete the files it says when trying to delete one file, input/output error. Even root cannot delete it. Is something weird going on? Why would it not delete? Someone forceably turned off my PC but I had that happen a lot and never got this error beforoe. Any ideas? RedPenguin <ZeroOneTwoThree@gmail.com> did eloquently scribble: > > > I am trying to download the Debian CDs and DVDs with jigdo and it ...

Catching SMTP Errors
Hi all, I would like to know from someone the coding mechanism to read an e-mail in my account and distinguish the bounced mail from the others. I would also like to know the possible ways of catching SMTP errors in the bounced mails and displaying it to the users to let them know the reason why the mail bounces back. suggestions will be most appreciated.anyone please... thx & regards ...

10,000 stores to open at midnight for Halo 4
"10,000 stores open at midnight for 'Halo 4' Microsoft Halo and Cortana return in "Halo 4" launching at midnight tonight. It's been five years since the launch of "Halo 3" and the last time we saw the famed alien-fighting duo Master Chief and Cortana in action. And now that "Halo 4" is arriving, it's safe to say that their legions of fans are very excited to see them once again. With that in mind, Microsoft has announced that, when "Halo 4" officially launches Tuesday, more than 10,000 stores in more than 40 c...

make: Fatal error: Command failed for target `test_dynamic' #2
Hello, I have trouble installing Template module using. Below is the installation logs. Could someone give me some clue what went wrong and how to fix it? Some background info: OS: Solaris 8 Perl: v5.8.3 (From SunFreeware) DBI: 1.4.7 (from CPAN) DBD: 2.1028 (from CPAN) MySQL: 4.0.21 (From SunFreeware) GCC: 3.4.2 (From SunFreeware) Autoconf: 2.59 (From SunFreeware) Automake: 1.9 (From SunFreeware) Thanks in advance! ================================================================== # perl -MCPAN -e 'install "Template"' CPAN: Storable loaded ok Going to read /.cpan/Met...

Open a different Word doc for each record?
here is what i want to do: i have a database that has records of properties i list to sell and then eventually sell. I have a Word document with pictures embedded into it for each property. What i want to do is be able to, within the input form i've created, click a button and have the Word document for that property open up. Each record is different (probably close to 1100 records so far) and each has its own Word document. How would i program the button? Also, i read another topic in this group and he said to create another table with a link to the main table (via the key "acco...

Link error #3
Error 11 error LNK2005: ___@@_PchSym_@00@UnbwlxfnvmgUerhfzoLhgfwrlLCAAFUkilqvxghUerhfzowruuUerhfzowruuUivovzhvUoxhOlyq@ already defined in LCS.obj myPanel.obj Error 12 error LNK2005: ___@@_PchSym_@00@UnbwlxfnvmgUerhfzoLhgfwrlLCAAFUkilqvxghUerhfzowruuUerhfzowruuUivovzhvUoxhOlyq@ already defined in LCS.obj myTextCtrl.obj Error 13 error LNK2005: ___@@_PchSym_@00@UnbwlxfnvmgUerhfzoLhgfwrlLCAAFUkilqvxghUerhfzowruuUerhfzowruuUivovzhvUoxhOlyq@ already defined in LCS.obj VisualDiff.obj Error 14 fatal error LNK1169: one or more multiply defined symbols found d:\abc.exe 1 well... i ...

How much VISA resources can be opened simultaneously?
How much VISA resources can be opened simultaneously? Hi Alexander, I've never had any problem when opening VISA resources. I'm developping a software that involves GPIB instruments and I've tested it with up to 15 different instruments connected on two different buses and I didn't have any problem so far. (Each GPIB address needs its proper VISA resource). Hope this helps ! Julien Are you having a problem, or is this a theoretical question? There is a limit but it is adjustable. By default you should be able to open up to about 250 sessions, but your mileage may vary grea...

Rails Day Registration is Now Open!
If you want your chance at thousands of dollars of prizes for one day's work with Rails, please register soon: http://railsday.com/groups There is only one week before the competition begins so form your groups and good luck! How many members can a group have? - Anywhere from 1 to 3 How many groups can I be in? - Anywhere from 0 to 3 How do I get an invitation? - Ask someone who is already part of a group Do I need an invitation? - No, you can form your own group. Lucas Carlson http://tech.rufy.com/ ...

unix: [ID 796976 kern.notice] System booting after fatal error FATAL
Hi all can any one help me for the following error The problematic system has rebooted itself 2 times within two days.following error its showing in /var/adm/messages after reboot unix: [ID 796976 kern.notice] System booting after fatal error FATAL Regards Rajesh Rajesh P S <rajeshps_rajeshps@yahoo.com> wrote: > can any one help me for the following error > > The problematic system has rebooted itself 2 times within two > days.following error its showing in /var/adm/messages after reboot > > unix: [ID 796976 kern.notice] System booting after fatal error FATAL ...

Displaying all files with *.sas extension in a library
Does anybody know a fast way to display all of the files with a certain extension in a library (*.sas) . Eventually I'll loop thru these files looking for a particular string. =20 Thanks, =20 Igor Kurbeko Clinical Programmer Analyst 678 336 4328 ikurbeko@atherogenics.com =20 A waygoer will overcome the way =20 =20 Igor Here is a solution that may fit your needs. Nat Wooding dm 'log;clear;output;clear;pgm;'; ** SearchText ** Nat Wooding ** Dominion Virginia Power ** March, 2003 ** ** this code lists the statements of any files in a given path that have the extension...

How are multiple Java files compiled together?
I am new to Java. Here are two files. VolcanoApplication.java class VolcanoApplication { public static void main(String[] arguments) { VolcanoRobot dante = new VolcanoRobot(); dante.status = "exploring"; dante.speed = 2; dante.temperature = 510; dante.showAttributes(); System.out.println("Increasing speed to 3."); dante.speed = 3; dante.showAttributes(); System.out.println("Changing temperature to 670"); dante.temperature = 670; dante.showAttributes(); System.out.println("Checking the temperature."); da...

Errors sending Blob to DB #2
This is a multi-part message in MIME format. ------=_NextPart_000_0321_01C36DA8.385B32A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I am using Delphi7 and PostgeSQL 7.3 My DB table is as such=20 Create Table files ( emalid varchar(80), memocolumn text, savedfile OID ); I cannot post Blobs to the DB that are larger than a typical icon. If the B= lob is small, it goes through just fine. When I try to send a larger object= to the DB, I get a Postgres error:=20 SQL Error: pqReadData() - read() failed: errno=3D0...

Re: SPSS available to convert to export file #10
Myra, Yes it is always working with the .por file 1 libname a spss "d:\ined\ffs\can\can.por"; NOTE: Libref A was successfully assigned as follows: Engine: SPSS Physical Name: d:\ined\ffs\can\can.por 2 data can; 3 set a._first1_; 4 run; NOTE: There were 7909 observations read from the data set A._FIRST_. NOTE: The data set WORK.CAN has 7909 observations and 1969 variables. NOTE: DATA statement used (Total process time): real time 8.26 seconds cpu time 2.51 seconds and under 9.1.3 sp4 linux are proc export and import ...

How to set Time_pref to Absolute in *lvm files (Write to measurement File)
Hello, &nbsp; I'm using Labview to get Agilent 4156C data traces and writing this data to a measurement file. I need save data with absolute time, but i don't know how can i do to change "Time_pref Relative" to "Time_prev Asolute" in *.lvm files. What can i do in order to obtain the absolute time colum? &nbsp; Headers' files are: &nbsp; LabVIEW Measurement&nbsp;Writer_Version&nbsp;0.92Reader_Version&nbsp;1Separator&nbsp;TabMulti_Headings&nbsp;YesX_Columns&nbsp;MultiTime_Pref&nbsp;RelativeOperator&nbsp;dclopezDate&n...

Tex Error
[AX H1 H2] = plotyy(indata1(:,1),indata1(:,2),indata1(:,1),indata1(:,3),'plot') set(get(AX(1),'Ylabel'),'String','Power Flow (MW)','Color','b') set(get(AX(2),'Ylabel'),'String','X_{csc} (\OMEGA)','Color','m') % set(H1,'LineStyle','--') % set(H2,'LineStyle','.') set(H1,'Color','b') set(H2,'Color','m') I get TEX error in the above script. X_{csc} (\OMEGA) is not executed properly. How do I overcome this? -- Posted via Mailgate.ORG Server - ht...

i Matlab 2009bnstall error
matlab2009b&#23433;&#35013;&#21040;10%&#30340;&#26102;&#20505;&#20986;&#29616;&#38169;&#35823;&#65292;&#25552;&#31034;incomplete literal/lenthtree &#38468;&#20214;&#20013;mathworks_Administrator.log&#65292;&#35831;&#24110;&#24537;&#20998;&#26512; (&#21313;&#20108;&#26376; 16, 2009 20:37:18)THE INSTALLER IS STARTING UP. (&#21313;&#20108;&#26376; 16, 2009 20:37:18)################################################################## (&#21313;&#20108;&#26376; 16, 2009 20:37:...

error generating HMAC-SHA256 TSIG keys
I've been wondering for some time now why this happens: $ dnssec-keygen -a hmac-sha256 -b 256 -n host some-key dnssec-keygen: failed to write key some-key/163/38039: private key is invalid I haven't been able to get the .private file for any key type except HMAC-MD5 and HMAC-SHA1. Is there a work-around? Chris Buxton Professional Services Men & Mice ...

[News] Preparation for Open Source Development Models
You Need a Corporate Open Source Policy ,----[ Quote ] | Decisions about whether or not to incorporate open source into | their operations involve complex issues that go beyond the technology. | With over two dozen approved open source licenses, compliance can be | tricky. Requirements are different for code used internally and code | distributed to external users. Code contributed to open source projects | by employees could have licensing problems, or may not be approved for | release. Compliance can be difficult to control wherever development | is outsourced. The budgetary impact should a...