Quoting Andrew Pinski <[EMAIL PROTECTED]>:

> 
> On Jul 7, 2005, at 1:04 AM, [EMAIL PROTECTED] wrote:
> 
> > [EMAIL PROTECTED] read_input]# gcc main.m read_input.m -lobjc -lm
> > /usr/bin/ld: warning: type and size of dynamic symbol 
> > `__objc_class_name_Object'
> > are not defined
> > /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../libobjc.so: 
> > undefined
> > reference to `xmalloc'
> > /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../libobjc.so: 
> > undefined
> > reference to `xfree'
> > /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../libobjc.so: 
> > undefined
> > reference to `xmalloc_atomic'
> > /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../libobjc.so: 
> > undefined
> > reference to `xcalloc'
> > /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../libobjc.so: 
> > undefined
> > reference to `xrealloc'
> > collect2: ld returned 1 exit status
> 
> Huh? xmalloc is not in libobjc in any version of GCC I could find.
> This looks like a bug in your installation of GCC.
> 
> -- Pinski
> 
> 


I solved my privious problem but now I have another one:

When I try to run my code (after compilation with gcc), I'm getting:

./a.out: error while loading shared libraries: libobjc.so.1: cannot open shared
object file: No such file or directory

And this is the last part of the output after Testing the instalation on gcc:

Finalized 6609/6609 objects - finalization is probably ok
Total number of bytes allocated is 306393376
Final heap size is 9592832 bytes
Collector appears to work
Completed 531 collections
PASS: gctest
==================
All 1 tests passed
==================
make[3]: Leaving directory `/home/gcc/i686-pc-linux-gnu/boehm-gc'
make[2]: Leaving directory `/home/gcc/i686-pc-linux-gnu/boehm-gc'
make[1]: Leaving directory `/home/gcc/i686-pc-linux-gnu/boehm-gc'
make: Target `check' not remade because of errors.

I'll appreciate your help??

Thank you,

Alex

Reply via email to