Lista de correo gnuports@2rosenthals.com Mensaje #4
De: "Paul Smedley" <gnuports@2rosenthals.com> Encabezados Completos
Mensaje no decodificado
Asunto: Re: [GNU Ports] _beginthread not declared
Fecha: Sun, 10 May 2020 18:19:13 +0930
Para: 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
Subscribirse en modo directo (FEED) Subscribirse en modo resumen (DIGEST) Subscribirse en modo índice (INDEX) Desubscribirse E-mail al Listmaster