Compile a 32-bit shared library from a 64-bit Linux machine with 64-bit MATLAB installed
2 次查看(过去 30 天)
显示 更早的评论
Hi, I have a 64-bit MATLAB (with compiler) installed on a 64-bit Linux machine. I would like to compile my scripts into a 32-bit shared library so it can be deployed to a 32 bit linux machine. I have tried to pass -m32 to the gcc compiler by modifying the mbuild options file but that doesn't seem to work. I'm just wondering if it's possible to do what I just described? Or shall I just install a 32-bit MATLAB? Thank you.
0 个评论
采纳的回答
Titus Edelhofer
2012-3-30
Hi,
it's at least difficult, but I guess probably not possible at all. It will definetely simpler to just install a 32 Bit MATLAB in parallel ...
Titus
2 个评论
Kaustubha Govind
2012-3-30
I agree. 32-bit MATLAB is the way to do. Especially because the 32-bit library will need to link against MATLAB runtime libraries which also need to be 32-bit.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 C Shared Library Integration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!