Mailing List gnuports@2rosenthals.com Archived Message #4

Fra: "Paul Smedley" <gnuports@2rosenthals.com> Full Headers
Undecoded message
Emne: Re: [GNU Ports] _beginthread not declared
Dato: Sun, 10 May 2020 18:19:13 +0930
Til: 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

Abboner: Feed, Digest, Index.
Stopp abbonement
E-post til ListMaster