Re: [Quickfix-developers] quickfix-1.12.4 unit test failures in SessionTestCase.cpp
Brought to you by:
orenmnero
From: Peter L. <pet...@eQ...> - 2009-04-24 16:33:27
|
Hi Max, > On the other hand, when I build it using Sun Studio compiler (Sun C++ 5.9 > SunOS_i386 Patch 124864-09 2008/12/16) the unit test produces the following > output: I ran into the same trouble. There are a couple of lines in that file like this: switch ( msgType.getValue() [ 0 ] ) Somehow - weird enough - the compiler cannot branch properly here, as the data type is char, instead of int. If you replace these lines with: switch ( int(msgType.getValue() [ 0 ]) ) then all unit tests will pass. > In other words, I have to filter out gcc specific flags from all the > makefiles to make a successful build with the Sun Studio compiler. Just for info, as I ran into the same problem last week and solved a bit differently: One can also remove these flags from SHAREDFLAGS variable by editing the configure script. Peter |