Compile a funtion with LibSVm fails

  • Follow


Hi,

When I try to create an executable program, which uses LibSvm, with Matlab compiler, I get following error: 

%--------------------------
libsvmwrite.obj : error LNK2005: _exit_with_help already defined in libsvmread.obj 
libsvmwrite.obj : error LNK2005: _mexFunction already defined in libsvmread.obj 
svmpredict.obj : error LNK2005: _exit_with_help already defined in libsvmread.obj 
svmpredict.obj : error LNK2005: _mexFunction already defined in libsvmread.obj 
svmtrain2.obj : error LNK2005: _exit_with_help already defined in libsvmread.obj 
svmtrain2.obj : error LNK2005: _mexFunction already defined in libsvmread.obj 
LINK : fatal error LNK1561: entry point must be defined 
  C:\PROGRA~1\MATLAB\R2010B\BIN\MEX.PL: Error: Link of 'C:\UNTITL~1\SRC\Untitled1.exe' failed. 
Error: An error occurred while shelling out to mbuild (error code = 2). 
Unable to build executable.
%--------------------------

I use Matlab deploytool and select all LibSvm files together with Matlab m files. I am using Matlab 2010b, Visual Studio 2010 and Windows XP 32 bit.

Anyone suggestions will be appreciated
0
Reply John 1/11/2011 1:23:06 PM


0 Replies
464 Views

(page loaded in 0.01 seconds)

Similiar Articles:










7/22/2012 3:21:14 PM


Reply: