Why do I receive an NMAKE U1065 error when compiling a model with Microsoft Visual Studio?
9 views (last 30 days)
Show older comments
MathWorks Support Team
on 4 Mar 2010
Edited: MathWorks Support Team
on 9 May 2022
When I generate code from my model and compile the code using Microsoft Visual Studio, I receive an NMAKE error:
NMAKE : fatal error U1065: invalid option '-'
Accepted Answer
MathWorks Support Team
on 9 May 2022
Edited: MathWorks Support Team
on 9 May 2022
The U1065 error with NMAKE is a generic error which indicates that an invalid option was supplied to some portion of the compilation process. NMAKE is part of Microsoft Visual Studio.
This error can result from numerous environment settings. Some potential sources of erroneous or incompatible settings are listed below.
(1) Examine your Windows environment variables, as some variables, including MAKEFLAGS, are passed directly to NMAKE and can affect compilation. See the following links for more tips:
(2) Check the Compiler Options setting in your model by opening the Configuration Parameters, navigating to the Code Generation section, and checking the "Make Command" entry. By default, this will read:
make_rtw
Check any additional compiler options specified in this field for validity with Microsoft Visual Studio.
0 Comments
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!