This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
I figure out reason of " error message: C++ compiler not installed on this system", When I compile hello cpp source using arm toolchain that are built with crosstool-ng ver 1.1.0. This reason is --enable-language=c,${opt} problem because sed(stream editor) parsing is dismatch in centos 5.X distribution. So, I edited cc-gcc.sh script file to solve this problem right now. vi /opt/crosstool-ng-1.1.1/scripts/build/cc-gcc.sh (edit --enable-languages-c,c++) -------- 81 --enable-symvers=gnu \ 82 --enable-languages=c,c++ \ 83 --disable-shared \ ............... Middle Omission ............ 131 --enable-symvers=gnu \ 132 --enable-languages=c,c++ \ 133 --enable-shared \ -------- and I typed "centos5#> ct-ng build. I can finished compiling of tollchain successfully with crosstool-ng 1.1.0. I can confirm exectuable file in /opt/invaindtoolchain110/bin/targets/arm-invaind-linux-gnueabi/build/gcc-core-shared/bin directory. [root@centos51 bin]# ls arm-invaind-linux-gnueabi-ar arm-invaind-linux-gnueabi-gcj arm-invaind-linux-gnueabi-as arm-invaind-linux-gnueabi-gcjh arm-invaind-linux-gnueabi-c++ arm-invaind-linux-gnueabi-gcov arm-invaind-linux-gnueabi-cpp arm-invaind-linux-gnueabi-gjnih arm-invaind-linux-gnueabi-g++ arm-invaind-linux-gnueabi-jcf-dump arm-invaind-linux-gnueabi-gcc arm-invaind-linux-gnueabi-jv-scan arm-invaind-linux-gnueabi-gcc-4.2.3 arm-invaind-linux-gnueabi-ld arm-invaind-linux-gnueabi-gccbug arm-invaind-linux-gnueabi-strip [root@centos51 bin]# And , I write cpp hello source code. and then, I compiled like below. But, I meet " iostream: No such file or directory" error message when compile cpp source. [root@centos51 bin]# [root@centos51 bin]# ./arm-invaind-linux-gnueabi-g++ -o cpphello2.o /opt/cpphello2.cpp /opt/cpphello2.cpp:1:20: error: iostream: No such file or directory /opt/cpphello2.cpp: In function 'int main(int, char**)': /opt/cpphello2.cpp:4: error: 'cout' was not declared in this scope /opt/cpphello2.cpp:4: error: 'endl' was not declared in this scope This is source code. [root@centos51 bin]# [root@centos51 bin]# cat /opt/cpphello2.cpp #include <iostream> int main( int argc, char **argv ) { cout << "Hello World" << endl; return 0; } [root@centos51 bin]# Anyone have idea or reason about this problem? Share me your tech knowledge to solve this problem.. Currently, I think that header file realted arrange miss.... 2008/5/19 Dimitry Andric <dimitry@andric.com>: > On 2008-05-19 04:26, invain wrote: >> I find new fact about CPP compiler error. >> Although I selected C++ and Java using "ct-ng menuconfig - C Compiler" menu, >> I figured out that corsstool-ng 1.1.0 built only c compiler. >> Mr, yann.morin.1998 .... Is it bug?? > > No, this is the first stage ("core") compiler. It will only need to compile C. > > -- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |