[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug? can't compile hello world



Hi there,

I've installed the g++-3.0 package (and everything it depends on, of course), and I can't compile a hello world program. Everything works fine when I compile with 2.95. I think this must be a bug. . .

Here's the code:
--
#include <cstdio>
int main(void)
{
       printf("Hello World!\n");
}
--
Here's what happens:
--
abentley@eagerbeaver:~/programming$ g++ -V 3.0.2 hello.cpp
In file included from /usr/include/g++-v3/cstdio:31,
                from hello.cpp:1:
/usr/include/g++-v3/bits/std_cstdio.h:145: `vfscanf' not declared
/usr/include/g++-v3/bits/std_cstdio.h:146: `vscanf' not declared
/usr/include/g++-v3/bits/std_cstdio.h:148: `vsscanf' not declared
/usr/include/g++-v3/bits/std_cstdio.h:154: `vfscanf' not declared
/usr/include/g++-v3/bits/std_cstdio.h:155: `vscanf' not declared
/usr/include/g++-v3/bits/std_cstdio.h:157: `vsscanf' not declared
--
It seems like I missed a dependency, but I'll leave the call to you. . .

Aaron Bentley



Reply to: