problem of link



Hello!

I try to compile my mex file, but there are link error. However, at
the beginning, my C program had no problem.
Here my error message
My C program is encore.cpp
encore.obj
Creating library _lib2717.x and object _lib2717.exp
encore.obj : error LNK2001: unresolved external symbol
_CC_CaptureSingle@24
encore.obj : error LNK2001: unresolved external symbol
_CC_SetRegister@12
encore.obj : error LNK2001: unresolved external symbol
_CC_SetParameter@12
encore.obj : error LNK2001: unresolved external symbol
_CC_LoadCamera@8
encore.obj : error LNK2001: unresolved external symbol _CC_Open@12
encore.dll : fatal error LNK1120: 5 unresolved externals

C:\MATLAB7\BIN\WIN32\MEX.PL: Error: Link of 'encore.dll' failed.

All the "external symbols" are functions of a librairy but I have
already added this librairy which did not provoke any link errors
when I compiled only the C program. But with the mex file it does not
work anymore.
and I use the same compiler when I use matlab (visual C++)

I need help...
Thanks
.



Relevant Pages

  • Re: Going From MFC to .NET
    ... Now the problem is that when I try to compile a debug or release vr. ... format; library ignored ... HardDriveTest.obj: error LNK2001: unresolved external symbol "unsigned ...
    (microsoft.public.vc.mfc)
  • PCRE & MFC: problem with link error
    ... I'm trying to get an MFC v6 project to link with the C Perl Compatible ... Regular Expression (pcre) library, and encountering a link error about ... PcreTest.obj: error LNK2001: unresolved external symbol ...
    (microsoft.public.vc.mfc)
  • Re: Compiling CERDISP.exe
    ... At his point I get linking errors. ... directory for files to compile. ... cerdisp.obj: error LNK2019: unresolved external symbol GetMessageW ... DispatchMessageW referenced in function WinMain ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Dont want Intermediate language
    ... complie my code using this.. ... just compile it as a Win32 application and it won't be ... main.obj: error LNK2019: unresolved external symbol ... I do have the platfor SDK installed.. ...
    (microsoft.public.vc.language)
  • Re: Link Error
    ... Gives the following Link Error ... "Marcus Heege" wrote: ... A.obj: error LNK2019: unresolved external symbol ... Since it is static method i check if the method is defined and found ...
    (microsoft.public.vc.language)

Loading