Overview
Features
Download
Documentation
Community
Add-Ons & Services

Getting error when cross compile into ARM-Linux from poco

A general discussion forum.

Getting error when cross compile into ARM-Linux from poco

Postby DHIREN » 07 Feb 2013, 08:38

Hi everybody,
I am cross compiling poco c++ library to the ARM-linux board .But when i run the make files it seems to be error like
foundation/include/poco/FPEnvironment_DUMMY.h error: 'copysign' is not a member of 'std'
error: 'copysignf' is not a member of 'std'
when i removed std:: then error is removed ,But it throws so many errors like
src/adler32.c:60: error: 'uLong adler32' redeclared as different kind of symbol
src/zlib.h:1469: error: previous declaration of 'uLong adler32(uLong, const Bytef*, uInt)'
src/adler32.c:60: error: 'adler' was not declared in this scope
src/adler32.c:60: error: 'buf' was not declared in this scope
src/adler32.c:60: error: 'len' was not declared in this scope
src/adler32.c:64: error: expected unqualified-id before '{' token
src/adler32.c:131: error: 'uLong adler32_combine_' redeclared as different kind of symbol
src/adler32.c:12: error: previous declaration of 'uLong adler32_combine_(uLong, uLong, off64_t)'
src/adler32.c:131: error: 'adler1' was not declared in this scope
src/adler32.c:131: error: 'adler2' was not declared in this scope
src/adler32.c:131: error: 'len2' was not declared in this scope
src/adler32.c:135: error: expected unqualified-id before '{' token
src/adler32.c:155: error: 'uLong adler32_combine' redeclared as different kind of symbol
src/zlib.h:1594: error: previous declaration of 'uLong adler32_combine(uLong, uLong, off_t)'
src/adler32.c:155: error: 'adler1' was not declared in this scope
src/adler32.c:157: error: redefinition of 'uLong adler2'
src/adler32.c:133: error: 'uLong adler2' previously declared here
src/adler32.c:158: error: conflicting declaration 'off_t len2'
src/adler32.c:134: error: 'len2' has a previous declaration as 'off64_t len2'
src/adler32.c:159: error: expected unqualified-id before '{' token
src/adler32.c:163: error: 'uLong adler32_combine64' redeclared as different kind of symbol
src/zlib.h:1570: error: previous declaration of 'uLong adler32_combine64(uLong, uLong, off64_t)'
src/adler32.c:163: error: 'adler1' was not declared in this scope
src/adler32.c:165: error: redefinition of 'uLong adler2'
src/adler32.c:133: error: 'uLong adler2' previously declared here
src/adler32.c:166: error: redefinition of 'off64_t len2'
src/adler32.c:134: error: 'off64_t len2' previously declared here
src/adler32.c:167: error: expected unqualified-id before '{' token


can anybody get suggest me how to resolve this error.

Thanks Advance
DHIREN
 
Posts: 4
Joined: 07 Feb 2013, 07:19

Re: Getting error when cross compile into ARM-Linux from po

Postby alex » 07 Feb 2013, 14:49

Could be that your compiler does not distinguish between C and C++ properly, see e.g. this thread:
If you don't force a particular language then mingw determines the source type as follows:
* mingw32-gcc.exe: the file's extension will be used to determine which language you're compiling C (.c -> C, .cpp -> C++, etc.).
* mingw32-g++.exe: the file is alway interpretted as C++
My problems with compiling zlib disappeared once I started using mingw32-gcc and letting the file extensions control the language type.
alex
 
Posts: 1044
Joined: 11 Jul 2006, 16:27
Location: United_States


Return to General Discussion

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest