Overview
Features
Download
Documentation
Community
Add-Ons & Services

Problem with FPEnvironment_WIN32.h in MinGW

Please post support and help requests here.

Problem with FPEnvironment_WIN32.h in MinGW

Postby Lee » 24 May 2009, 09:44

Hello, I trying to compile Poco Fundation Lib in Code::Blocks with MinGW but I have problem in FPEnvironment_WIN32.h with undeclared values

My build log

Code: Select all
-------------- Build: debug_shared Win32 in Foundation ---------------

Compiling: src\FPEnvironment.cpp
In file included from D:\Maciek\Prace\Programowanie\C++\depend\poco-1.3.5\Foundation\src\FPEnvironment_WIN32.cpp:37,
                 from D:\Maciek\Prace\Programowanie\C++\depend\poco-1.3.5\Foundation\src\FPEnvironment.cpp:50:
./include/Poco/FPEnvironment_WIN32.h:56: error: `RC_DOWN' was not declared in this scope
./include/Poco/FPEnvironment_WIN32.h:56: error: enumerator value for `FP_ROUND_DOWNWARD_IMPL' not integer constant
./include/Poco/FPEnvironment_WIN32.h:57: error: `RC_UP' was not declared in this scope
./include/Poco/FPEnvironment_WIN32.h:57: error: enumerator value for `FP_ROUND_UPWARD_IMPL' not integer constant
./include/Poco/FPEnvironment_WIN32.h:58: error: `RC_NEAR' was not declared in this scope
./include/Poco/FPEnvironment_WIN32.h:58: error: enumerator value for `FP_ROUND_TONEAREST_IMPL' not integer constant
./include/Poco/FPEnvironment_WIN32.h:60: error: `RC_CHOP' was not declared in this scope
./include/Poco/FPEnvironment_WIN32.h:60: error: enumerator value for `FP_ROUND_TOWARDZERO_IMPL' not integer constant
./include/Poco/FPEnvironment_WIN32.h:63: error: `SW_ZERODIVIDE' was not declared in this scope
./include/Poco/FPEnvironment_WIN32.h:63: error: enumerator value for `FP_DIVIDE_BY_ZERO_IMPL' not integer constant
./include/Poco/FPEnvironment_WIN32.h:64: error: `SW_INEXACT' was not declared in this scope
./include/Poco/FPEnvironment_WIN32.h:64: error: enumerator value for `FP_INEXACT_IMPL' not integer constant
./include/Poco/FPEnvironment_WIN32.h:65: error: `SW_OVERFLOW' was not declared in this scope
./include/Poco/FPEnvironment_WIN32.h:65: error: enumerator value for `FP_OVERFLOW_IMPL' not integer constant
./include/Poco/FPEnvironment_WIN32.h:66: error: `SW_UNDERFLOW' was not declared in this scope
./include/Poco/FPEnvironment_WIN32.h:66: error: enumerator value for `FP_UNDERFLOW_IMPL' not integer constant
./include/Poco/FPEnvironment_WIN32.h:68: error: `SW_INVALID' was not declared in this scope
./include/Poco/FPEnvironment_WIN32.h:68: error: enumerator value for `FP_INVALID_IMPL' not integer constant
In file included from D:\Maciek\Prace\Programowanie\C++\depend\poco-1.3.5\Foundation\src\FPEnvironment.cpp:50:
D:\Maciek\Prace\Programowanie\C++\depend\poco-1.3.5\Foundation\src\FPEnvironment_WIN32.cpp: In destructor `Poco::FPEnvironmentImpl::~FPEnvironmentImpl()':
D:\Maciek\Prace\Programowanie\C++\depend\poco-1.3.5\Foundation\src\FPEnvironment_WIN32.cpp:57: error: `MCW_RC' was not declared in this scope
D:\Maciek\Prace\Programowanie\C++\depend\poco-1.3.5\Foundation\src\FPEnvironment_WIN32.cpp: In static member function `static void Poco::FPEnvironmentImpl::setRoundingModeImpl(Poco::FPEnvironmentImpl::RoundingModeImpl)':
D:\Maciek\Prace\Programowanie\C++\depend\poco-1.3.5\Foundation\src\FPEnvironment_WIN32.cpp:88: error: `MCW_RC' was not declared in this scope
D:\Maciek\Prace\Programowanie\C++\depend\poco-1.3.5\Foundation\src\FPEnvironment_WIN32.cpp: In static member function `static Poco::FPEnvironmentImpl::RoundingModeImpl Poco::FPEnvironmentImpl::getRoundingModeImpl()':
D:\Maciek\Prace\Programowanie\C++\depend\poco-1.3.5\Foundation\src\FPEnvironment_WIN32.cpp:94: error: `MCW_RC' was not declared in this scope
Process terminated with status 1 (0 minutes, 0 seconds)
21 errors, 0 warnings
 
Lee
 
Posts: 3
Joined: 24 May 2009, 09:29

Re: MinGW problem with FPEnvironment_WIN32.h

Postby guenter » 24 May 2009, 10:42

#define the macro POCO_NO_FPENVIRONMENT before compiling POCO. Also, see build/config/MinGW for possible other options that should be set.
guenter
 
Posts: 1129
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: Problem with FPEnvironment_WIN32.h in MinGW

Postby Lee » 24 May 2009, 11:00

Thanks, but there are next errors :

Code: Select all

-------------- Build: debug_shared Win32 in Foundation ---------------

Compiling: src\FileStream.cpp
In file included from D:\Maciek\Prace\Programowanie\C++\depend\poco-1.3.5\Foundation\src\FileStream.cpp:40:
D:\Maciek\Prace\Programowanie\C++\depend\poco-1.3.5\Foundation\src\FileStream_WIN32.cpp: In constructor `Poco::FileStreamBuf::FileStreamBuf()':
D:\Maciek\Prace\Programowanie\C++\depend\poco-1.3.5\Foundation\src\FileStream_WIN32.cpp:52: error: invalid conversion from `int' to `std::_Ios_Openmode'
D:\Maciek\Prace\Programowanie\C++\depend\poco-1.3.5\Foundation\src\FileStream_WIN32.cpp:52: error:   initializing argument 2 of `Poco::BasicBufferedBidirectionalStreamBuf<ch, tr, ba>::BasicBufferedBidirectionalStreamBuf(std::streamsize, typename std::basic_ios<_CharT, _Traits>::openmode) [with ch = char, tr = std::char_traits<char>, ba = Poco::BufferAllocator<char>]'
Process terminated with status 1 (0 minutes, 0 seconds)
2 errors, 0 warnings
 

 
Lee
 
Posts: 3
Joined: 24 May 2009, 09:29

Re: Problem with FPEnvironment_WIN32.h in MinGW

Postby Lee » 25 May 2009, 15:17

Can somebody help me? I'm in a hurry
Lee
 
Posts: 3
Joined: 24 May 2009, 09:29


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron