Archivovaná správa #4 diskusnej skupiny gnuports@2rosenthals.com

Od: "Paul Smedley" <gnuports@2rosenthals.com> Celá hlavi?ka
Nedekódovaná správa
Hlavi?ka: Re: [GNU Ports] _beginthread not declared
Dátum: Sun, 10 May 2020 18:19:13 +0930
Komu: GNU Ports for eCS Mailing List <gnuports@2rosenthals.com>

Hi guys,

On 10/5/20 2:59 pm, Dave Yeo wrote:
On 05/09/20 09:20 PM, Steven Levine wrote:
A quick look at stdlib.h indicates that the _beginthread declaration is
controlled by:

#if (!defined (__STRICT_ANSI__) && !defined (_POSIX_SOURCE)) || defined
(_WITH_UNDERSCORE) || defined(__USE_EMX)

Is it possible one of these #defines is missing?

Quite possible, but attempts as setting various ones has just resulted in an earlier error. I'm probably just missing something simple.


There are also lots of related warnings like
These are all side effects of the implicit declaration of _beginthread.

Yet these turn into a fatal error if I declare __USE_EMX or such.

I remember a similar problem years ago with one port (I forget which).

I worked around it by adding the definition for _beginthread in the .c file that needed it.

A hack? Yes
Effective? Also yet :)

Cheers,

Paul

Prihlási?: Nap??a?, Súhrn, Index.
Odhlási?
Mail na ListMastera