roshbaik2 / open-zwave

Automatically exported from code.google.com/p/open-zwave
0 stars 0 forks source link

Compilation by MinGW on Windows XP 32bit fails #261

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Compilation by MinGW on Windows XP 32bit fails with the following error:
g++ -c -Wall -Wno-format -g -DDEBUG -DLOG_STDERR -DMINGW -I ../../../src -I ../.
./../src/command_classes/ -I ../../../src/value_classes/ -I 
../../../src/platform/ -I ../../../src/platform/windows -I ../../../tinyxml/ -I 
../../../hidapi/hidapi/ -o Wait.o ../../../src/platform/Wait.cpp
../../../src/platform/Wait.cpp: In static member function 'static int32 
OpenZWave::Wait::Multiple(OpenZWave::Wait**, uint32, int32)':
../../../src/platform/Wait.cpp:145:41: error: 'snprintf' was not declared in 
this scope
     snprintf(buf, sizeof(buf), "%d, ", i);
                                         ^
Makefile:48: recipe for target 'Wait.o' failed
mingw32-make: *** [Wait.o] Error 1

Original issue reported on code.google.com by Vadim.Ka...@gmail.com on 17 Jan 2014 at 10:32

GoogleCodeExporter commented 9 years ago
I was using revision 711 and mingw-get 0.6.2  installation.

Original comment by Vadim.Ka...@gmail.com on 17 Jan 2014 at 10:36

GoogleCodeExporter commented 9 years ago
Hi,
I assume this was using the trunk version of OZW? Could you test the branch 
version and see if its still got a issue?

(svn checkout 
http://open-zwave.googlecode.com/svn/branches/2013-11-13_release_testing/ 
open-zwave)

Original comment by jus...@dynam.ac on 23 Jan 2014 at 4:59

GoogleCodeExporter commented 9 years ago
I tried to build from mentioned branch but still build failed however with 
another error:

../../../src/platform/windows/LogImpl.cpp:40:1: error: 'errno_t' does not name 
a type
 errno_t fopen_s(FILE** pFile, const char *filename, const char *mode)
 ^
In file included from 
../../../src/platform/windows/LogImpl.cpp:32:0:../../../src/platform/windows/Log
Impl.h: 
In constructor 'OpenZWave::LogImpl::Log
Impl(const string&, bool, bool, OpenZWave::LogLevel, OpenZWave::LogLevel, 
OpenZWave::LogLevel)':
../../../src/platform/windows/LogImpl.h:61:8: warning: 
'OpenZWave::LogImpl::m_bAppendLog' will be initialized after [-Wreorder]
   bool m_bAppendLog;      /**< if true, the log file should be appended to any with the same name */
        ^
../../../src/platform/windows/LogImpl.h:60:8: warning:   'bool 
OpenZWave::LogImpl::m_bConsoleOutput' [-Wreorder]
   bool m_bConsoleOutput;     /**< if true, send log output to console as well as to the file */
        ^
../../../src/platform/windows/LogImpl.cpp:68:1: warning:   when initialized 
here [-Wreorder]LogImpl::LogImpl
../../../src/platform/windows/LogImpl.cpp:99:62: error: 'fopen_s' was not 
declared in this scope
  if( !fopen_s( &pFile, _filename.c_str(), accessType.c_str() ) )
                                                              ^
../../../src/platform/windows/LogImpl.cpp: In member function 'virtual void 
OpenZWave::LogImpl::Write(OpenZWave::LogLevel, uint8, const char*, va_list)':
../../../src/platform/windows/LogImpl.cpp:150:50: error: 'fopen_s' was not 
declared in this scope
    if( !fopen_s( &pFile, m_filename.c_str(), "a" ) || m_bConsoleOutput )
                                                  ^
Makefile:48: recipe for target 'LogImpl.o' failed
mingw32-make: *** [LogImpl.o] Error 1

Original comment by Vadim.Ka...@gmail.com on 1 Feb 2014 at 5:19

GoogleCodeExporter commented 9 years ago
I just committed some more fixes to the Trunk in revision 756 - Appreciate if 
you can test these ones out

Original comment by jus...@dynam.ac on 20 Feb 2014 at 6:58