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

[MiNT] G++ 4.4.2 prob



Hey guys,

I removed all traces of gcc 2.95.3 and all other versions from my system and attempted to use mikro's gcc 4.4.2 build to build a test and this is the output

root@aralap:/root>g++ -v -o hello hello.cc
Using built-in specs.
Target: m68k-atari-mint
Configured with: ../gcc-4.4.2/configure --target=m68k-atari-mint --host=m68k-atari-mint --enable-languages=c,c++ --disable-nls --disable-libstdcxx-pch --with-gmp=/home/mikro/projects/gnu/binary-package/gmp-4.3.1/usr/local --with-mpfr=/home/mikro/projects/gnu/binary-package/mpfr-2.4.1/usr/local
Thread model: single
gcc version 4.4.2 (MiNT 20091017) (GCC)
COLLECT_GCC_OPTIONS='-v' '-o' 'hello' '-m68000'
/e/usr/local/bin/../libexec/gcc/m68k-atari-mint/4.4.2/cc1plus -quiet -v -iprefix /e/usr/local/bin/../lib/gcc/m68k-atari-mint/4.4.2/ -D__M68000__ hello.cc -quiet -dumpbase hello.cc -m68000 -auxbase hello -version -o /usr/tmp/ccU3N3nJ.s ignoring nonexistent directory "/e/usr/local/bin/../lib/gcc/m68k-atari-mint/4.4.2/../../../../include/c++/4.4.2" ignoring nonexistent directory "/e/usr/local/bin/../lib/gcc/m68k-atari-mint/4.4.2/../../../../include/c++/4.4.2/m68k-atari-mint" ignoring nonexistent directory "/e/usr/local/bin/../lib/gcc/m68k-atari-mint/4.4.2/../../../../include/c++/4.4.2/backward" ignoring nonexistent directory "/e/usr/local/bin/../lib/gcc/m68k-atari-mint/4.4.2/../../../../m68k-atari-mint/include" ignoring nonexistent directory "/e/usr/local/bin/../lib/gcc/../../lib/gcc/m68k-atari-mint/4.4.2/../../../../include/c++/4.4.2" ignoring nonexistent directory "/e/usr/local/bin/../lib/gcc/../../lib/gcc/m68k-atari-mint/4.4.2/../../../../include/c++/4.4.2/m68k-atari-mint" ignoring nonexistent directory "/e/usr/local/bin/../lib/gcc/../../lib/gcc/m68k-atari-mint/4.4.2/../../../../include/c++/4.4.2/backward" ignoring duplicate directory "/e/usr/local/bin/../lib/gcc/../../lib/gcc/m68k-atari-mint/4.4.2/include" ignoring duplicate directory "/e/usr/local/bin/../lib/gcc/../../lib/gcc/m68k-atari-mint/4.4.2/include-fixed" ignoring nonexistent directory "/e/usr/local/bin/../lib/gcc/../../lib/gcc/m68k-atari-mint/4.4.2/../../../../m68k-atari-mint/include"
#include "..." search starts here:
#include <...> search starts here:
 /e/usr/local/bin/../lib/gcc/m68k-atari-mint/4.4.2/include
 /e/usr/local/bin/../lib/gcc/m68k-atari-mint/4.4.2/include-fixed
 /usr/local/include
 /usr/include
End of search list.
GNU C++ (GCC) version 4.4.2 (MiNT 20091017) (m68k-atari-mint)
compiled by GNU C version 4.4.2 (MiNT 20091017), GMP version 4.3.1, MPFR version 2.4.1.
GGC heuristics: --param ggc-min-expand=33 --param ggc-min-heapsize=5897
Compiler executable checksum: 22b294c99bd71ccc5653ae6e5954618c
hello.cc:1:20: error: iostream: No such file or directory
hello.cc: In function 'int main()':
hello.cc:7: error: 'cout' was not declared in this scope
root@aralap:/root>


It seems some include paths aren't setup quite right. I can make it compile and run with:

root@aralap:/root>g++ -I/usr/local/include/c++/4.4.2/ -I/usr/local/include/c++/4.4.2/m68k-atari-mint -o hello hello.cc
root@aralap:/root>./hello
Hello World

Thanks,
Mark