I found using libraries generated by MinGW with Visual C++ will crash in some cases.
For example, this small program:
~~~~~~~~~~~~~~~~~~~~~~~t.h~~~~~~~~~~~~~~~~~~~
typedef struct
{
double x[2];
} s;
s t();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~t.c~~~~~~~~~~~~~~~~~~~
#include "t.h"
s t()
{
s s1;
return s1;
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~main.c~~~~~~~~~~~~~~~~
#include "t.h"
int main()
{
t();
return 0;
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
First, compiling t.c to a library by MinGW:
gcc t.c -c ar r t.a t.o cp t.a t.lib
And compiling main.c and link to t.lib by Visual C++ 6.0 (I also tried Visual C++ 2008) in debug mode.
Finally, ran it. There displays an error message:
- For Visual C++ 6.0: http://p8.p.pixnet.net/albums/userpics/8/3/553683/1218663747.png
- For Visual C++ 2008: http://p8.p.pixnet.net/albums/userpics/8/3/553683/1218663750.png
Is this a MinGW's bug?
Shouldn't I use the libraries generated by MinGW with Visual C++ compilers?


Re: Can't using libraries generted by MinGW
I don't know the answer to your questions but I would like to know if there is another mean of communicating than this fuc... wiki.
It's really not user friendly ...
I would like to bring my contribution to mingw but this wiki doesn help.
First question : Is there an official mailing list and how can I subscribe ?
If mingw needs some funds I am ready to give in order to improve collaboration ...
A standard forum is far better than this wiki ...
Wiki are not appropriate to ask questions ....
Re: Can't using libraries generted by MinGW
Mailing lists here: http://www.mingw.org/mailing_lists
You are of course welcome to join mingw-users for these types of discussion.
Re: Can't using libraries generted by MinGW with Visual C++ ...
I sorry I shouldn't create this page to ask a problem.
I don't know how to delete it.
Re: Can't using libraries generted by MinGW with Visual C++ ...
The delete button is at the bottom of the "edit" page.