Thanks for your guidance. I will try that. MANJEET On Fri, Jul 3, 2020 at 12:40 AM Eli Zaretskii <eliz****@gnu*****> wrote: > > 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. > > _______________________________________________ > MinGW-Users mailing list > MinGW****@lists***** > > 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:mingw****@lists*****?subject=unsubscribe -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.osdn.me/mailman/archives/mingw-users/attachments/20200703/d202b478/attachment.html>