PDA

View Full Version : link error



Savalia
08-25-2009, 07:38 AM
If anyone could shed some insight, it would be a great help. I was going through some tutorials on NeHe's site. I know the code is a bit dated but figured I wouldn't have a problem. I'm using VC++ 2008 Express Ed and I get the following message in the output window :

------ Rebuild All started: Project: tutorial01, Configuration: Debug Win32 ------
Deleting intermediate and output files for project 'tutorial01', configuration 'Debug|Win32'
Compiling...
StdAfx.cpp
Compiling...
tutorial01.cpp
Compiling manifest to resources...
Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
Copyright (C) Microsoft Corporation. All rights reserved.
Linking...
LINK : fatal error LNK1104: cannot open file 'GLaux.lib'
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 9.00.21022
Copyright (C) Microsoft Corporation. All rights reserved.
Build log was saved at "file://g:\OpenGL Tutorials\NeHe tuts\tutorial01\Debug\BuildLog.htm"
tutorial01 - 1 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

is there a workaround for glaux.lib?

thanks

overlay
08-25-2009, 09:21 AM
Just read the tutorial carefully, at the beginning:
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=01

"NOTE #2: When the first tutorials were written, GLAUX was the way to go. Over time GLAUX lost support. Many of the tutorials on this site still use the old GLAUX code. If your compiler does not support GLAUX or you would rather not use it, download the GLAUX REPLACEMENT CODE from the main page (left menu)."

Savalia
08-25-2009, 12:06 PM
Ok, I went back to NeHe's site, found the glaux replacement zip, downloaded it(twice to make sure I didn't have a partial copy from the download) re ran the proj, the replacement file is incomplete. I get the following error:
------ Build started: Project: tutorial01, Configuration: Debug Win32 ------
Compiling...
tutorial01.cpp
glAux.cpp
g:\opengl tutorials\nehe_glaux_replacement\glaux replacement\glaux.cpp(51) : fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?
Generating Code...
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 9.00.21022
Copyright (C) Microsoft Corporation. All rights reserved.
BSCMAKE: error BK1506 : cannot open file '.\Debug\glAux.sbr': No such file or directory
Build log was saved at "file://g:\OpenGL Tutorials\NeHe tuts\tutorial01\Debug\BuildLog.htm"
tutorial01 - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I guess what I'm looking for are files to replace glaux.h/glaux.cpp, and glaux.lib or an openGL implementation that I can insert into VS C++ 2008 EE that will handle what ever the old openGL files used to do.

Savalia
08-25-2009, 12:08 PM
I checked stdafx.h it's referenced where it's required to be.

Simon Mihevc
08-26-2009, 02:28 AM
Did you try disabling precompiled headers? The settings is in "Project" Property Pages->Configuration Properties->C/C++->Precompiled Headers->Create/Use Precompiled Header. Set it to "Not Using Precompiled Headers".