Date: Thu, 13 Apr 1995 10:06:10 +0900 From: Stephen Turnbull To: steve AT acadcomp DOT sil DOT org Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: #import does not work? TWIMC, there. Since the program compiles fine on SunOS but not on MS-DOS with the exact same version of gcc on both platforms, I assume this must be a DJGPP specific bug. :-( Well, it's worth asking, but it could also be big/little-endian, etc (in general; of course this looks unlikely for your problem). I've recently started playing with Objective C, using the GNU implementation "Recently started" sounds more like a configuration problem than a bug. Do you have GCC_OBJ_INCLUDE set in your environment (including the DJGPP.ENV file)? The different include directories need to be set properly for the different language variants. (I may not have that name right, so read the docs first.) Also libraries, I think you need to link in the Objective-C support explicitly, etc etc. bundled with gcc. The sample program provided as part of the FAQ for comp.lang.objective-c failed to compile with DJGPP until I replaced every #import with #include. The same program compiles fine with gcc 2.6.3 on our I think I saw #import mentioned as a source of known problems in the GCC info file. I didn't read that node so don't know what, and won't have time to look for a couple days (I can't read just one Info file, got to go on to the second, third, ... ;-) Hope this helps. -- Stephen Turnbull / Yaseppochi-gumi / http://turnbull.sk.tsukuba.ac.jp/ anon FTP: turnbull.sk.tsukuba.ac.jp Check out Kansai-WWW, too ------------> http://pclsp2.kuicr.kyoto-u.ac.jp/