[Bug objc/12034] New: Objective-C linking problem

v dot haisman at sh dot cvut dot cz gcc-bugzilla@gcc.gnu.org
Fri Aug 22 20:19:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12034

           Summary: Objective-C linking problem
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: objc
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: v dot haisman at sh dot cvut dot cz
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-cygwin
  GCC host triplet: i686-pc-cygwin
GCC target triplet: i686-pc-cygwin

GCC can't find libobjc.a. It seems to be because it searches in
/usr/local/lib/gcc instead of /usr/local/lib/gcc-lib where libobjc is installed
by make install.

wilx@amber2 /C/WilX/objc
$ gcc-34 -v -o main.exe main.o List.o -lobjc
Reading specs from /usr/local/lib/gcc/i686-pc-cygwin/3.4/specs
Configured with: ../srcdir/configure --enable-threads=posix --enable-languages=c
,c++,objc --enable-dwarf2 --program-suffix=-34 --without-included-gettext --enab
le-version-specific-runtime-libs --enable-nls --with-arch=athlon --with-cpu=athl
on --disable-libstdcxx-pch --enable-intermodule --enable-objc-gc : (reconfigured
)
Thread model: posix
gcc version 3.4 20030821 (experimental)
 /usr/local/libexec/gcc/i686-pc-cygwin/3.4/collect2.exe -Bdynamic --dll-search-p
refix=cyg -o main.exe /lib/crt0.o -L/usr/local/lib/gcc/i686-pc-cygwin/3.4 -L/usr
/local/lib/gcc/i686-pc-cygwin/3.4/../../../../i686-pc-cygwin/lib -L/usr/local/li
b/gcc/i686-pc-cygwin/3.4/../../.. main.o List.o -lobjc -lgcc -lcygwin -luser32 -
lkernel32 -ladvapi32 -lshell32 -lgcc
/usr/local/lib/gcc/i686-pc-cygwin/3.4/../../../../i686-pc-cygwin/bin/ld: cannot
find -lobjc
collect2: ld returned 1 exit status



More information about the Gcc-bugs mailing list