antiseptic
Bioengineer
- Jan 15, 2003
- 11
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
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