Why do I receive unresolved external symbol errors when building my project in MSVC Development Studio after creating the code using Real-Time Workshop 5.1 (R13SP1)?
Show older comments
Why do I receive unresolved external symbol errors when building my project in MSVC Development Studio after creating the code using Real-Time Workshop 5.1 (R13SP1)?
I built code for the Flanging demo (dspafxf.mdl) using Real-Time Workshop 5.1 (R13SP1) and Real-Time Workshop 5.0 (R13).
(NOTE: From the Simulation Parameters dialog box on the Real-Time Workshop tab, I chose "Visual C/C++ Project Makefile only for the grt_malloc target" and had to uncheck "Generate code only" in order for a .mak file to be created.)
Once I build the code, I brought the dspafxf.mak into MSVC Development Studio and then tried to compile the code. The code I built with RTW 5.0 (the .exe file) did not produce any errors, but the code from RTW 5.1 produced the following errors in MSVC Development Studio:
Linking...
sqdes_lin_floor_d_rt.obj : error LNK2001: unresolved external symbol _mxFree
sqdes_main_d_rt.obj : error LNK2001: unresolved external symbol _mxFree
sort_ascend_d_rt.obj : error LNK2001: unresolved external symbol _mxFree
sqdes_bin_ceil_d_rt.obj : error LNK2001: unresolved external symbol _mxFree
sqdes_bin_floor_d_rt.obj : error LNK2001: unresolved external symbol _mxFree
sqdes_lin_ceil_d_rt.obj : error LNK2001: unresolved external symbol _mxFree
sort_ascend_d_rt.obj : error LNK2001: unresolved external symbol _mxMalloc
sqdes_main_d_rt.obj : error LNK2001: unresolved external symbol _mxMalloc
sqdes_bin_ceil_d_rt.obj : error LNK2001: unresolved external symbol _mxCalloc
sqdes_bin_floor_d_rt.obj : error LNK2001: unresolved external symbol _mxCalloc
sqdes_lin_ceil_d_rt.obj : error LNK2001: unresolved external symbol _mxCalloc
sqdes_lin_floor_d_rt.obj : error LNK2001: unresolved external symbol _mxCalloc
sqdes_main_d_rt.obj : error LNK2001: unresolved external symbol _mxRealloc
.\Debug/dspafxf.exe : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.
dspafxf.exe - 14 error(s), 0 warning(s)
Accepted Answer
More Answers (0)
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!