[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: error compiling core/gui
From: |
Ted Stern |
Subject: |
Re: error compiling core/gui |
Date: |
Thu, 25 Jul 2002 13:15:49 -0700 |
User-agent: |
Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (sparc-sun-solaris2.8) |
On Thu, 25 Jul 2002, Chris B. Vetter wrote:
> On Thu, 25 Jul 2002 11:09:47 -0700
> Ted Stern <stern@cray.com> wrote:
>> I'm compiling on sparc-sun-solaris2.8 using gcc-3.1 and get the following
>> error in the Source directory under core/gui:
>> Compiling file NSPrintInfo.m ...
>> NSPrintInfo.m: In function `+[NSPrintInfo initPrintInfoDefaults]':
>> NSPrintInfo.m:388: parse error before "path"
>> make[2]: *** [shared_obj/sparc/solaris2.8/gnu-gnu-gnu/NSPrintInfo.o] Error
>> 1 make[1]: *** [libgnustep-gui.all.library.variables] Error 2
>> make[1]: Leaving directory
>> `/home/users/stern/opt/src/gnustep/core/gui/Source' make: ***
>> [internal-all] Error 2
>> Any ideas?
>
> #ifdef GNUSTEP_BASE_LIBRARY
> path = [NSBundle pathForGNUstepResource: @"PrintDefaults"
> ofType: nil
> inDirectory: @"PrinterAdmin"];
> #else
> NSBundle *adminBundle;
>
> adminBundle = [NSBundle bundleWithPath: @GNUSTEP_INSTALL_LIBDIR]
> path = [adminBundle pathForResource: @"PrintDefaults"
> ofType: nil
> inDirectory: @"PrinterAdmin"];
> #endif
>
> Obviously, there's a semi-colon missing in 'adminBundle = [...]'
Yes, Andrew Fedor noted that also. What is interesting is that
GNUSTEP_BASE_LIBRARY isn't defined.
Tangentially, developers should really consider the following article:
http://www.visi.com/~barr/ldpath.html
It would be best to have completely explicit -L and -R flags in your link
flags, rather than relying on LD_LIBRARY_PATH.
Ted
--
Ted Stern Engineering Applications
Cray Inc. http://www.cray.com
411 First Avenue South, Suite 600 206-701-2182
Seattle, WA 98104-2860 FAX: 206-701-2500
Debuggers' motto: Frango ut patefacium -- I break in order to reveal