C++ linux build

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

C++ linux build

kross
I have built the using gcc 4.6.1 the ecos Linux synthetic target (default packages).
When I include ecos with a simple main I get loads of errors. I have 18MB of source to port to ecos and can't even get started.
I am the standard native compiler (not a special gcc built for ecos).
The test file main.cc
#include <string>
int main() {  return 0; }

If I run
$ g++ -c main.cc
then no errors

$ g++ -I./sc300_install/include -c main.cc

In file included from /usr/include/c++/4.6/cwchar:46:0,
                 from /usr/include/c++/4.6/bits/postypes.h:42,
                 from /usr/include/c++/4.6/bits/char_traits.h:42,
                 from /usr/include/c++/4.6/string:42,
                 from main.cc:1:
/usr/include/wchar.h:578:8: error: ‘__FILE’ does not name a type
/usr/include/wchar.h:585:19: error: ‘__FILE’ was not declared in this scope
/usr/include/wchar.h:585:27: error: ‘__fp’ was not declared in this scope
/usr/include/wchar.h:585:33: error: expected primary-expression before ‘int’
/usr/include/wchar.h:585:43: error: expression list treated as compound expression in initializer [-fpermissive]
/usr/include/wchar.h:585:45: error: expected ‘,’ or ‘;’ before ‘throw’
/usr/include/wchar.h:592:22: error: ‘__FILE’ was not declared in this scope
/usr/include/wchar.h:592:30: error: expected primary-expression before ‘__restrict’
/usr/include/wchar.h:593:8: error: expected primary-expression before ‘__const’
/usr/include/wchar.h:593:46: error: expected primary-expression before ‘...’ token
/usr/include/wchar.h:593:49: error: expression list treated as compound expression in initializer [-fpermissive]
/usr/include/wchar.h:610:23: error: ‘__FILE’ was not declared in this scope
/usr/include/wchar.h:610:31: error: expected primary-expression before ‘__restrict’
/usr/include/wchar.h:611:9: error: expected primary-expression before ‘__const’
/usr/include/wchar.h:612:24: error: expected primary-expression before ‘__arg’
/usr/include/wchar.h:612:29: error: expression list treated as compound expression in initializer [-fpermissive]
/usr/include/wchar.h:633:21: error: ‘__FILE’ was not declared in this scope
/usr/include/wchar.h:633:29: error: expected primary-expression before ‘__restrict’
/usr/include/wchar.h:634:7: error: expected primary-expression before ‘__const’
/usr/include/wchar.h:634:45: error: expected primary-expression before ‘...’ token
/usr/include/wchar.h:634:48: error: expression list treated as compound expression in initializer [-fpermissive]
/usr/include/wchar.h:687:22: error: ‘__FILE’ was not declared in this scope
/usr/include/wchar.h:687:30: error: expected primary-expression before ‘__restrict’
/usr/include/wchar.h:688:8: error: expected primary-expression before ‘__const’
/usr/include/wchar.h:689:23: error: expected primary-expression before ‘__arg’
/usr/include/wchar.h:689:28: error: expression list treated as compound expression in initializer [-fpermissive]
/usr/include/wchar.h:743:23: error: ‘__FILE’ was not declared in this scope
/usr/include/wchar.h:743:31: error: ‘__stream’ was not declared in this scope
/usr/include/wchar.h:744:22: error: ‘__FILE’ was not declared in this scope
/usr/include/wchar.h:744:30: error: ‘__stream’ was not declared in this scope
/usr/include/wchar.h:757:37: error: ‘__FILE’ has not been declared
/usr/include/wchar.h:758:36: error: ‘__FILE’ has not been declared
/usr/include/wchar.h:773:4: error: ‘__FILE’ has not been declared
/usr/include/wchar.h:780:6: error: ‘__FILE’ has not been declared
/usr/include/wchar.h:787:37: error: ‘__FILE’ has not been declared
/usr/include/wchar.h:799:31: error: ‘__FILE’ was not declared in this scope
/usr/include/wchar.h:799:39: error: ‘__stream’ was not declared in this scope
/usr/include/wchar.h:808:32: error: ‘__FILE’ was not declared in this scope
/usr/include/wchar.h:808:40: error: ‘__stream’ was not declared in this scope
/usr/include/wchar.h:816:46: error: ‘__FILE’ has not been declared
/usr/include/wchar.h:825:45: error: ‘__FILE’ has not been declared
/usr/include/wchar.h:836:6: error: ‘__FILE’ has not been declared
/usr/include/wchar.h:845:8: error: ‘__FILE’ has not been declared
In file included from /usr/include/c++/4.6/bits/localefwd.h:42:0,
                 from /usr/include/c++/4.6/string:45,
                 from main.cc:1:
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++locale.h:53:23: error: ‘uselocale’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++locale.h:53:45: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++locale.h: In function ‘int std::__convert_from_v(__locale_struct* const&, char*, int, const char*, ...)’:
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++locale.h:76:53: error: ‘__gnu_cxx::__uselocale’ cannot be used as a function
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++locale.h:101:33: error: ‘__gnu_cxx::__uselocale’ cannot be used as a function
In file included from /usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr.h:162:0,
                 from /usr/include/c++/4.6/ext/atomicity.h:34,
                 from /usr/include/c++/4.6/bits/basic_string.h:41,
                 from /usr/include/c++/4.6/string:54,
                 from main.cc:1:
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h: At global scope:
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:44:9: error: ‘pthread_t’ does not name a type
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:45:9: error: ‘pthread_key_t’ does not name a type
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:46:9: error: ‘pthread_once_t’ does not name a type
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:47:9: error: ‘pthread_mutex_t’ does not name a type
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:48:9: error: ‘pthread_mutex_t’ does not name a type
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:49:9: error: ‘pthread_cond_t’ does not name a type
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:118:1: error: ‘pthread_once’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:118:1: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:119:1: error: ‘pthread_getspecific’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:119:1: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:120:1: error: ‘pthread_setspecific’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:120:1: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:122:1: error: ‘pthread_create’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:122:1: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:123:1: error: ‘pthread_join’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:123:1: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:124:1: error: ‘pthread_equal’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:124:1: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:125:1: error: ‘pthread_self’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:125:1: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:126:1: error: ‘pthread_detach’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:126:1: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:128:1: error: ‘pthread_cancel’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:128:1: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:130:1: error: ‘sched_yield’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:130:1: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:132:1: error: ‘pthread_mutex_lock’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:132:1: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:133:1: error: ‘pthread_mutex_trylock’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:133:1: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:139:1: error: ‘pthread_mutex_unlock’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:139:1: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:140:1: error: ‘pthread_mutex_init’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:140:1: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:141:1: error: ‘pthread_mutex_destroy’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:141:1: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:143:1: error: ‘pthread_cond_broadcast’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:143:1: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:144:1: error: ‘pthread_cond_signal’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:144:1: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:145:1: error: ‘pthread_cond_wait’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:145:1: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:146:1: error: ‘pthread_cond_timedwait’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:146:1: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:147:1: error: ‘pthread_cond_destroy’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:147:1: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:150:1: error: ‘pthread_key_create’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:150:1: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:151:1: error: ‘pthread_key_delete’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:151:1: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:152:1: error: ‘pthread_mutexattr_init’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:152:1: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:153:1: error: ‘pthread_mutexattr_settype’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:153:1: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:154:1: error: ‘pthread_mutexattr_destroy’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:154:1: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:660:19: error: ‘__gthread_create’ declared as an ‘inline’ variable
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:660:19: error: ‘__gthread_t’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:660:32: error: ‘__threadid’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:660:44: error: expected primary-expression before ‘void’
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:661:5: error: expected primary-expression before ‘void’
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:661:17: error: expression list treated as compound expression in initializer [-fpermissive]
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:662:1: error: expected ‘,’ or ‘;’ before ‘{’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:667:17: error: ‘__gthread_join’ declared as an ‘inline’ variable
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:667:17: error: ‘__gthread_t’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:667:41: error: expected primary-expression before ‘void’
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:667:59: error: expression list treated as compound expression in initializer [-fpermissive]
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:668:1: error: expected ‘,’ or ‘;’ before ‘{’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:673:19: error: ‘__gthread_detach’ declared as an ‘inline’ variable
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:673:19: error: ‘__gthread_t’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:674:1: error: expected ‘,’ or ‘;’ before ‘{’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:679:18: error: ‘__gthread_equal’ declared as an ‘inline’ variable
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:679:18: error: ‘__gthread_t’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:679:36: error: ‘__gthread_t’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:679:52: error: expression list treated as compound expression in initializer [-fpermissive]
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:680:1: error: expected ‘,’ or ‘;’ before ‘{’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:684:15: error: ‘__gthread_t’ does not name a type
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h: In function ‘int __gthread_yield()’:
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:693:33: error: ‘__gthrw_sched_yield’ cannot be used as a function
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h: At global scope:
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:697:17: error: ‘__gthread_once’ declared as an ‘inline’ variable
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:697:17: error: ‘__gthread_once_t’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:697:35: error: ‘__once’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:697:50: error: ‘__func’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:697:59: error: expected primary-expression before ‘void’
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:697:64: error: expression list treated as compound expression in initializer [-fpermissive]
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:698:1: error: expected ‘,’ or ‘;’ before ‘{’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:706:23: error: ‘__gthread_key_create’ declared as an ‘inline’ variable
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:706:23: error: ‘__gthread_key_t’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:706:40: error: ‘__key’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:706:54: error: ‘__dtor’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:706:63: error: expected primary-expression before ‘void’
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:706:70: error: expression list treated as compound expression in initializer [-fpermissive]
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:707:1: error: expected ‘,’ or ‘;’ before ‘{’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:712:23: error: ‘__gthread_key_delete’ declared as an ‘inline’ variable
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:712:23: error: ‘__gthread_key_t’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:713:1: error: expected ‘,’ or ‘;’ before ‘{’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:718:24: error: ‘__gthread_getspecific’ declared as an ‘inline’ variable
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:718:24: error: ‘__gthread_key_t’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:719:1: error: expected ‘,’ or ‘;’ before ‘{’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:724:24: error: ‘__gthread_setspecific’ declared as an ‘inline’ variable
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:724:24: error: ‘__gthread_key_t’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:724:47: error: expected primary-expression before ‘const’
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:724:64: error: expression list treated as compound expression in initializer [-fpermissive]
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:725:1: error: expected ‘,’ or ‘;’ before ‘{’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:730:26: error: ‘__gthread_mutex_destroy’ declared as an ‘inline’ variable
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:730:26: error: ‘__gthread_mutex_t’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:730:45: error: ‘__mutex’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:731:1: error: expected ‘,’ or ‘;’ before ‘{’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:739:23: error: ‘__gthread_mutex_lock’ declared as an ‘inline’ variable
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:739:23: error: ‘__gthread_mutex_t’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:739:42: error: ‘__mutex’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:740:1: error: expected ‘,’ or ‘;’ before ‘{’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:748:26: error: ‘__gthread_mutex_trylock’ declared as an ‘inline’ variable
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:748:26: error: ‘__gthread_mutex_t’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:748:45: error: ‘__mutex’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:749:1: error: expected ‘,’ or ‘;’ before ‘{’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:771:25: error: ‘__gthread_mutex_unlock’ declared as an ‘inline’ variable
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:771:25: error: ‘__gthread_mutex_t’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:771:44: error: ‘__mutex’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:772:1: error: expected ‘,’ or ‘;’ before ‘{’ token
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:781:42: error: ‘__gthread_recursive_mutex_init_function’ declared as an ‘inline’ variable
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:781:42: error: ‘__gthread_recursive_mutex_t’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:781:71: error: ‘__mutex’ was not declared in this scope
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr-default.h:782:1: error: expected ‘,’ or ‘;’ before ‘{’ token
In file included from /usr/include/c++/4.6/ext/atomicity.h:34:0,
                 from /usr/include/c++/4.6/bits/basic_string.h:41,
                 from /usr/include/c++/4.6/string:54,
                 from main.cc:1:
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/gthr.h:170:27: error: expected declaration before end of line







--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

Reply | Threaded
Open this post in threaded view
|

Re: C++ linux build

kross
If I change the include from <string> everything compiles fine.

#include <string.h>
int main() {  return 0; }

but I do not want to troll through all the code changing include names.

Keith Ross


--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss