* Problem when compiling
@ 2002-02-26 9:07 samir idrissi
2002-02-26 9:44 ` Craig Rodrigues
2002-02-26 12:52 ` Tim Prince
0 siblings, 2 replies; 11+ messages in thread
From: samir idrissi @ 2002-02-26 9:07 UTC (permalink / raw)
To: gcc
#include <math.h>
...
...
...
RES= pow(X,Y);
...
...
Iget this message
/tmp/cc4REunT.o(.text+0x2ac): undefined reference to `pow'
collect2: ld returned 1 exit status
In the directory /urs/include I have the file math.h.
I have no problem when compliling with g++.
What can I do if I want to complile with gcc ?
Sincerly yours.
_________________________________________________________________
Discutez en ligne avec vos amis, essayez MSN Messenger :
http://messenger.msn.fr/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Problem when compiling
2002-02-26 9:07 Problem when compiling samir idrissi
@ 2002-02-26 9:44 ` Craig Rodrigues
2002-02-26 12:52 ` Tim Prince
1 sibling, 0 replies; 11+ messages in thread
From: Craig Rodrigues @ 2002-02-26 9:44 UTC (permalink / raw)
To: samir idrissi; +Cc: gcc
On Tue, Feb 26, 2002 at 04:56:59PM +0000, samir idrissi wrote:
>
>
> #include <math.h>
>
> Iget this message
> /tmp/cc4REunT.o(.text+0x2ac): undefined reference to `pow'
> collect2: ld returned 1 exit status
Add -lm to link in the math library.
--
Craig Rodrigues
http://www.gis.net/~craigr
rodrigc@attbi.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Problem when compiling
2002-02-26 9:07 Problem when compiling samir idrissi
2002-02-26 9:44 ` Craig Rodrigues
@ 2002-02-26 12:52 ` Tim Prince
1 sibling, 0 replies; 11+ messages in thread
From: Tim Prince @ 2002-02-26 12:52 UTC (permalink / raw)
To: samir idrissi, gcc
On Tuesday 26 February 2002 08:56, samir idrissi wrote:
> #include <math.h>
> ...
> /tmp/cc4REunT.o(.text+0x2ac): undefined reference to `pow'
>
> I have no problem when compliling with g++.
>
> What can I do if I want to complile with gcc ?
If you don't like to append -lm, stick with g++.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: problem when compiling
1998-09-06 15:12 ` Philip Blundell
1998-09-07 22:40 ` Jeffrey A Law
@ 1998-11-28 17:50 ` Jeffrey A Law
1 sibling, 0 replies; 11+ messages in thread
From: Jeffrey A Law @ 1998-11-28 17:50 UTC (permalink / raw)
To: Philip Blundell; +Cc: egcs
In message <E0zFmGK-0000Vh-00@kings-cross.london.uk.eu.org>you write:
> >Remove the trailing ':' it is unnecessary and wrong and is likely
> >the cause of your problems.
>
> The glibc configure script now has a check for LD_LIBRARY_PATH containing
> the current directory and warns the user that this will cause problems.
> It might be a good check to include for egcs as well.
I'm not sure if I ever responded -- we added this feature to the egcs
configuration scripts in the mainline tree (not in the egcs-1.1.x tree).
jeff
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: problem when compiling
1998-09-06 15:12 ` Philip Blundell
@ 1998-09-07 22:40 ` Jeffrey A Law
1998-11-28 17:50 ` Jeffrey A Law
1 sibling, 0 replies; 11+ messages in thread
From: Jeffrey A Law @ 1998-09-07 22:40 UTC (permalink / raw)
To: Philip Blundell; +Cc: egcs
In message < E0zFmGK-0000Vh-00@kings-cross.london.uk.eu.org >you write:
> >Remove the trailing ':' it is unnecessary and wrong and is likely
> >the cause of your problems.
>
> The glibc configure script now has a check for LD_LIBRARY_PATH containing the
> current directory and warns the user that this will cause problems. It mig ht
> be a good check to include for egcs as well.
An excellent idea. Thanks for the pointer. I've copied the code and
tweaked it to check for the environment variables that give egcs
problems.
Thanks!
jeff
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: problem when compiling
1998-09-05 10:29 ` Jeffrey A Law
1998-09-06 5:40 ` Iztok Polanic
@ 1998-09-06 15:12 ` Philip Blundell
1998-09-07 22:40 ` Jeffrey A Law
1998-11-28 17:50 ` Jeffrey A Law
1 sibling, 2 replies; 11+ messages in thread
From: Philip Blundell @ 1998-09-06 15:12 UTC (permalink / raw)
To: law; +Cc: egcs
>Remove the trailing ':' it is unnecessary and wrong and is likely
>the cause of your problems.
The glibc configure script now has a check for LD_LIBRARY_PATH containing the
current directory and warns the user that this will cause problems. It might
be a good check to include for egcs as well.
p.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: problem when compiling
1998-09-05 10:29 ` Jeffrey A Law
@ 1998-09-06 5:40 ` Iztok Polanic
1998-09-06 15:12 ` Philip Blundell
1 sibling, 0 replies; 11+ messages in thread
From: Iztok Polanic @ 1998-09-06 5:40 UTC (permalink / raw)
To: Jeffrey A Law; +Cc: egcs
Hello !!!
On Sat, 5 Sep 1998, Jeffrey A Law wrote:
>
> In message < Pine.LNX.3.96.980905131323.12454A-100000@alpha.computers.org >you write:
> > #env | grep LIBRARY_PATH
> > LD_LIBRARY_PATH=/usr/local/QT/lib:
> > LIBRARY_PATH=/usr/local/QT/lib:
> Remove the trailing ':' it is unnecessary and wrong and is likely
> the cause of your problems.
>
TNX!
Bye.
//////
xxxxxx ( o o )
xx xx /------------oOO-----O-----OOo------------\
xx xx | From: Iztok Polanic |
xxxx | E-mail: Iztok.Polanic1@guest.arnes.si |
xx xx | WWW: http://kotzi.home.ml.org |
xx xx | http://www.intering.si |
xx xx | ICQ: Kotzi => *12556824* |
\-----------------------------------------/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: problem when compiling
1998-09-05 5:32 problem " Iztok Polanic
@ 1998-09-05 10:29 ` Jeffrey A Law
1998-09-06 5:40 ` Iztok Polanic
1998-09-06 15:12 ` Philip Blundell
0 siblings, 2 replies; 11+ messages in thread
From: Jeffrey A Law @ 1998-09-05 10:29 UTC (permalink / raw)
To: Iztok Polanic; +Cc: egcs
In message < Pine.LNX.3.96.980905131323.12454A-100000@alpha.computers.org >you write:
> #env | grep LIBRARY_PATH
> LD_LIBRARY_PATH=/usr/local/QT/lib:
> LIBRARY_PATH=/usr/local/QT/lib:
Remove the trailing ':' it is unnecessary and wrong and is likely
the cause of your problems.
jeff
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: problem when compiling
@ 1998-09-05 5:32 Iztok Polanic
1998-09-05 10:29 ` Jeffrey A Law
0 siblings, 1 reply; 11+ messages in thread
From: Iztok Polanic @ 1998-09-05 5:32 UTC (permalink / raw)
To: egcs
Hello !!!
On Sat, 5 Sep 1998, Jeffrey A Law wrote:
>
> > ./crtbegin.o(.text+0x56): undefined reference to `__register_frame_info'
> > make[1]: *** [g++] Error 1
> > make[1]: Leaving directory `/root/egcs-1.1a/gcc'
> > make: *** [all-gcc] Error 2
> >
> > What's wrong and how can I fix this?
> This is weird. You should not be linking in ./crtbegin.o when building
> the "g++" driver.
>
> You might check for things like LDPATH, GCC_EXEC_PREFIX, LIBRARY_PATH
> and similar stuff in your environment.
>
#env | grep GCC_EXEC_PREFIX
<nothing>
#env | grep LIBRARY_PATH
LD_LIBRARY_PATH=/usr/local/QT/lib:
LIBRARY_PATH=/usr/local/QT/lib:
#env | grep LDPATH
<nothing>
Is this okey??? Or should I put something more in LDPATH, LIBRARY_PATH,
GCC_EXEC_PREFIX?
Bye.
//////
xxxxxx ( o o )
xx xx /------------oOO-----O-----OOo------------\
xx xx | From: Iztok Polanic |
xxxx | E-mail: Iztok.Polanic1@guest.arnes.si |
xx xx | WWW: http://kotzi.home.ml.org |
xx xx | http://www.intering.si |
xx xx | ICQ: Kotzi => *12556824* |
\-----------------------------------------/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: problem when compiling
1998-09-04 21:38 Iztok Polanic
@ 1998-09-05 0:31 ` Jeffrey A Law
0 siblings, 0 replies; 11+ messages in thread
From: Jeffrey A Law @ 1998-09-05 0:31 UTC (permalink / raw)
To: Iztok Polanic; +Cc: egcs
In message < Pine.LNX.3.96.980904192040.8642C-100000@alpha.computers.org >you write:
> Hello !!!
>
> I've downloaded egcs 1.1a and when I run make I get this:
>
> make[1]: Leaving directory `/root/egcs-1.1a/texinfo'
> make[1]: Entering directory `/root/egcs-1.1a/etc'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/root/egcs-1.1a/etc'
> make[1]: Entering directory `/root/egcs-1.1a/gcc'
> gcc -DIN_GCC -DUSE_GNULIBC_1 -g -O2 -DHAVE_CONFIG_H -o g++ g++.o
> g++spec.o prefix.o \
> version.o choose-temp.o pexecute.o mkstemp.o obstack.o
> ./crtbegin.o: In function `__do_global_dtors_aux':
> ./crtbegin.o(.text+0x2d): undefined reference to `__deregister_frame_info'
> ./crtbegin.o: In function `frame_dummy':
> ./crtbegin.o(.text+0x56): undefined reference to `__register_frame_info'
> make[1]: *** [g++] Error 1
> make[1]: Leaving directory `/root/egcs-1.1a/gcc'
> make: *** [all-gcc] Error 2
>
> What's wrong and how can I fix this?
This is weird. You should not be linking in ./crtbegin.o when building
the "g++" driver.
You might check for things like LDPATH, GCC_EXEC_PREFIX, LIBRARY_PATH
and similar stuff in your environment.
jeff
^ permalink raw reply [flat|nested] 11+ messages in thread
* problem when compiling
@ 1998-09-04 21:38 Iztok Polanic
1998-09-05 0:31 ` Jeffrey A Law
0 siblings, 1 reply; 11+ messages in thread
From: Iztok Polanic @ 1998-09-04 21:38 UTC (permalink / raw)
To: egcs
Hello !!!
I've downloaded egcs 1.1a and when I run make I get this:
make[1]: Leaving directory `/root/egcs-1.1a/texinfo'
make[1]: Entering directory `/root/egcs-1.1a/etc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/egcs-1.1a/etc'
make[1]: Entering directory `/root/egcs-1.1a/gcc'
gcc -DIN_GCC -DUSE_GNULIBC_1 -g -O2 -DHAVE_CONFIG_H -o g++ g++.o
g++spec.o prefix.o \
version.o choose-temp.o pexecute.o mkstemp.o obstack.o
./crtbegin.o: In function `__do_global_dtors_aux':
./crtbegin.o(.text+0x2d): undefined reference to `__deregister_frame_info'
./crtbegin.o: In function `frame_dummy':
./crtbegin.o(.text+0x56): undefined reference to `__register_frame_info'
make[1]: *** [g++] Error 1
make[1]: Leaving directory `/root/egcs-1.1a/gcc'
make: *** [all-gcc] Error 2
What's wrong and how can I fix this?
TNX!
Bye.
//////
xxxxxx ( o o )
xx xx /------------oOO-----O-----OOo------------\
xx xx | From: Iztok Polanic |
xxxx | E-mail: Iztok.Polanic1@guest.arnes.si |
xx xx | WWW: http://kotzi.home.ml.org |
xx xx | http://www.intering.si |
xx xx | ICQ: Kotzi => *12556824* |
\-----------------------------------------/
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2002-02-26 20:18 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-26 9:07 Problem when compiling samir idrissi
2002-02-26 9:44 ` Craig Rodrigues
2002-02-26 12:52 ` Tim Prince
-- strict thread matches above, loose matches on Subject: below --
1998-09-05 5:32 problem " Iztok Polanic
1998-09-05 10:29 ` Jeffrey A Law
1998-09-06 5:40 ` Iztok Polanic
1998-09-06 15:12 ` Philip Blundell
1998-09-07 22:40 ` Jeffrey A Law
1998-11-28 17:50 ` Jeffrey A Law
1998-09-04 21:38 Iztok Polanic
1998-09-05 0:31 ` Jeffrey A Law
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).