Problem with MinGW Runtime 3.15.1 and GCC 4.3.0

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with MinGW Runtime 3.15.1 and GCC 4.3.0

Allann Jones
I'm having problems with MinGW Runtime 3.15.1 and GCC 4.3.0:

c:\mingw\bin\../lib/gcc/
mingw32/4.3.0/../../../../include/wchar.h:489: error: expected constructor, destructor, or type conversion before '_wexecl'
c:\mingw\bin\../lib/gcc/mingw32/4.3.0/../../../../include/wchar.h:490: error: expected constructor, destructor, or type conversion before '_wexecle'
c:\mingw\bin\../lib/gcc/mingw32/4.3.0/../../../../include/wchar.h:491: error: expected constructor, destructor, or type conversion before '_wexeclp'
c:\mingw\bin\../lib/gcc/mingw32/4.3.0/../../../../include/wchar.h:492: error: expected constructor, destructor, or type conversion before '_wexeclpe'
c:\mingw\bin\../lib/gcc/mingw32/4.3.0/../../../../include/wchar.h:493: error: expected constructor, destructor, or type conversion before '_wexecv'
c:\mingw\bin\../lib/gcc/mingw32/4.3.0/../../../../include/wchar.h:494: error: expected constructor, destructor, or type conversion before '_wexecve'
c:\mingw\bin\../lib/gcc/mingw32/4.3.0/../../../../include/wchar.h:495: error: expected constructor, destructor, or type conversion before '_wexecvp'
c:\mingw\bin\../lib/gcc/mingw32/4.3.0/../../../../include/wchar.h:496: error: expected constructor, destructor, or type conversion before '_wexecvpe'
c:\mingw\bin\../lib/gcc/mingw32/4.3.0/../../../../include/wchar.h:498: error: expected constructor, destructor, or type conversion before '_wspawnl'
c:\mingw\bin\../lib/gcc/mingw32/4.3.0/../../../../include/wchar.h:499: error: expected constructor, destructor, or type conversion before '_wspawnle'
c:\mingw\bin\../lib/gcc/mingw32/4.3.0/../../../../include/wchar.h:500: error: expected constructor, destructor, or type conversion before '_wspawnlp'
c:\mingw\bin\../lib/gcc/mingw32/4.3.0/../../../../include/wchar.h:501: error: expected constructor, destructor, or type conversion before '_wspawnlpe'
c:\mingw\bin\../lib/gcc/mingw32/4.3.0/../../../../include/wchar.h:502: error: expected constructor, destructor, or type conversion before '_wspawnv'
c:\mingw\bin\../lib/gcc/mingw32/4.3.0/../../../../include/wchar.h:503: error: expected constructor, destructor, or type conversion before '_wspawnve'
c:\mingw\bin\../lib/gcc/mingw32/4.3.0/../../../../include/wchar.h:504: error: expected constructor, destructor, or type conversion before '_wspawnvp'
c:\mingw\bin\../lib/gcc/mingw32/4.3.0/../../../../include/wchar.h:505: error: expected constructor, destructor, or type conversion before '_wspawnvpe'

Thank you.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Reply | Threaded
Open this post in threaded view
|

Re: Problem with MinGW Runtime 3.15.1 and GCC 4.3.0

Keith Marshall
On Thursday 23 October 2008 01:59:59 Allann Jones wrote:
> I'm having problems with MinGW Runtime 3.15.1 and GCC 4.3.0:

Minimal, self-contained test case, please.

Regards,
Keith.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Reply | Threaded
Open this post in threaded view
|

Re: Problem with MinGW Runtime 3.15.1 and GCC 4.3.0

Allann Jones
I'm using wxWidgets 2.8.9 with MinGW Runtime 3.15.1, w32api-3.12 and GCC 4.3.0 in MS Windows XP SP2. The problem doesn't occur with version 3.14.
I've solved the problem as follow. I don't if it is a very good solution but it works for me.

With MinGW Runtime 3.15.1 the problem begins in line 489 that is where 'stdint.h' is included and continues through 'intptr_t' declarations:

#ifndef _WPROCESS_DEFINED  /* also declared in process.h */
#include <stdint.h>  /* For intptr_t.  */
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexecl    (const wchar_t*, const wchar_t*, ...);
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexecle    (const wchar_t*, const wchar_t*, ...);
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexeclp    (const wchar_t*, const wchar_t*, ...);
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexeclpe    (const wchar_t*, const wchar_t*, ...);
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexecv    (const wchar_t*, const wchar_t* const*);
...

My solution:

Step 1 of 2:
I removed the line:
#include <stdint.h>  /* For intptr_t.  */

Step 2 of 2:
I replace 'intptr_t' with 'int' as the MinGW Runtime 3.14 implements.
This is generating some problem that I can't recognize at this moment.

This works for me.

Follows the patch file.

Thank you.


On Thu, Oct 23, 2008 at 3:15 AM, Keith Marshall <[hidden email]> wrote:
On Thursday 23 October 2008 01:59:59 Allann Jones wrote:
> I'm having problems with MinGW Runtime 3.15.1 and GCC 4.3.0:

Minimal, self-contained test case, please.

Regards,
Keith.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

wchar-3.15.1.patch (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Problem with MinGW Runtime 3.15.1 and GCC 4.3.0

Allann Jones
In reply to this post by Keith Marshall
I'm using wxWidgets 2.8.9 with MinGW Runtime 3.15.1, w32api-3.12 and
GCC 4.3.0 in MS Windows XP SP2. The problem doesn't occur with version
3.14.
I've solved the problem as follow. I don't if it is a very good
solution but it works for me.

With MinGW Runtime 3.15.1 the problem begins in line 489 that is where
'stdint.h' is included and continues through 'intptr_t' declarations:

#ifndef _WPROCESS_DEFINED  /* also declared in process.h */
#include <stdint.h>  /* For intptr_t.  */
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexecl    (const wchar_t*,
const wchar_t*, ...);
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexecle    (const wchar_t*,
const wchar_t*, ...);
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexeclp    (const wchar_t*,
const wchar_t*, ...);
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexeclpe    (const wchar_t*,
const wchar_t*, ...);
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexecv    (const wchar_t*,
const wchar_t* const*);
...

My solution:

Step 1 of 2:
I removed the line:
#include <stdint.h>  /* For intptr_t.  */

Step 2 of 2:
I replace 'intptr_t' with 'int' as the MinGW Runtime 3.14 implements.
This is generating some problem that I can't recognize at this moment.

This works for me.

Follows the patch file.

Thank you.


--
_______________________________
Allann J. O. Silva

"I received the fundamentals of my education in school, but that was
not enough. My real education, the superstructure, the details, the
true architecture, I got out of the public library. For an
impoverished child whose family could not afford to buy books, the
library was the open door to wonder and achievement, and I can never
be sufficiently grateful that I had the wit to charge through that
door and make the most of it." (from I. Asimov, 1994)

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

wchar-3.15.1.patch (4K) Download Attachment