[Mingw-users] error while using migw/msys for ibsimu

Back to archive index
Eli Zaretskii eliz****@gnu*****
Fri Jul 3 04:10:24 JST 2020


> From: "MANJEET N/A" <manje****@ph*****>
> 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.



More information about the MinGW-Users mailing list
Back to archive index