×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Matlab Compiler (not trivia)

Matlab Compiler (not trivia)

Matlab Compiler (not trivia)

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources