During link: Cannot find libgcc.a - Please help me

During link: Cannot find libgcc.a - Please help me

Post by Ulrich-W. Kaestne » Thu, 11 Nov 1999 04:00:00



                  Can somebody please help me with the following
                  problem ?

                  I use the gnu compiler egcs 2.91.60

                  During linking with the following command ...

                  gcc my.o -bI:$TOFF_SOURCE/MEMPISHR.exp -lbsd

                  ... I get the following error message:

                  ld: 0706-005 Cannot find or open file: libgcc.a
                  ld:open(): A file or directory in the path name
                              does not exist.

                  Several versions of the named file exist in the
                  filesystem ! Do I have to define some environment
                  variables (additional to the smit-installation of
                  the compiler) ?

                  Best regards,
                  Ulrich

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

During link: Cannot find libgcc.a - Please help me

Post by Gary R. Hoo » Fri, 12 Nov 1999 04:00:00



>                   Can somebody please help me with the following
>                   problem ?

>                   I use the gnu compiler egcs 2.91.60

>                   During linking with the following command ...

>                   gcc my.o -bI:$TOFF_SOURCE/MEMPISHR.exp -lbsd

>                   ... I get the following error message:

>                   ld: 0706-005 Cannot find or open file: libgcc.a
>                   ld:open(): A file or directory in the path name
>                               does not exist.

>                   Several versions of the named file exist in the
>                   filesystem ! Do I have to define some environment
>                   variables (additional to the smit-installation of
>                   the compiler) ?

Exist where?  In /usr/lib?  Or somewhere else?  You may want/need to
use the -L option to have ld search in the appropriate location for
libgcc.a

--
Gary R. Hook / AIX Kernel Development, IBM / These opinions are _MINE_
________________________________________________________________________
A piece of canvas is only the beginning
It takes on character with every loving stroke
This thing of beauty is the passion of an artist's heart
By God's design, we are a skin kaleidoscope    "Colored people", dc Talk

 
 
 

During link: Cannot find libgcc.a - Please help me

Post by Ulrich-W. Kaestne » Tue, 16 Nov 1999 04:00:00





> >                   Can somebody please help me with the following
> >                   problem ?

> >                   I use the gnu compiler egcs 2.91.60

> >                   During linking with the following command ...

> >                   gcc my.o -bI:$TOFF_SOURCE/MEMPISHR.exp -lbsd

> >                   ... I get the following error message:

> >                   ld: 0706-005 Cannot find or open file: libgcc.a
> >                   ld:open(): A file or directory in the path name
> >                               does not exist.

> >                   Several versions of the named file exist in the
> >                   filesystem ! Do I have to define some environment
> >                   variables (additional to the smit-installation of
> >                   the compiler) ?

> Exist where?  In /usr/lib?  Or somewhere else?  You may want/need to
> use the -L option to have ld search in the appropriate location for
> libgcc.a

> --
> Gary R. Hook / AIX Kernel Development, IBM / These opinions are _MINE_

One version of the file exists here:
/usr/local/lib/gcc-lib/powerpc-ibm-aix4.1.5.0/egcs-2.91.60

Different other versions in the sub directories
.../power   .../powerpc  and .../soft-float

Because I read your answer too late, I copied the file from
/usr/local/lib/gcc-lib/powerpc-ibm-aix4.1.5.0/egcs-2.91.60
to
/lib
The error message doesnt  appear any longer.

Thanks and best regards,
Ulrich

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

During link: Cannot find libgcc.a - Please help me

Post by Gary R. Hoo » Wed, 17 Nov 1999 04:00:00






> > >                   Several versions of the named file exist in the
> > >                   filesystem ! Do I have to define some environment
> > >                   variables (additional to the smit-installation of
> > >                   the compiler) ?

> > Exist where?  In /usr/lib?  Or somewhere else?  You may want/need to
> > use the -L option to have ld search in the appropriate location for
> > libgcc.a

> One version of the file exists here:
> /usr/local/lib/gcc-lib/powerpc-ibm-aix4.1.5.0/egcs-2.91.60

> Different other versions in the sub directories
> .../power   .../powerpc  and .../soft-float

> Because I read your answer too late, I copied the file from
> /usr/local/lib/gcc-lib/powerpc-ibm-aix4.1.5.0/egcs-2.91.60
> to
> /lib
> The error message doesnt  appear any longer.

