• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1133
  • Last Modified:

Where can I get the MATLAB compiler options file (compopts.bat)?

Can't find compopts.bat (the MATLAB compiler options file) in neither my User directory nor the MATLAB bin directory.

Can I ask MATLAB to regen it ? If I can't, where can I get the content to copy-paste in a new .bat that I would create?

Thanks
0
PC_LOAD_LETTER
Asked:
PC_LOAD_LETTER
  • 3
  • 2
1 Solution
 
yuk99Commented:
You can get the location of compopts.bat. if you type prefdir in MATLAB command window.
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/prefdir.html

This file is created automatically when you run mbuild -setup to configure MATLAB compiler.
http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/f6-22535.html
0
 
PC_LOAD_LETTERAuthor Commented:
It is not in the prefdir directory.

Does MATLAB generate the file even if no compilers are present ?

If so I believe the problem is I did not select  "X64 Compilers and Tools" when installing Microsoft Visual Studio 2008.

(I'm using MATLAB R2009a 7.8 64-bit on windows 7 x64)

I will update after reinstalling
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
yuk99Commented:
You have to run mbuild -setup to generate this file. Have you done that. MATLAB will not do it automatically. When you run mbuild, MATLAB will show you list of compilers installed on your system, that MATLAB compiler can use.
0
 
yuk99Commented:
See the second link I posted in my first comment.
0
 
PC_LOAD_LETTERAuthor Commented:
You where right yuk99!
The problem was I kept saying "yes" when asked to "locate installed compilers", though the correct answer was "no".
The question could be made clearer though.
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now