Jump to content
  • Advertisement
Sign in to follow this  
agent 007

Link error...

This topic is 4859 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey, I am starting OGL, and I have my OGL window, but I can't get my camera to work. This is my error. Elemental Fire.obj : error LNK2019: unresolved external symbol And then Debug/Elemental Fire.exe : fatal error LNK1120: 2 unresolved externals Could anyone help? I could post my code if you need it.

Share this post


Link to post
Share on other sites
Advertisement
Posting the exact error message would help, but from the looks of it you forgot to link in a library you're using in your code.

Share this post


Link to post
Share on other sites
Build Log ------- Build started: Project: Elemental Fire, Configuration: Debug|Win32 -------

Command Lines Creating temporary file "c:\Program Files\Elemental Fire\Debug\RSP000002.rsp" with contents
[
/Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /FD /EHsc /RTC1 /MLd /YX"stdafx.h" /Fp"Debug/Elemental Fire.pch" /Fo"Debug/" /Fd"Debug/vc70.pdb" /W3 /c /ZI /TP
".\Elemental Fire.cpp"
]
Creating command line "cl.exe @"c:\Program Files\Elemental Fire\Debug\RSP000002.rsp" /nologo"
Creating temporary file "c:\Program Files\Elemental Fire\Debug\RSP000003.rsp" with contents
[
/OUT:"Debug/Elemental Fire.exe" /INCREMENTAL:NO /NOLOGO /DEBUG /PDB:"Debug/Elemental Fire.pdb" /SUBSYSTEM:WINDOWS /MACHINE:X86 opengl32.lib glu32.lib glaux.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
".\Debug\Elemental Fire.obj"
".\Debug\stdafx.obj"
".\Debug\Elemental Fire.res"
]
Creating command line "link.exe @"c:\Program Files\Elemental Fire\Debug\RSP000003.rsp""
Output Window Compiling...
Elemental Fire.cpp
Linking...
LINK : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
Elemental Fire.obj : error LNK2019: unresolved external symbol "public: void __thiscall CCamera::Position_Camera(float,float,float,float,float,float,float,float,float)" (?Position_Camera@CCamera@@QAEXMMMMMMMMM@Z) referenced in function "int __cdecl InitGL(void)" (?InitGL@@YAHXZ)
Elemental Fire.obj : error LNK2019: unresolved external symbol "public: void __thiscall CCamera::Move_Camera(float)" (?Move_Camera@CCamera@@QAEXM@Z) referenced in function "void __cdecl Keyboard_Input(void)" (?Keyboard_Input@@YAXXZ)
Debug/Elemental Fire.exe : fatal error LNK1120: 2 unresolved externals
Results Build log was saved at "file://c:\Program Files\Elemental Fire\Debug\BuildLog.htm"
Elemental Fire - 3 error(s), 1 warning(s)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!