delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/29/11:39:46

Date: Mon, 29 Jan 1996 18:26:22 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Jan Oonk <jan AT stack DOT urc DOT tue DOT nl>
Cc: djgpp AT delorie DOT com
Subject: Re: Issues with nearptr's.

On 29 Jan 1996, Jan Oonk wrote:

> I tried the nearptr example!
> 
> I got an compile-error:
> crt0_flag_nonmove_sbrk not declared or something
> 
> it's not defined anywhere... i looked everywhere.. 
> i am using djgpp v2 b4   gcc 2.7.1

That ``everywhere'' probably doesn't include the library docs, because 
these flags are described there, on the `_crt0_startup_flags' page.  You 
should say something like this in your program:

#include <crt0.h>
int _crt0_startup_flags = _CRT0_FLAG_NONMOVE_SBRK;

Then you can use the `_djgpp_nearptr_enable' function (also described in 
the library docs).

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019