Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: compile rosenbrock from c/c++
Date: Mon, 1 Sep 2008 15:07:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 31
Message-ID: <g9h0el$ong$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1220281621 25328 172.30.248.37 (1 Sep 2008 15:07:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 1 Sep 2008 15:07:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1338633
Xref: news.mathworks.com comp.soft-sys.matlab:488114



I have downloaded some code in c or c++ for the Rosenbrock 
optimization algorithm. According to the website, "the code 
of the optimizer is standard C and doesn't use any special 
libraries", but it may be c++ as the file extension 
is .cpp. The website is: 
http://iridia.ulb.ac.be/~fvandenb/optimization/rosenbrock.ht
ml

I am trying to compile it for use in Matlab, but get the 
following error:

C:\DOCUME~1\mmdjb\LOCALS~1\Temp\mex_JB2Rpz\rosenbrock.obj  
LINK : error LNK2001: unresolved external symbol 
mexFunction 
C:\DOCUME~1\mmdjb\LOCALS~1\Temp\mex_JB2Rpz\templib.x : 
fatal error LNK1120: 1 unresolved externals 
 
  C:\PROGRA~1\MATLAB\R2008A\BIN\MEX.PL: Error: Link 
of 'rosenbrock.mexw64' failed. 
 
??? Error using ==> mex at 207
Unable to complete successfully.


Can anyone else compile it successfully, and if so, how? 
Thanks.

p.s. I am trying to compile it on a 64 bit windows xp 
system using Matlab 7.6.0 R2008a