gcc -mno-cygwin fail -- undefined reference to `_impure_ptr'
Jari Aalto+mail.emacs
jari.aalto@poboxes.com
Wed Dec 12 06:24:00 GMT 2001
[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@W2KPICASSO /usr/src/cvs-source/emacs/nt $ ld -v
GNU ld version 2.11.92 20011001
//root@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@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/
More information about the Cygwin
mailing list