delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/05/28/03:30:18

Date: Sun, 28 May 1995 08:57:41 +0300
From: eliz AT is DOT elta DOT co DOT il (Eli Zaretskii)
To: A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk
Subject: Re: accessing conventional memory addresses
Cc: DJGPP AT SUN DOT SOE DOT CLARKSON DOT EDU

> the `extern inline' sequences in djgpp\include\sys\farptr.h made gcc swear
> thus: "t$.cc(.text+0x1c): undefined reference to `_farpokew(unsigned short,
> unsigned long, unsigned short)'", and to get my program to work I had to copy
> djgpp\include\sys\farptr.h into my program, and in that copy delete the
> `extern' words (and delete the `-ns-' functions, which I wasn't using). Then
> my program worked OK.

It appears that the functions on <sys/farptr.h> don't have those ``extern "C" {''
wrappers around them.  I would guess that this is the cause of this problem.

- Raw text -


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