Overview
Features
Download
Documentation
Community
Add-Ons & Services

Build error on Path.cpp, FPEnvironment.cpp, FileStream.cpp

Please post support and help requests here.

Build error on Path.cpp, FPEnvironment.cpp, FileStream.cpp

Postby petrux » 21 Sep 2007, 11:45

Hi there,

I'm trying to create a script to build POCO under Windows __without__ using VisualStudio. I'm currenlty focusing my attention on the "Foundation" library but I'm stuck. I could build all the .c/.cpp files except for 3 of them: Path.cpp, FPEnvironment.cpp, FileStream.cpp
I tried to build them one-by-one. Here's what I have:

Code: Select all

PS C:PocoFoundationsrc> g++ -c C:PocoFoundationsrcFileStream.cpp -o C:PocoFoundationobjFileStream.o -I . -I C:PocoFoundationin
clude
In file included from C:PocoFoundationsrcFileStream.cpp:40:
C:PocoFoundationsrc/FileStream_WIN32.cpp: In constructor `Poco::FileStreamBuf::FileStreamBuf()':
C:PocoFoundationsrc/FileStream_WIN32.cpp:52: error: invalid conversion from `int' to `std::_Ios_Openmode'
C:PocoFoundationsrc/FileStream_WIN32.cpp:52: error:   initializing argument 2 of `Poco::BasicBufferedBidirectionalStreamBuf:
:BasicBufferedBidirectionalStreamBuf(std::streamsize, typename std::basic_ios<_CharT, _Traits>::openmode) [with ch = char, tr = std::char_tr
aits, ba = Poco::BufferAllocator]'

--

PS C:PocoFoundationsrc> g++ -c C:PocoFoundationsrcFPEnvironment.cpp -o C:PocoFoundationobjFPEnvironment.o -I . -I C:PocoFoundat
ioninclude
In file included from C:PocoFoundationsrc/FPEnvironment_WIN32.cpp:37,
                 from C:PocoFoundationsrcFPEnvironment.cpp:50:
C:/Poco/Foundation/include/Poco/FPEnvironment_WIN32.h:56: error: `RC_DOWN' was not declared in this scope
C:/Poco/Foundation/include/Poco/FPEnvironment_WIN32.h:56: error: enumerator value for `FP_ROUND_DOWNWARD_IMPL' not integer constant
C:/Poco/Foundation/include/Poco/FPEnvironment_WIN32.h:57: error: `RC_UP' was not declared in this scope
C:/Poco/Foundation/include/Poco/FPEnvironment_WIN32.h:57: error: enumerator value for `FP_ROUND_UPWARD_IMPL' not integer constant
C:/Poco/Foundation/include/Poco/FPEnvironment_WIN32.h:58: error: `RC_NEAR' was not declared in this scope
C:/Poco/Foundation/include/Poco/FPEnvironment_WIN32.h:58: error: enumerator value for `FP_ROUND_TONEAREST_IMPL' not integer constant
C:/Poco/Foundation/include/Poco/FPEnvironment_WIN32.h:60: error: `RC_CHOP' was not declared in this scope
C:/Poco/Foundation/include/Poco/FPEnvironment_WIN32.h:60: error: enumerator value for `FP_ROUND_TOWARDZERO_IMPL' not integer constant
C:/Poco/Foundation/include/Poco/FPEnvironment_WIN32.h:63: error: `SW_ZERODIVIDE' was not declared in this scope
C:/Poco/Foundation/include/Poco/FPEnvironment_WIN32.h:63: error: enumerator value for `FP_DIVIDE_BY_ZERO_IMPL' not integer constant
C:/Poco/Foundation/include/Poco/FPEnvironment_WIN32.h:64: error: `SW_INEXACT' was not declared in this scope
C:/Poco/Foundation/include/Poco/FPEnvironment_WIN32.h:64: error: enumerator value for `FP_INEXACT_IMPL' not integer constant
C:/Poco/Foundation/include/Poco/FPEnvironment_WIN32.h:65: error: `SW_OVERFLOW' was not declared in this scope
C:/Poco/Foundation/include/Poco/FPEnvironment_WIN32.h:65: error: enumerator value for `FP_OVERFLOW_IMPL' not integer constant
C:/Poco/Foundation/include/Poco/FPEnvironment_WIN32.h:66: error: `SW_UNDERFLOW' was not declared in this scope
C:/Poco/Foundation/include/Poco/FPEnvironment_WIN32.h:66: error: enumerator value for `FP_UNDERFLOW_IMPL' not integer constant
C:/Poco/Foundation/include/Poco/FPEnvironment_WIN32.h:68: error: `SW_INVALID' was not declared in this scope
C:/Poco/Foundation/include/Poco/FPEnvironment_WIN32.h:68: error: enumerator value for `FP_INVALID_IMPL' not integer constant
In file included from C:PocoFoundationsrcFPEnvironment.cpp:50:
C:PocoFoundationsrc/FPEnvironment_WIN32.cpp: In destructor `Poco::FPEnvironmentImpl::~FPEnvironmentImpl()':
C:PocoFoundationsrc/FPEnvironment_WIN32.cpp:57: error: `MCW_RC' undeclared (first use this function)
C:PocoFoundationsrc/FPEnvironment_WIN32.cpp:57: error: (Each undeclared identifier is reported only once for each function it appears in
.)
C:PocoFoundationsrc/FPEnvironment_WIN32.cpp: In static member function `static void Poco::FPEnvironmentImpl::setRoundingModeImpl(Poco::F
PEnvironmentImpl::RoundingModeImpl)':
C:PocoFoundationsrc/FPEnvironment_WIN32.cpp:88: error: `MCW_RC' undeclared (first use this function)
C:PocoFoundationsrc/FPEnvironment_WIN32.cpp: In static member function `static Poco::FPEnvironmentImpl::RoundingModeImpl Poco::FPEnviron
mentImpl::getRoundingModeImpl()':
C:PocoFoundationsrc/FPEnvironment_WIN32.cpp:94: error: `MCW_RC' undeclared (first use this function)

--

PS C:PocoFoundationsrc> g++ -c C:PocoFoundationsrcPath.cpp -o C:PocoFoundationobjPath.o -I . -I C:PocoFoundationinclude
C:PocoFoundationsrcPath.cpp: In static member function `static std::string Poco::Path::transcode(const std::string&)':
C:PocoFoundationsrcPath.cpp:1009: error: `WC_NO_BEST_FIT_CHARS' undeclared (first use this function)
C:PocoFoundationsrcPath.cpp:1009: error: (Each undeclared identifier is reported only once for each function it appears in.)
PS C:PocoFoundationsrc>


Any suggestion?

thanks,

petrux

petrux
 
Posts: 17
Joined: 07 Sep 2007, 15:30

Return to Support

Who is online

Users browsing this forum: No registered users and 3 guests

cron