3 Replies - 4503 Views - Last Post: 30 March 2011 - 08:48 AM Rate Topic: -----

#1 bear(NP)  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 144
  • Joined: 18-February 09

Linking Library in Visual Studio 2010

Posted 30 March 2011 - 04:48 AM

Hey Everybody,
So I'm doing some research on the side when I'm bored and I found this glut32.dll, glut32.h and glut32.lib files that should hold the function definitions (If I'm not mistaken) of several different functions that this source code uses. I'm using Visual Studio 2010 so I have to add .lib files manually using the project's properties. So I got to the Project/Properties/Config. Properties/VC++ Directories and add where my header files and .lib/.dll files are to the Include, Reference, Source and Library properties. I then go into C/C++ in the Config. Prop. menu, into the General tab, and add the locations of my .h/.lib/.dll files to the Additonal Include Directories. Go back into the C/C++ directory, to the Advanced tab and tell the code to compile as C code (changing this between C and C++ code does nothing in the end). Then, out of the C/C++ tab, into the Config. Prop.s tab, I enter the Linker tab. Here, I go to the "Additional Library Directories" and add where my .lib and .dll files are. Then into the Input tab where I write in the name of the .lib file in the Addition Dependencies tab. I've hit apply after every change and click apply/ok this time.

I go to build by code and get this error:

Quote

1>------ Build started: Project: simplVRML, Configuration: Debug Win32 ------
1>Build started 3/30/2011 7:46:45 AM.
1>InitializeBuildStatus:
1> Touching "Debug\simplVRML.unsuccessfulbuild".
1>ClCompile:
1> All outputs are up-to-date.
1>ManifestResourceCompile:
1> All outputs are up-to-date.
1>object.obj : error LNK2019: unresolved external symbol _arLoadPatt referenced in function _read_VRMLdata
1>object.obj : error LNK2019: unresolved external symbol _arVrmlLoadFile referenced in function _read_VRMLdata
1>simpleVRML.obj : error LNK2019: unresolved external symbol _arVrmlDraw referenced in function _main
1>simpleVRML.obj : error LNK2019: unresolved external symbol _arUtilTimerReset referenced in function _main
1>simpleVRML.obj : error LNK2019: unresolved external symbol _arglSetupForCurrentContext referenced in function _main
1>simpleVRML.obj : error LNK2019: unresolved external symbol __imp__arVideoCapStart referenced in function _setupCamera
1>simpleVRML.obj : error LNK2019: unresolved external symbol _arInitCparam referenced in function _setupCamera
1>simpleVRML.obj : error LNK2019: unresolved external symbol _arParamDisp referenced in function _setupCamera
1>simpleVRML.obj : error LNK2019: unresolved external symbol _arParamChangeSize referenced in function _setupCamera
1>simpleVRML.obj : error LNK2019: unresolved external symbol _arParamLoad referenced in function _setupCamera
1>simpleVRML.obj : error LNK2019: unresolved external symbol __imp__arVideoInqSize referenced in function _setupCamera
1>simpleVRML.obj : error LNK2019: unresolved external symbol __imp__arVideoOpen referenced in function _setupCamera
1>simpleVRML.obj : error LNK2001: unresolved external symbol _arMatchingPCAMode
1>simpleVRML.obj : error LNK2001: unresolved external symbol _arTemplateMatchingMode
1>simpleVRML.obj : error LNK2019: unresolved external symbol _arglTexmapModeGet referenced in function _debugReportMode
1>simpleVRML.obj : error LNK2019: unresolved external symbol _arglDrawModeGet referenced in function _debugReportMode
1>simpleVRML.obj : error LNK2001: unresolved external symbol _arImageProcMode
1>simpleVRML.obj : error LNK2001: unresolved external symbol _arFittingMode
1>simpleVRML.obj : error LNK2019: unresolved external symbol __imp__arVideoClose referenced in function _Quit
1>simpleVRML.obj : error LNK2019: unresolved external symbol __imp__arVideoCapStop referenced in function _Quit
1>simpleVRML.obj : error LNK2019: unresolved external symbol _arglCleanup referenced in function _Quit
1>simpleVRML.obj : error LNK2019: unresolved external symbol __imp__arVideoDispOption referenced in function _Keyboard
1>simpleVRML.obj : error LNK2019: unresolved external symbol _arUtilTimer referenced in function _Keyboard
1>simpleVRML.obj : error LNK2019: unresolved external symbol _arglTexmapModeSet referenced in function _Keyboard
1>simpleVRML.obj : error LNK2019: unresolved external symbol _arglDrawModeSet referenced in function _Keyboard
1>simpleVRML.obj : error LNK2019: unresolved external symbol _arGetTransMatCont referenced in function _Idle
1>simpleVRML.obj : error LNK2019: unresolved external symbol _arGetTransMat referenced in function _Idle
1>simpleVRML.obj : error LNK2019: unresolved external symbol _arDetectMarker referenced in function _Idle
1>simpleVRML.obj : error LNK2019: unresolved external symbol __imp__arVideoGetImage referenced in function _Idle
1>simpleVRML.obj : error LNK2019: unresolved external symbol _arVrmlTimerUpdate referenced in function _Idle
1>simpleVRML.obj : error LNK2019: unresolved external symbol _arglCameraViewRH referenced in function _Display
1>simpleVRML.obj : error LNK2019: unresolved external symbol _arglCameraFrustumRH referenced in function _Display
1>simpleVRML.obj : error LNK2019: unresolved external symbol __imp__arVideoCapNext referenced in function _Display
1>simpleVRML.obj : error LNK2019: unresolved external symbol _arglDispImage referenced in function _Display
1>C:\Users\*\Desktop\AltReality\Pwork\simplVRML\Debug\simplVRML.exe : fatal error LNK1120: 34 unresolved externals
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.81
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


This has to be because it cannot fine the .lib file- what have I done wrong?

Is This A Good Question/Topic? 0
  • +

Replies To: Linking Library in Visual Studio 2010

#2 Oler1s  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1395
  • View blog
  • Posts: 3,884
  • Joined: 04-June 09

Re: Linking Library in Visual Studio 2010

Posted 30 March 2011 - 05:35 AM

The unresolved symbols don't come from the OpenGL API. Google suggests ARToolkit. Make sure you linked to appropriate files for other libraries you use.
Was This Post Helpful? 0
  • +
  • -

#3 bear(NP)  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 144
  • Joined: 18-February 09

Re: Linking Library in Visual Studio 2010

Posted 30 March 2011 - 05:57 AM

I can confirm the problem is how I'm linking the library, I'm definitely doing something wrong because when I try to link other libraries to other projects the result is the same. I've looked online and I've tried several tutorials, but to no avail- could somebody please walk me through this? Or provide a link with a tutorial that has been confirmed to work?
Was This Post Helpful? 0
  • +
  • -

#4 anonymous26  Icon User is offline

  • D.I.C Lover

Reputation: -4
  • View blog
  • Posts: 3,638
  • Joined: 26-November 10

Re: Linking Library in Visual Studio 2010

Posted 30 March 2011 - 08:48 AM

You're just not telling your IDE to look in the right location to find the libs. Check you paths. :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1