delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/03/21/08:09:35

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Wed, 21 Mar 2012 08:09:10 -0400
Message-ID: <CABn7SNYhKrHBOZj3oGChBoFkRD1VJ7L1GbaiYvto4no-SjL0tw@mail.gmail.com>
Subject: aplus-fsf (XWarpPointer)
From: Tom Szczesny <tavmem AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

My current stumbling block:
When compiling  aplus-fsf-4.22/src/main/aplus_main.c
I get many errors related to X11.

case in point:
undefined reference to '_XWarpPointer' in AGIF.o

aplus-fsf-4.22/src/AplusGUI/AGIF.C
does use XWarpPointer:

static I warpPointer(MSWidgetView *pWidgetView_)
{
  if (pWidgetView_!=0 && pWidgetView_->mapped()==MSTrue)
    {
      XWarpPointer(pWidgetView_->display(),None,pWidgetView_->window(),0,0,0,0,0,0);
      return 0;
    }
  else
    {
      return -1;
    }
}

but AGIF.C also contains the statement     #include <X11/Xlib.h>  .
include/X11/Xlib.h does appear to define XWarpPointer:

extern int XWarpPointer(
    Display*            /* display */,
    Window              /* src_w */,
    Window              /* dest_w */,
    int                 /* src_x */,
    int                 /* src_y */,
    unsigned int        /* src_width */,
    unsigned int        /* src_height */,
    int                 /* dest_x */,
    int                 /* dest_y */
);

Any ideas why _XWarpPointer is considered undefined
when compiling aplus-fsf-4.22/src/main/aplus_main.c  ?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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