1 Replies - 8034 Views - Last Post: 01 October 2008 - 12:01 AM Rate Topic: -----

#1 shnuk   User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 7
  • Joined: 25-September 08

error LNK2019 - please help

Posted 30 September 2008 - 05:00 AM

Hey

I am trying to insert the ARToolKit function to my project.
I added videoWin32DirectShow.cpp
When I try to build the project I get next errors:

1>Linking...
1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
1> Creating library C:\Graphics\Release\Cube.lib and object C:\Graphics\Release\Cube.exp
1>main.obj : warning LNK4217: locally defined symbol _arVideoCapStop imported in function _main
1>main.obj : warning LNK4217: locally defined symbol _arVideoCapStart imported in function _main
1>videoWin32DirectShow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: long __thiscall DSVL_VideoSource::EnableMemoryBuffer(unsigned int,unsigned int)" ([email protected][email protected]@QAEJI [email protected]) referenced in function _ar2VideoOpen
1>videoWin32DirectShow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: long __thiscall DSVL_VideoSource::BuildGraphFromXMLFile(char *)" ([email protected][email protected]@QA [email protected]) referenced in function _ar2VideoOpen
1>videoWin32DirectShow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: long __thiscall DSVL_VideoSource::BuildGraphFromXMLString(char *)" ([email protected][email protected]@ [email protected]) referenced in function _ar2VideoOpen
1>videoWin32DirectShow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall DSVL_VideoSource:SVL_VideoSource(void)" ([email protected]@[email protected]) referenced in function _ar2VideoOpen
1>videoWin32DirectShow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: long __thiscall DSVL_VideoSource::Stop(bool)" ([email protected][email protected]@[email protected]) referenced in function _ar2VideoClose
1>videoWin32DirectShow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: long __thiscall DSVL_VideoSource::CheckinMemoryBuffer(struct MemoryBufferHandle,bool)" ([email protected][email protected]@QAEJ [email protected]@[email protected]) referenced in function _ar2VideoClose
1>videoWin32DirectShow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall DSVL_VideoSource::~DSVL_VideoSource(void)" ([email protected]@[email protected]) referenced in function "public: void * __thiscall DSVL_VideoSource::`scalar deleting destructor'(unsigned int)" ([email protected]@[email protected])
1>videoWin32DirectShow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: long __thiscall DSVL_VideoSource::CheckoutMemoryBuffer(struct MemoryBufferHandle *,unsigned char * *,unsigned int *,unsigned int *,enum _PIXELFORMAT *,__int64 *)" ([email protected][email protected]@QAE [email protected]@[email protected] @[email protected]) referenced in function _ar2VideoGetImage
1>videoWin32DirectShow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned long __thiscall DSVL_VideoSource::WaitForNextSample(long)" ([email protected][email protected]@[email protected] Z) referenced in function _ar2VideoGetImage
1>videoWin32DirectShow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: long __thiscall DSVL_VideoSource::Run(void)" ([email protected][email protected]@QAEJXZ) referenced in function _ar2VideoCapStart
1>videoWin32DirectShow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: long __thiscall DSVL_VideoSource::GetCurrentMediaFormat(long *,long *,double *,enum _PIXELFORMAT *)" ([email protected][email protected]@QA [email protected]@@Z) referenced in function _ar2VideoInqSize
1>gsub_lite.obj : error LNK2019: unresolved external symbol _arParamDecompMat referenced in function _arglCameraFrustum
1>gsub_lite.obj : error LNK2001: unresolved external symbol _arImageProcMode
1>gsub_lite.obj : error LNK2001: unresolved external symbol _arImage
1>gsub_lite.obj : error LNK2001: unresolved external symbol _arDebug
1>gsub_lite.obj : error LNK2019: unresolved external symbol _arParamObserv2Ideal referenced in function _arglDispImageTexPow2
1>C:\Graphics\Release\Cube.exe : fatal error LNK1120: 16 unresolved externals
1>Build log was saved at "file://c:\Graphics\Release\BuildLog.htm"
1>Cube - 17 error(s), 3 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


What should I do to fix this error?

Thanks ahead.

Is This A Good Question/Topic? 0
  • +

Replies To: error LNK2019 - please help

#2 RedSonja   User is offline

  • D.I.C Head
  • member icon

Reputation: 10
  • View blog
  • Posts: 172
  • Joined: 04-September 08

Re: error LNK2019 - please help

Posted 01 October 2008 - 12:01 AM

LNK2019: F1 will tell you lots of ways you can cause this.

A quick browse of you error messages shows you have used libraries and other external stuff without telling your compiler where it is. Maybe you need to set some paths in the project properties? First make sure the stuff is there on your computer, and check you spelled it right.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1