Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 (i386-*-nt5.0.2195) (i386-*-nt5.0.2195) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 #include #include 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/