lpcware

How to compile c++ programs on LPC3250 for eldk tool chain?

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by Pradeep Kumar on Mon Dec 23 05:52:27 MST 2013
Hi,


I'm using eldk tool for fdi-3250 board.I need to compile cpp code on board. For this i written a small cpp code and procedure as follows...

#include <iostream>

using namespace std;
int main()
{
    cout<<"Hello World!\n";
    return 0;
}
rm-linux-g++ 1.cpp -o pp
In file included from 1.cpp:1:
/home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/iostream:44:28: error: bits/c++config.h: No such file or directory
In file included from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/ios:43,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/ostream:45,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/iostream:45,
                 from 1.cpp:1:
/home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/iosfwd:45:29: error: bits/c++locale.h: No such file or directory
/home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/iosfwd:46:25: error: bits/c++io.h: No such file or directory
In file included from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/bits/ios_base.h:45,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/ios:48,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/ostream:45,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/iostream:45,
                 from 1.cpp:1:
/home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/ext/atomicity.h:39:23: error: bits/gthr.h: No such file or directory
/home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/ext/atomicity.h:40:30: error: bits/atomic_word.h: No such file or directory
In file included from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/memory:54,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/string:48,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/bits/locale_classes.h:47,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/bits/ios_base.h:47,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/ios:48,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/ostream:45,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/iostream:45,
                 from 1.cpp:1:
/home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/bits/allocator.h:53:31: error: bits/c++allocator.h: No such file or directory
In file included from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/bits/basic_ios.h:44,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/ios:50,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/ostream:45,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/iostream:45,
                 from 1.cpp:1:
/home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/bits/locale_facets.h:47:30: error: bits/ctype_base.h: No such file or directory
/home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/bits/locale_facets.h:1533:31: error: bits/ctype_inline.h: No such file or directory
/home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/bits/locale_facets.h:3040:33: error: bits/time_members.h: No such file or directory
/home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/bits/locale_facets.h:4599:37: error: bits/messages_members.h: No such file or directory
In file included from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/iosfwd:47,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/ios:43,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/ostream:45,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/iostream:45,
                 from 1.cpp:1:
/home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/cctype:68: error: expected constructor, destructor, or type conversion before '(' token
/home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/cctype:84: error: '_GLIBCXX_END_NAMESPACE' does not name a type
In file included from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/iosfwd:48,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/ios:43,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/ostream:45,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/iostream:45,
                 from 1.cpp:1:
/home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/bits/stringfwd.h:55: error: expected type-specifier before 'allocator'
/home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/bits/stringfwd.h:55: error: expected '>' before 'allocator'
/home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/bits/stringfwd.h:60: error: template argument 3 is invalid
/home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/bits/stringfwd.h:60: error: invalid type in declaration before ';' token
In file included from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/cstddef:51,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/cwchar:51,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/bits/postypes.h:46,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/iosfwd:49,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/ios:43,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/ostream:45,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/iostream:45,
                 from 1.cpp:1:
/home/pradeep/project/eldk42/usr/bin/../lib/gcc/arm-linux-gnueabi/4.2.2/include/stddef.h:152: error: expected constructor, destructor, or type conversion before 'typedef'
In file included from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/cwchar:51,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/bits/postypes.h:46,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/iosfwd:49,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/ios:43,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/ostream:45,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/iostream:45,
                 from 1.cpp:1:
/home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/cstddef:53: error: expected constructor, destructor, or type conversion before '(' token
In file included from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/ctime:51,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/cwchar:52,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/bits/postypes.h:46,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/iosfwd:49,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/ios:43,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/ostream:45,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/iostream:45,
                 from 1.cpp:1:
/home/pradeep/project/eldk42/usr/../arm/usr/include/time.h:31: error: expected constructor, destructor, or type conversion before 'extern'
In file included from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/ios:44,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/ostream:45,
                 from /home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/iostream:45,
                 from 1.cpp:1:
/home/pradeep/project/eldk42/arm/usr/include/c++/4.2.2/exception:40: error: expected declaration before end of line


These Errors i'm getting..Can anyone suggest me get out of this problem.


Thanks In Adv &  Regards,


Pradeep Kumar G.

Outcomes