I've reduced this issue to, with Visual Studio 2005, in Release mode:
- Create a new Windows Forms app
- Change to /CLR
Check that the default Form1 runs
- Add one static library (which itself is linked with BLAS.lib, clapack.lib, libf2c.lib)
Then I compile and link and get
error LNK2019: unresolved external symbol MAIN_ referenced in function _main
If I remove
[STAThreadAttribute] int main(array ^args) { ... }
and replace with
int main() { ... }
it compiles and links and runs Form1 from a console
Any idea how to fix this?
Thanks, Daniel