What does this mean? -error LNK2019.

Hi all,

I use VisualStudio2008 an tried to compile an example I found in another thread. It’s an Augmented Reality Example using ArtoolkitPlus an was out togehter by “jefftimesten”.
Unfortunately it is for xcode but I thought it won’t be a problem and copied the sourcecode code to VS and also linked all the libraries and headerfiles.

But now i always get these errors when trying to compile.

1>------ Build started: Project: ArtoolkitPlus, Configuration: Debug Win32 ------
1>Linking…
1>main.obj : error LNK2019: unresolved external symbol “public: __thiscall ofxCvGrayscaleImage::ofxCvGrayscaleImage(void)” (??0ofxCvGrayscaleImage@@QAE@XZ) referenced in function “public: __thiscall testApp::testApp(void)” (??0testApp@@QAE@XZ)

1>main.obj : error LNK2019: unresolved external symbol “public: __thiscall ofxCvColorImage::ofxCvColorImage(void)” (??0ofxCvColorImage@@QAE@XZ) referenced in function “public: __thiscall testApp::testApp(void)” (??0testApp@@QAE@XZ)

1>main.obj : error LNK2019: unresolved external symbol “public: virtual __thiscall ofxCvImage::~ofxCvImage(void)” (??1ofxCvImage@@UAE@XZ) referenced in function “public: virtual __thiscall ofxCvColorImage::~ofxCvColorImage(void)” (??1ofxCvColorImage@@UAE@XZ)

1>bin\ArtoolkitPlus_debug.exe : fatal error LNK1120: 3 unresolved externals

1>Build log was saved at “file://c:…\OF\of_preRelease_v0.06_windows_VS2008_FAT\apps\examples\phil_ARToolkit_2005\obj\Debug\BuildLog.htm”

1>ArtoolkitPlus - 4 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Is there anything I missed to link? Or does anybody know what might be the problem?

thank you

Hey!

As far as I know you have to make sure that you include the .cpp files of the addons you are using in your project.

Check out http://forum.openframeworks.cc/t/error-lnk2019-with-of-0.06/2997/0 for more information.

Hope it helps!