I need to use some library file that have been build using Visual Studio 2010 Professional (MSVCRT2010 compiler?!) and I am having trouble building my s-functions in another host machine. My target host machine does not have Visual Studio so MATLAB cannot pickup the C++ compiler. Also, LCC (MATLAB's native) compiler is probably different. How can I manage to do that without causing minimum hassle?
I can think about one thing - retargetting the library to be cross-compiler friendly. I have already done that when I got the library from my legacy code pool (UNIX GNU platform) and it was supposed to be running okay with any compiler after my retargetting. However, it has come back to bit me.
Is it something regarding redistributable VS files? or am I driving myself insane?
The error msg I am getting is:
Writing library for y_ing_sl_ver.mexw32
File c_src_~1\lg_com~1\y_ing.obj contains unknown section .rtc$TMZ.
.text section assumed
File c_src_~1\lg_com~1\y_ing.obj contains unknown section .rtc$IMZ.
.text section assumed
c_src_~1\lg_com~1\ymginteg.obj .rtc$TMZ: undefined reference to '__RTC_Shutdown'
c_src_~1\lg_com~1\ymginteg.obj .rtc$IMZ: undefined reference to '__RTC_InitBase'
C:\PROGRA~2\MATLAB\R2013A\BIN\MEX.PL: Error: Link of 'y_ing_sl_ver.mexw32' failed.