This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc -mno-cygwin fail -- undefined reference to `_impure_ptr'


    
    [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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]