hi
i am trying to compile flext under debian but i get few errors. I paste them below. I dont really know what to change or do, i havent dont much compiling under linux. I edited the config-lnx-pd-gcc.txt to point to the right directories to compile flext fro millers version, which i installed with apt-get
the first error is /usr/src/pd/src/pthread.h:462:3: error: #error Please upgrade your GNU compiler to one that supports __declspec. But my gcc is the latest version available
thanks for the help
r2d2@larri:~/Desktop/flext$ bash build.sh pd gcc
make -f ./buildsys/gnumake-sub.mak PLATFORM=lnx RTSYS=pd COMPILER=gcc
BUILDPATH=./buildsys/ PKGINFO=package.txt BUILDCLASS=flext
USRCONFIG=config.txt USRMAKE=build/gnumake-lnx-gcc.inc
TARGETMODE=release TARGETTYPE=single _build_
make[1]: se ingresa al directorio /home/r2d2/Desktop/flext' g++ -c -msse -mfpmath=sse -ffast-math -DNDEBUG -O3 -pthread -fPIC -DFLEXT_USE_SIMD -DFLEXT_EXPORTS -DFLEXT_SYS=2 -I/usr/src/pd/src source/flattr.cpp -o pd-linux/release-single/flattr.opp In file included from /usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/i486-linux-gnu/bits/gthr-default.h:43, from /usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/i486-linux-gnu/bits/gthr.h:114, from /usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/i486-linux-gnu/bits/c++io.h:37, from /usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/iosfwd:46, from /usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/bits/stl_algobase.h:69, from /usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/bits/stl_tree.h:66, from /usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/set:65, from source/flattr.cpp:19: /usr/src/pd/src/pthread.h:462:3: error: #error Please upgrade your GNU compiler to one that supports __declspec. /usr/src/pd/src/pthread.h:260: error: redefinition of 'struct timespec' /usr/include/time.h:119: error: previous definition of 'struct timespec' /usr/src/pd/src/pthread.h:482: error: conflicting declaration 'typedef struct pthread_t_* pthread_t' /usr/include/bits/pthreadtypes.h:152: error: 'pthread_t' has a previous declaration as 'typedef long unsigned int pthread_t' /usr/src/pd/src/pthread.h:483: error: conflicting declaration 'typedef struct pthread_attr_t_* pthread_attr_t' /usr/include/bits/pthreadtypes.h:54: error: 'pthread_attr_t' has a previous declaration as 'typedef struct __pthread_attr_s pthread_attr_t' /usr/src/pd/src/pthread.h:484: error: conflicting declaration 'typedef struct pthread_once_t_ pthread_once_t' /usr/include/bits/pthreadtypes.h:106: error: 'pthread_once_t' has a previous declaration as 'typedef int pthread_once_t' /usr/src/pd/src/pthread.h:485: error: conflicting declaration 'typedef struct pthread_key_t_* pthread_key_t' /usr/include/bits/pthreadtypes.h:82: error: 'pthread_key_t' has a previous declaration as 'typedef unsigned int pthread_key_t' /usr/src/pd/src/pthread.h:486: error: conflicting declaration 'typedef struct pthread_mutex_t_* pthread_mutex_t' /usr/include/bits/pthreadtypes.h:95: error: 'pthread_mutex_t' has a previous declaration as 'typedef struct pthread_mutex_t pthread_mutex_t' /usr/src/pd/src/pthread.h:487: error: conflicting declaration 'typedef struct pthread_mutexattr_t_* pthread_mutexattr_t' /usr/include/bits/pthreadtypes.h:102: error: 'pthread_mutexattr_t' has a previous declaration as 'typedef struct pthread_mutexattr_t pthread_mutexattr_t' /usr/src/pd/src/pthread.h:488: error: conflicting declaration 'typedef struct pthread_cond_t_* pthread_cond_t' /usr/include/bits/pthreadtypes.h:72: error: 'pthread_cond_t' has a previous declaration as 'typedef struct pthread_cond_t pthread_cond_t' /usr/src/pd/src/pthread.h:489: error: conflicting declaration 'typedef struct pthread_condattr_t_* pthread_condattr_t' /usr/include/bits/pthreadtypes.h:79: error: 'pthread_condattr_t' has a previous declaration as 'typedef struct pthread_condattr_t pthread_condattr_t' /usr/src/pd/src/pthread.h:491: error: conflicting declaration 'typedef struct pthread_rwlock_t_* pthread_rwlock_t' /usr/include/bits/pthreadtypes.h:120: error: 'pthread_rwlock_t' has a previous declaration as 'typedef struct _pthread_rwlock_t pthread_rwlock_t' /usr/src/pd/src/pthread.h:492: error: conflicting declaration 'typedef struct pthread_rwlockattr_t_* pthread_rwlockattr_t' /usr/include/bits/pthreadtypes.h:128: error: 'pthread_rwlockattr_t' has a previous declaration as 'typedef struct pthread_rwlockattr_t pthread_rwlockattr_t' /usr/src/pd/src/pthread.h:493: error: conflicting declaration 'typedef struct pthread_spinlock_t_* pthread_spinlock_t' /usr/include/bits/pthreadtypes.h:133: error: 'pthread_spinlock_t' has a previous declaration as 'typedef volatile int pthread_spinlock_t' /usr/src/pd/src/pthread.h:494: error: conflicting declaration 'typedef struct pthread_barrier_t_* pthread_barrier_t' /usr/include/bits/pthreadtypes.h:141: error: 'pthread_barrier_t' has a previous declaration as 'typedef struct pthread_barrier_t pthread_barrier_t' /usr/src/pd/src/pthread.h:495: error: conflicting declaration 'typedef struct pthread_barrierattr_t_* pthread_barrierattr_t' /usr/include/bits/pthreadtypes.h:146: error: 'pthread_barrierattr_t' has a previous declaration as 'typedef struct pthread_barrierattr_t pthread_barrierattr_t' /usr/src/pd/src/pthread.h:650: error: expected
)' before '*' token
/usr/src/pd/src/pthread.h:654: error: 'ptw32_cleanup_callback_t' does
not name a type
/usr/src/pd/src/pthread.h:801: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:803: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:805: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:808: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:811: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:814: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:817: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:820: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:823: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:826: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:829: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:832: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:835: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:838: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:841: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:844: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:850: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:855: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:857: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:860: error: expected constructor, destructor,
or type conversion before 'void'
/usr/src/pd/src/pthread.h:862: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:865: error: 'PTW32_DLLPORT' does not name a type
/usr/src/pd/src/pthread.h:867: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:869: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:872: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:875: error: expected constructor, destructor,
or type conversion before 'void'
/usr/src/pd/src/pthread.h:877: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:891: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:894: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:896: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:899: error: expected constructor, destructor,
or type conversion before 'void'
/usr/src/pd/src/pthread.h:905: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:907: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:909: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:913: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:916: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:917: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:922: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:924: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:926: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:930: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:936: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:939: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:941: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:943: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:946: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:948: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:953: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:955: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:957: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:959: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:961: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:966: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:970: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:972: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:977: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:979: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:981: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:984: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:990: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:993: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:995: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:998: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:1002: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:1004: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:1009: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:1013: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:1017: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:1019: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:1024: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:1027: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:1029: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:1031: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:1033: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:1035: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:1038: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:1040: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:1043: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:1045: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:1047: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:1049: error: expected constructor, destructor,
or type conversion before 'int'
/usr/src/pd/src/pthread.h:1052: error: expected constructor, destructor,
or type conversion before 'int'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/i486-linux-gnu/bits/gthr-default.h:
In function 'int __gthread_active_p()':
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/i486-linux-gnu/bits/gthr-default.h:110:
error: 'pthread_cancel' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/i486-linux-gnu/bits/gthr-default.h:
In function 'int __gthread_once(__gthread_once_t*, void (*)())':
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/i486-linux-gnu/bits/gthr-default.h:477:
error: 'pthread_once' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/i486-linux-gnu/bits/gthr-default.h:
In function 'int __gthread_key_create(__gthread_key_t*, void (*)(void*))':
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/i486-linux-gnu/bits/gthr-default.h:485:
error: 'pthread_key_create' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/i486-linux-gnu/bits/gthr-default.h:
In function 'int __gthread_key_delete(__gthread_key_t)':
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/i486-linux-gnu/bits/gthr-default.h:491:
error: 'pthread_key_delete' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/i486-linux-gnu/bits/gthr-default.h:
In function 'void* __gthread_getspecific(__gthread_key_t)':
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/i486-linux-gnu/bits/gthr-default.h:497:
error: 'pthread_getspecific' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/i486-linux-gnu/bits/gthr-default.h:
In function 'int __gthread_setspecific(__gthread_key_t, const void*)':
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/i486-linux-gnu/bits/gthr-default.h:503:
error: 'pthread_setspecific' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/i486-linux-gnu/bits/gthr-default.h:
In function 'int __gthread_mutex_lock(__gthread_mutex_t*)':
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/i486-linux-gnu/bits/gthr-default.h:510:
error: 'pthread_mutex_lock' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/i486-linux-gnu/bits/gthr-default.h:
In function 'int __gthread_mutex_trylock(__gthread_mutex_t*)':
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/i486-linux-gnu/bits/gthr-default.h:519:
error: 'pthread_mutex_trylock' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/i486-linux-gnu/bits/gthr-default.h:
In function 'int __gthread_mutex_unlock(__gthread_mutex_t*)':
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/i486-linux-gnu/bits/gthr-default.h:528:
error: 'pthread_mutex_unlock' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/i486-linux-gnu/bits/gthr-default.h:
In function 'int
__gthread_recursive_mutex_init_function(__gthread_recursive_mutex_t*)':
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/i486-linux-gnu/bits/gthr-default.h:542:
error: 'pthread_mutexattr_init' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/i486-linux-gnu/bits/gthr-default.h:544:
error: 'pthread_mutexattr_settype' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/i486-linux-gnu/bits/gthr-default.h:546:
error: 'pthread_mutex_init' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/i486-linux-gnu/bits/gthr-default.h:548:
error: 'pthread_mutexattr_destroy' was not declared in this scope
/usr/include/time.h: At global scope:
/usr/include/time.h:239: error: expected unqualified-id before 'struct'
/usr/include/time.h:239: error: expected )' before 'struct' /usr/include/time.h:239: error: expected
)' before 'struct'
/usr/include/time.h:239: error: expected initializer before 'struct'
/usr/include/time.h:244: error: expected unqualified-id before 'struct'
/usr/include/time.h:244: error: expected )' before 'struct' /usr/include/time.h:244: error: expected
)' before 'struct'
/usr/include/time.h:244: error: expected initializer before 'struct'
/usr/include/time.h:262: error: expected `)' before '(' token
/usr/include/time.h:262: error: abstract declarator 'char*' used as
declaration
/usr/include/time.h:262: error: expected primary-expression before 'char'
/usr/include/time.h:262: error: expected )' before 'char' /usr/include/time.h:266: error: expected
)' before '(' token
/usr/include/time.h:266: error: abstract declarator 'char*' used as
declaration
/usr/include/time.h:266: error: expected primary-expression before 'char'
/usr/include/time.h:266: error: expected `)' before 'char'
make[1]: *** [pd-linux/release-single/flattr.opp] Error 1
make[1]: se sale del directorio `/home/r2d2/Desktop/flext'
make: *** [build-release-single] Error 2