Why do I get warnings when compiling FMINCON and LSQNONLIN in a stand-alone application?
Why does FMINCON depend on all these handle graphics functions? Is there anything else I could try to do to reduce the size of the dll?
I was trying to compile two functions which call many other functions including
a) fmincon b) lsqnonlin
I was compiling these functions into a library which I could call from Visual Basic.
I compiled the the two functions (foo1 foo2) using the following syntax:
mcc -W lib:mylib -h -L C -t -T link:lib foo1 foo2
None of the routines make any use of graphics. However, when I compile FMINCON with a -h flag (but NO -B sgl) it gives hundreds of warning messages to the effect that if I call any of these
functions there will be a run time error if I do not include the Graphics Library. There are also many other warning messages.
Best Answer