Gönderim Listesi gnuports@2rosenthals.com Ar?vli ?leti #4

Gönderen: "Paul Smedley" <gnuports@2rosenthals.com> Tam Ba?l?klar
Çözülmemi? ?leti
Konu: Re: [GNU Ports] _beginthread not declared
Tarih: Sun, 10 May 2020 18:19:13 +0930
Alacak: 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

Abone ol: Bildirim, Derleme, Fihrist.
Abonelikten ç?k
Liste Sorumlusuna Postala