This is the mail archive of the cygwin@sources.redhat.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]

Problems with GNU Objective-C


Hello,

    I really need to compile my Objective-C program so they don't depend on
Cygwin's DLL. The FAQ talk about -mno-cygwin flag, which works fine with my
C programs but does not with my Objective-C ones.

I've included a sample of the output:

administrateur@MECENIA ~
$ gcc hw.m -lobjc -mwindows -mno-cygwin -o hw.exe
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libobjc.a(archive.o)(.text+0x1c4e):ar
chive.c: undefined reference to `_imp___ctype_'
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libobjc.a(archive.o)(.text+0x25ce):ar
chive.c: undefined reference to `_imp___ctype_'
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libobjc.a(archive.o)(.text+0x2a85):ar
chive.c: undefined reference to `_imp___ctype_'
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libobjc.a(archive.o)(.text+0x3475):ar
chive.c: undefined reference to `_imp___ctype_'
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libobjc.a(misc.o)(.text+0x86):misc.c:
undefined reference to `_impure_ptr'
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libobjc.a(selector.o)(.text+0x264):se
lector.c: undefined reference to `_imp___ctype_'
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libobjc.a(encoding.o)(.text+0x1f9):en
coding.c: undefined reference to `_imp___ctype_'
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libobjc.a(encoding.o)(.text+0x24f):en
coding.c: undefined reference to `_imp___ctype_'
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libobjc.a(encoding.o)(.text+0x542):en
coding.c: undefined reference to `_imp___ctype_'
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libobjc.a(encoding.o)(.text+0x882):en
coding.c: undefined reference to `_imp___ctype_'
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libobjc.a(encoding.o)(.text+0x8b2):en
coding.c: more undefined references to `_imp___ctype_' follow
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libgcc.a(_eprintf.o): In function
`_eprintf':
/cygnus/netrel/src/gcc-2.95.2-2/gcc/libgcc2.c(.text+0x151): undefined
reference to `_impure_ptr'
collect2: ld returned 1 exit status

here's my system informations:

administrateur@MECENIA ~
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/specs
gcc version 2.95.2 19991024 (release-2)

running on Microsoft Windows NT 4.0, SP6a high-encryption.

I don't know what to do, is there any solution or fix?

thanks,
Ian




--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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