delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
From: | jari DOT aalto AT poboxes DOT com (Jari Aalto+mail.emacs) |
To: | cygwin AT sourceware DOT cygnus DOT com |
CC: | jari DOT aalto AT poboxes DOT com |
Subject: | gcc -mno-cygwin fail -- undefined reference to `_impure_ptr' |
Keywords: | usr,gcc,w2kpicasso,tmp,src,root,emacs,cvs-source |
X-Sender-Info: | Emacs resources http://tiny-tools.sourceforge.net/ |
http://home.eu.org/~jari/homepage.html. ICQ 'jari-aalto' 82313129 | |
PGP 2.6.x keyid 47141D35 http://www.pgpi.net/ | |
Date: | Wed, 12 Dec 2001 07:29:58 +0200 |
Message-ID: | <pu5l57l5.fsf@blue.sea.net> |
User-Agent: | Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 (i386-*-nt5.0.2195) |
(i386-*-nt5.0.2195) | |
MIME-Version: | 1.0 |
Lines: | 35 |
[Keep CC thank you] Does anyone know why following code fails? Do I need some other libraries or gcc compile options? This is latest Cygwin / W2k Pro / srv.p. 2 Jari ----------------------------------------------------------------------- //root AT W2KPICASSO /usr/src/cvs-source/emacs/nt $ ld -v GNU ld version 2.11.92 20011001 //root AT W2KPICASSO /usr/src/cvs-source/emacs/nt $ gcc -v Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs gcc version 2.95.3-5 (cygwin special) //root AT W2KPICASSO /usr/src/cvs-source/emacs/nt $ gcc -g -mno-cygwin ~/tmp/test2.c /tmp/ccc071ri.o: In function `main': /home/jaalto/tmp/test2.c:12: undefined reference to `_impure_ptr' collect2: ld returned 1 exit status ----------------------------------------------------------------------- #include <stdio.h> #include <stdlib.h> #include <X11/Intrinsic.h> main () { fprintf(stdout, "To stdout\n"); printf("Reading stdin now. Type character: "); } -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |