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

Back to archive index
Keith Marshall keith****@users*****
Fri Jul 3 07:07:13 JST 2020


On 02/07/2020 19:58, MANJEET N/A wrote:
> Hello, I downloaded the mingw/msys.and I want to use ibsimu so I
> downloaded the ibsimu and extracted it to a direction as per given
> instruction but when I tried the make command for ibsimu it shows
> following error
> 
> 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);
>       |                                               ^~~~~

From whence did you obtain your pthreads implementation?  Compared to
the version which we distribute, that declaration looks mostly correct,
but differs from what I see, at <sched.h> line 171:

/* FIXME: this declaration of sched_setscheduler() is NOT as prescribed
 * by POSIX; it lacks const struct sched_param * as third argument.
 */
__PTW32_DECLSPEC int sched_setscheduler (pid_t, int);

-- 
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.osdn.me/mailman/archives/mingw-users/attachments/20200702/69d3bb46/attachment-0001.sig>


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