Cheap Hotels & Flight Tickets | Chicago Webdesign | Western Union Money Transfer | Myspace Comments | Per Insurance
C++ unresolved external symbol [Archive] - PCMech Forums

PDA

View Full Version : C++ unresolved external symbol


blue60007
06-20-2007, 11:29 PM
OK, I've got a annoying problem. Here's what I'm trying to do in a nutshell. I'm writing an OpenGL program, and I want to be able to render a scene, save a screenshot, render the next, save a screenshot, and so on. It's got to be scripted into the program... Now, from some research apparently OpenGL can write screenshots into memory but can't save to a file. That's where a 3rd party library comes in. I think I've found one that should do the trick, but I'm getting this "unresolved external symbol" error anytime I call functions from the library (and I've tried several). I've included appropriate header files, library directories and plopped the given dll file in every directory imaginable (a bit overkill, but hey, maybe it'll fix it)...

lesson1 error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall mkOpenGLJPEGImage::~mkOpenGLJPEGImage(void)" (__imp_??1mkOpenGLJPEGImage@@QAE@XZ) referenced in function "int __cdecl DrawGLScene(void)" (?DrawGLScene@@YAHXZ)

I've gotten these errors before in other programs, even very simple ones. To me at least they seem to randomly start happening. So I guess what I'm looking for, is help in what this error, in general, means and what usually fixes it. This error has plaugued me before but I've never been able to figure it out... I've been trying to find a solution, but haven't really found anything useful.

Any help is great appreciated. Thanks!