Can't using libraries generted by MinGW with Visual C++ compilers?

  • strict warning: Non-static method Text_Wiki::singleton() should not be called statically in /var/www/drupal/6.x/sites/www.mingw.org/modules/pearwiki_filter/pearwiki_filter.module on line 475.
  • strict warning: Non-static method Text_Wiki::factory() should not be called statically in /usr/share/php/Text/Wiki.php on line 448.
  • strict warning: Non-static method Text_Wiki::isError() should not be called statically in /usr/share/php/Text/Wiki.php on line 449.
  • strict warning: Declaration of Text_Wiki_Parse_Emphasis::process() should be compatible with Text_Wiki_Parse::process(&$matches) in /usr/share/php/Text/Wiki/Parse/Mediawiki/Emphasis.php on line 0.
  • strict warning: Non-static method Text_Wiki::singleton() should not be called statically in /var/www/drupal/6.x/sites/www.mingw.org/modules/pearwiki_filter/pearwiki_filter.module on line 475.
  • strict warning: Non-static method Text_Wiki::singleton() should not be called statically in /var/www/drupal/6.x/sites/www.mingw.org/modules/pearwiki_filter/pearwiki_filter.module on line 475.
  • strict warning: Non-static method Text_Wiki::singleton() should not be called statically in /var/www/drupal/6.x/sites/www.mingw.org/modules/pearwiki_filter/pearwiki_filter.module on line 475.
  • strict warning: Non-static method Text_Wiki::singleton() should not be called statically in /var/www/drupal/6.x/sites/www.mingw.org/modules/pearwiki_filter/pearwiki_filter.module on line 475.

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:

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.

This wiki is not a forum for discussion of usage issues. Please use the mingw-users@lists.osdn.me list instead. We do not allow creation of comments by anonymous or untrusted users, on any page.
 
Site Status

Site maintenance performed successfully, site online Dec 13th 12:00 AM Eastern.