Well, there you go.  The binder only looks in the standard places:
/usr/lib and /lib.  Any other directory will require the use
of the -L option to point to that location.

--
Gary R. Hook / AIX Kernel Development, IBM / These opinions are _MINE_
________________________________________________________________________
A piece of canvas is only the beginning
It takes on character with every loving stroke
This thing of beauty is the passion of an artist's heart
By God's design, we are a skin kaleidoscope    "Colored people", dc Talk

 
 
 

During link: Cannot find libgcc.a - Please help me

Post by Ulrich-W. Kaestne » Thu, 18 Nov 1999 04:00:00



<SNIP>

Quote:> > One version of the file exists here:
> > /usr/local/lib/gcc-lib/powerpc-ibm-aix4.1.5.0/egcs-2.91.60

> > Different other versions in the sub directories
> > .../power   .../powerpc  and .../soft-float

> > Because I read your answer too late, I copied the file from
> > /usr/local/lib/gcc-lib/powerpc-ibm-aix4.1.5.0/egcs-2.91.60
> > to
> > /lib
> > The error message doesnt  appear any longer.

> Well, there you go.  The binder only looks in the standard places:
> /usr/lib and /lib.  Any other directory will require the use
> of the -L option to point to that location.

> --
> Gary R. Hook / AIX Kernel Development, IBM / These opinions are _MINE_

Good to know this - thanks.

There is a second question concerning libraries:

I want to use the C-function pow() (prototyp in math.h).
Please tell me, which library to include (with the -L option) in order
to resolve the reference.

The binder-error is
ld: 0711-317 ERROR: undefined symbol: .pow

Bye,
Ulrich-W. K?stner

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

During link: Cannot find libgcc.a - Please help me

Post by David Edelsoh » Thu, 18 Nov 1999 04:00:00


Quote:>>>>> Ulrich-W Kaestner writes:

Ulrich> I want to use the C-function pow() (prototyp in math.h).
Ulrich> Please tell me, which library to include (with the -L option) in order
Ulrich> to resolve the reference.

Ulrich> The binder-error is
Ulrich> ld: 0711-317 ERROR: undefined symbol: .pow

        To use math functions, one must link with the math library which
is not done by default.  Use -lm on the link line.

David

 
 
 

During link: Cannot find libgcc.a - Please help me

Post by Ulrich-W. Kaestne » Fri, 19 Nov 1999 04:00:00




Quote:> >>>>> Ulrich-W Kaestner writes:

> Ulrich> I want to use the C-function pow() (prototyp in math.h).
> Ulrich> Please tell me, which library to include (with the -L option)
in order
> Ulrich> to resolve the reference.

> Ulrich> The binder-error is
> Ulrich> ld: 0711-317 ERROR: undefined symbol: .pow

>    To use math functions, one must link with the math library which
> is not done by default.  Use -lm on the link line.

> David

Thanks - this works.

Ulrich

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

1. During link: cannot find libgcc.a - Please help me (2)

Can somebody please help me with the following problem ?

I use the gnu compiler egcs 2.91.60

During linking with the following command ...

gcc my.o -bI:$TOFF_SOURCE/MEMPISHR.exp -lbsd

... I get the following error message:

ld: 0706-005 Cannot find or open file: libgcc.a
 ld:open(): A file or directory in the path name
            does not exist.

Several versions of the named file exist in the filesystem ! Do I have
to define some environment variables (additional to the
smit-installation of the compiler) ?

Best regards,
Ulrich

Please excuse this repeated posting - but it is important for me, to fix
this problem. The program, I want to link, should simplify my daily
work.

Sent via Deja.com http://www.deja.com/
Before you buy.

2. several IP addresses and Internet names on the same Linux machine

3. gcc-2.7.2.2: cannot find "libgcc.a"

4. Help: Shared Memory!!

5. find: cannot follow symbolic link sym-link

6. Benchmarks on Windows Registry

7. Question about libgcc.sa and libgcc.a

8. redirect

9. cannot detect D-Link DE220 ethernet card - please help

10. KDE cannot find libqti18n.so.3, Please Help

11. cannot find /dev/lp!!!!! help me, please!!

12. cannot find default fonts! please help

13. /usr/bin/ld: cannot find -lusb error help please?????