Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Matlab Compiler (not trivia)

Status
Not open for further replies.

antiseptic

Bioengineer
Joined
Jan 15, 2003
Messages
11
Location
ES
hi all
i am trying to compile AND link a matlab executable from its source code in c++

i proceeded as follows
1. coded the m file
2. translated the code to c++ with the mcc -p (so i have the executable file along with the source files, and it works as stand-alone)
3. compiled (to object file) the function.cpp and function_main.cpp SUCCESFULLY (had to include -I a bunch of libraries)
4. when trying to LINK, i wont do, got a lot of errors but no references to which dynamic libraries it's trying to pick to
5. i did an "ldd" over the executable provided by the mcc and added to the g++ all the libraries that were on the output (by -L)
-> yet no success, same errors!

has anyone tried to compile his executable from the source code and done so succesfully?
i need it to add to some bigger program some of the functions in matlab (yes, i know i could retype myself in c++ but i figure u understand the drawbacks)

thanks in advance!

antiseptic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top