Re: error while using migw/msys for ibsimu

"MANJEET N/A" <[email protected]> Fri, 3 Jul 2020 00:43:18 +0530
Newsgroups gmane.comp.gnu.mingw.user
Message-ID <CAGzdXa22=68jRcmiK2izXXwo+oP0pBq39dGUeA4k3oR4SFyw-Q@mail.gmail.com>
Thanks for your guidance. I will try that.

MANJEET

On Fri, Jul 3, 2020 at 12:40 AM Eli Zaretskii <eliz-mXXj517/[email protected]> wrote:

> > From: "MANJEET N/A" <[email protected]>
> > Date: Fri, 3 Jul 2020 00:28:52 +0530
> >
> > In file included from C:/msys/1.0/home/manje/include/pthread.h:288,
> >                  from geometry.hpp:48,
> >                  from epot_field.hpp:47,
> >                  from epot_field.cpp:44:
> > C:/msys/1.0/home/manje/include/sched.h:152:47: warning: 'cdecl'
> attribute only applies to function types
> > [-Wattributes]
> >   152 | PTW32_DLLPORT int __cdecl sched_setscheduler (pid_t pid, int
> policy);
> >       |                                               ^~~~~
> > C:/msys/1.0/home/manje/include/sched.h:152:27: error: definition of 'int
> sched_setscheduler' is marked
> > 'dllimport'
> >   152 | PTW32_DLLPORT int __cdecl sched_setscheduler (pid_t pid, int
> policy);
> >       |                           ^~~~~~~~~~~~~~~~~~
> > C:/msys/1.0/home/manje/include/sched.h:152:47: error: 'pid_t' was not
> declared in this scope
> >   152 | PTW32_DLLPORT int __cdecl sched_setscheduler (pid_t pid, int
> policy);
> >       |                                               ^~~~~
> > C:/msys/1.0/home/manje/include/sched.h:152:58: error: expected
> primary-expression before 'int'
> >   152 | PTW32_DLLPORT int __cdecl sched_setscheduler (pid_t pid, int
> policy);
>
> Sounds like there's some #define that makes sched_setscheduler look
> like something very different to the compiler?  I suggest to run your
> source through "gcc -E" to obtain a preprocessed source, then look at
> what this line 152 looks like after preprocessing.
>
> _______________________________________________
> MinGW-Users mailing list
> [email protected]
>
> This list observes the Etiquette found at
> http://www.mingw.org/Mailing_Lists.
> We ask that you be polite and do the same.  Disregard for the list
> etiquette may cause your account to be moderated.
>
> _______________________________________________
> You may change your MinGW Account Options or unsubscribe at:
> https://lists.osdn.me/mailman/listinfo/mingw-users
> Also: mailto:[email protected]?subject=unsubscribe

_______________________________________________
MinGW-Users mailing list
[email protected]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.osdn.me/mailman/listinfo/mingw-users
Also: mailto:[email protected]?subject=unsubscribe