* g++ 'cmath' bug ?
@ 2004-05-12 19:49 Gert Vandelaer
0 siblings, 0 replies; 3+ messages in thread
From: Gert Vandelaer @ 2004-05-12 19:49 UTC (permalink / raw)
To: gcc-help
Hy all,
I have a major problem with my gcc-g++ compiler on my system (Linux, with Slackware gcc-3.3.2 package) here's what happens when trying to compile a simple c++ program.
root@lapdjeez:~# cat test.cpp
#include <cmath>
#include <cstdio>
int main (int argc, char **argv)
{
printf("Hello\n");
return 0;
}
root@lapdjeez:~# g++-gcc-3.2.2 test.cpp
In file included from test.cpp:1:
/usr/include/c++/3.2.2/cmath:358: `modf' not declared
/usr/include/c++/3.2.2/cmath: In function `float std::modf(float, float*)':
/usr/include/c++/3.2.2/cmath:362: `::modff' undeclared (first use here)
/usr/include/c++/3.2.2/cmath: In function `long double std::modf(long double,
long double*)':
/usr/include/c++/3.2.2/cmath:376: `::modfl' undeclared (first use here)
root@lapdjeez:~#
I also tried removing/installing newer/older versions of gcc-g++ ...
even trying to build a new g++ compiler from source (gcc-3.3.2 and gcc-3.4.0) gives me similar "modf not declared" errors during the build process (via 'make bootstrap' or './configure && make' ..)
The C compiler works fine, and building a new C compiler also works, it's only c++ where there's problems.
Any pointers much appreciated,
bye,
Gert
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: g++ 'cmath' bug ?
2004-05-13 10:17 Fw: " Gert Vandelaer
@ 2004-05-13 22:09 ` Gert Vandelaer
0 siblings, 0 replies; 3+ messages in thread
From: Gert Vandelaer @ 2004-05-13 22:09 UTC (permalink / raw)
To: gcc-help
Hy,
thnx Dara for pointing out it might be something with my glibc ...
I rebuilt a new glibc (version 2.3.3 with prefix=/usr) and everything works fine now.
bye,
gert
>
> > Hello,
> >
> > what version of glibc do you have installed? 2.2.5 at
> > a minimum is required and newer probably doesn't hurt.
> > It sounds like there's some kind of mismatch between
> > your libstdc++ and glibc.
> >
> > Dara
> >
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Movies - Buy advance tickets for 'Shrek 2'
> > http://movies.yahoo.com/showtimes/movie?mid=1808405861
> >
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: g++ 'cmath' bug ?
@ 2004-05-13 0:05 Dara Hazeghi
0 siblings, 0 replies; 3+ messages in thread
From: Dara Hazeghi @ 2004-05-13 0:05 UTC (permalink / raw)
To: djeezus; +Cc: gcc-help
Hello,
what version of glibc do you have installed? 2.2.5 at
a minimum is required and newer probably doesn't hurt.
It sounds like there's some kind of mismatch between
your libstdc++ and glibc.
Dara
__________________________________
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-05-13 22:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-12 19:49 g++ 'cmath' bug ? Gert Vandelaer
2004-05-13 0:05 Dara Hazeghi
2004-05-13 10:17 Fw: " Gert Vandelaer
2004-05-13 22:09 ` Gert Vandelaer
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).