I’m porting an app I’ve been working on for a project from Linux over to Windows (to see if the Nvidia drivers for OpenCL which are failing terribly on Ubuntu Linux work right in Windows).
I installed every Nvidia SDK I can think of - I can find include headers, I CAN’T find the libraries (.lib) for a path to add to the linker to link…
I need ONE function out of OpenGL (and it’s part of GLU), and that’s simply gluOrtho2D. I’m doing a 2 stage compilation link via command line. The compilation happens okay but the link obviously fails with:
main1.obj : error LNK2019: unresolved external symbol _gluOrtho2D referenced in function _init output.exe : fatal error LNK1120: 1 unresolved externals
A pretty straight forward linker message, I don’t have the right OpenGL libs pointed to in the linker path. Right now my linker paths are:
C:\Users\UN\AppData\Local\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.2\OpenCL\common\lib\Win32 C:\Users\UN\AppData\Local\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.2\GLUT" C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib"
The second path (GLUT) is simply a dir I made in the already existing Nvidia dir to dump the GLUT libs (yeah, it’s hack-ish, I know).
Platform is Win7 x64 (though I’m not using 64 bit libs as far as I know), card is a GTX280. Just can’t find the location to link against the Nvidia OpenGL libs. Plenty of headers though…
Much help is appreciated, this is my first time running OpenGL, OpenCL, GLUT, or Glu on Windows, I typically use Linux or OS X.
Yeah, and I realize the 3rd one is the pre-packaged with Windows OpenGL 1.1 lib, which is why it isn’t working (no GLU, I believe).
Also, forgot to mention, the compiler libraries I’m noting in the linker line are:
(should probably just be OpenGL.lib but I can’t find it anywhere).