Advertisement

Release version trouble

Started by July 26, 2000 06:21 PM
8 comments, last by Ionut Costica 24 years, 4 months ago
I want to turn a Visual C++ 6.0 project of mine that uses OpenGL and the BASS library(http://www.un4seen.com/music/) from the Debug version to the Release version, but I get the following:
    --------------------Configuration: Enh menu ogl app - Win32 Release--------------------
Compiling...
StdAfx.cpp
Compiling...
Enh menu ogl app.cpp
Linking...
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__timeGetTime@0
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__wglUseFontBitmapsA@16
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glGenLists@4
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glDeleteLists@8
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glPopAttrib@0
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glCallLists@12
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glListBase@4
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glPushAttrib@4
Enh menu ogl app.obj : error LNK2001: unresolved external symbol _auxDIBImageLoadA@4
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glTexParameteri@12
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glTexImage2D@36
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glBindTexture@8
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glGenTextures@8
Enh menu ogl app.obj : error LNK2001: unresolved external symbol _gluPerspective@32
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glLoadIdentity@0
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glMatrixMode@4
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glViewport@16
Enh menu ogl app.obj : error LNK2001: unresolved external symbol _BASS_StreamPlay@12
Enh menu ogl app.obj : error LNK2001: unresolved external symbol _BASS_StreamCreateFile@20
Enh menu ogl app.obj : error LNK2001: unresolved external symbol _BASS_SetVolume@4
Enh menu ogl app.obj : error LNK2001: unresolved external symbol _BASS_GetVolume@0
Enh menu ogl app.obj : error LNK2001: unresolved external symbol _BASS_Start@0
Enh menu ogl app.obj : error LNK2001: unresolved external symbol _BASS_Init@16
Enh menu ogl app.obj : error LNK2001: unresolved external symbol _BASS_Free@0
Enh menu ogl app.obj : error LNK2001: unresolved external symbol _BASS_StreamFree@4
Enh menu ogl app.obj : error LNK2001: unresolved external symbol _BASS_Stop@0
Enh menu ogl app.obj : error LNK2001: unresolved external symbol _BASS_ChannelStop@4
Enh menu ogl app.obj : error LNK2001: unresolved external symbol _gluQuadricTexture@8
Enh menu ogl app.obj : error LNK2001: unresolved external symbol _gluQuadricNormals@8
Enh menu ogl app.obj : error LNK2001: unresolved external symbol _gluNewQuadric@0
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glLightfv@12
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glHint@8
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glDepthFunc@4
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glClearDepth@8
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glClearColor@16
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glShadeModel@4
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glEnable@4
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glDisable@4
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glEnd@0
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glVertex3f@12
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glBegin@4
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glColor3f@12
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glTexCoord2f@8
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glNormal3f@12
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glRotatef@16
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glReadPixels@28
Enh menu ogl app.obj : error LNK2001: unresolved external symbol _gluCylinder@36
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glTranslatef@12
Enh menu ogl app.obj : error LNK2001: unresolved external symbol _BASS_GetCPU@0
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glRasterPos2f@8
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glIsEnabled@4
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__glClear@4
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__wglDeleteContext@4
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__wglMakeCurrent@8
Enh menu ogl app.obj : error LNK2001: unresolved external symbol _gluDeleteQuadric@4
Enh menu ogl app.obj : error LNK2001: unresolved external symbol __imp__wglCreateContext@4
Release/Enh menu ogl app.exe : fatal error LNK1120: 56 unresolved externals
Error executing link.exe.

Enh menu ogl app.exe - 57 error(s), 0 warning(s)    
The Project Settings: General: Not using MFC C/C++: General: Warning level:3 Optimizations:Maximize speed Debug info:none Preprocessor defs:WIN32,NDEBUG,_WINDOWS,_MBCS C++ language: Representation method:Best-case always Enable exception handling Code generation: Processor:blend Use run-time lib:single-threaded calling convention:__cdecl struct member alignment:8 bytes Project options: /nologo /ML /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /Fp"Release/Enh menu ogl app.pch" /Yu"stdafx.h" /Fo"Release/" /Fd"Release/" /FD /c Mentioning again: MS VC 6.0 Enterprise "Everything is relative." -- Even in the world of computers.
everything is relative. -- even in the world of computers... so PUSH BEYOND THE LIMITS OF SANITY!
Check your list of libraries. I''ll bet your missing a couple.

Mike Roberts
aka milo
mlbobs@telocity.com
Advertisement
But wouldn''t they show up in the Debug version also? The Debug version works perfectly!

"Everything is relative." -- Even in the world of computers.
everything is relative. -- even in the world of computers... so PUSH BEYOND THE LIMITS OF SANITY!
As far as I can tell, the Project settings are individual for release and debug version. You''ll have to link in both configurations separately.
A polar bear is a rectangular bear after a coordinate transform.
Thanks. Now it works. Only one problem left:
    --------------------Configuration: Enh menu ogl app - Win32 Release--------------------Compiling...StdAfx.cppCompiling...Enh menu ogl app.cppLinking...LINK : warning LNK4089: all references to "ADVAPI32.dll" discarded by /OPT:REFEnh menu ogl app.exe - 0 error(s), 1 warning(s)    


"Everything is relative." -- Even in the world of computers.
everything is relative. -- even in the world of computers... so PUSH BEYOND THE LIMITS OF SANITY!
Can anyone tell me what''s up with this "ADVAPI32.dll"?

"Everything is relative." -- Even in the world of computers.
everything is relative. -- even in the world of computers... so PUSH BEYOND THE LIMITS OF SANITY!
Advertisement
No kidding! How is it that you have obtained the enterprise edition of VC++? How is it that you have the enterprise edition and you don''t even know how to use it? Damn-it, what the hell am I doing wrong that no-one will buy me the enterprise edition?
ADVAPI32.DLL is a system library. Try modifying your link file list and remove the "ADVAPI32.LIB" entry.

// CHRIS
// CHRIS [win32mfc]
According to MSDN:
"Use /OPT:REF/to eliminate functions and/or data that is never referenced."
Thanks for the answer.

"Everything is relative." -- Even in the world of computers.
everything is relative. -- even in the world of computers... so PUSH BEYOND THE LIMITS OF SANITY!

This topic is closed to new replies.

Advertisement