Fatal Error in running SNOPT with MATLAB

80 views
Skip to first unread message

yavin

unread,
Mar 31, 2015, 11:39:15 AM3/31/15
to sn...@googlegroups.com
when I ran 'runAllExamples.m' in matlab,a fatal error occured.
The message tag is 'Microsoft Visual C++ Debug Library',and the content id:

Program: D:\Program Files\MATLAB\R2010b\bin\win64\MATLAB.exe
File: fgetc.c
Line:41

Expresssion: (stream != NULL)

For information on hou your program can cause an assertion failure, see the Visual C++ documentation on asserts.

(Press Retry to debug the application)

I don't how to solve this problem. it's tiresome,so give me some help.
Think you !

Elizabeth Wong

unread,
Mar 31, 2015, 12:57:16 PM3/31/15
to sn...@googlegroups.com
Hi,

I'm not sure what is causing the error.  None of our routines call fgetc so it's difficult for me to pinpoint a cause.  Which version of SNOPT are you using?

--Elizabeth

Elizabeth Wong

unread,
Mar 31, 2015, 1:01:55 PM3/31/15
to sn...@googlegroups.com
I just checked records and you downloaded the 32-bit Matlab Windows version of SNOPT.  I think you need the 64-bit version as you appear to be using 64-bit Matlab ("D:\Program Files\MATLAB\R2010b\bin\win64\MATLAB.exe")

Try downloading the 64-bit version.  Hopefully that will fix your issue.

--Elizabeth

--
You received this message because you are subscribed to the Google Groups "SNOPT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to snopt+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted

刘云飞

unread,
Apr 1, 2015, 10:17:59 AM4/1/15
to sn...@googlegroups.com
Hi,
thanks for your help.
 I use the SNOPT 7.2. 
It's not the error in SNOPT , because it work well in the other computers. i have a question whether  some other compiler need to be install in the computer,except for Matlab, for example, VS or fortran.

在 2015年4月1日星期三 UTC+8上午12:57:16,Elizabeth Wong写道:

Elizabeth Wong

unread,
Apr 1, 2015, 9:47:45 PM4/1/15
to 刘云飞, sn...@googlegroups.com

You need a Fortran compiler to compile the SNOPT library, and a C/C++ compiler if you are also planning on compiling the C/C++ interface.

On Windows,  you can get a Fortran compiler from Intel.  Otherwise you'll have to go the MinGW/Cygwin root.

--
Reply all
Reply to author
Forward
0 new messages