milleniumbug / yet_another_process_library

MIT License
0 stars 0 forks source link

Doesn't build on Windooze #1

Open nabijaczleweli opened 8 years ago

nabijaczleweli commented 8 years ago
d:\yet_another_process_library\build>cmake -GNinja ..
-- The C compiler identification is GNU 5.3.0
-- The CXX compiler identification is GNU 5.3.0
-- Check for working C compiler using: Ninja
-- Check for working C compiler using: Ninja -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler using: Ninja
-- Check for working CXX compiler using: Ninja -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Boost version: 1.60.0
-- Found the following Boost libraries:
--   system
--   filesystem
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: D:/yet_another_process_library/build

d:\yet_another_process_library\build>ninja
[1/14] Building CXX object CMakeFiles/yet_another_process_library.dir/src/process.cpp.obj
FAILED: D:\Programy\Programowanie\msys2\mingw64\bin\g++.exe    -I../include -Wall -Wextra -pedantic -Wno-unused-parameter -std=c++11 -MMD -MT CMakeFiles/yet_another_process_library.dir/src/process.cpp.obj -MF CMakeFiles/yet_another_process_library.dir/src/process.cpp.obj.d -o CMakeFiles/yet_another_process_library.dir/src/process.cpp.obj -c ../src/process.cpp
../src/process.cpp:154:7: error: prototype for 'void yet_another_process_library::process::write(boost::string_ref)' does not match any in class 'yet_another_process_library::process'
  void process::write(boost::string_ref input)
       ^
In file included from ../src/process.cpp:6:0:
../include/yet_another_process_library/process.hpp:69:8: error: candidate is: bool yet_another_process_library::process::write(boost::string_ref)
   bool write(boost::string_ref input);
        ^
../src/process.cpp: In member function 'bool yet_another_process_library::process::is_finished()':
../src/process.cpp:162:2: warning: no return statement in function returning non-void [-Wreturn-type]
  }
  ^
../src/process.cpp: In member function 'boost::optional<int> yet_another_process_library::process::get_exit_status()':
../src/process.cpp:167:2: warning: no return statement in function returning non-void [-Wreturn-type]
  }
  ^
../src/process.cpp: In member function 'void* yet_another_process_library::process::native_handle()':
../src/process.cpp:182:2: warning: no return statement in function returning non-void [-Wreturn-type]
  }
  ^
ninja: build stopped: subcommand failed.

d:\yet_another_process_library\build>git log -1 --pretty=oneline
be8976c22a76ed98c52f4284f5867dd435044a49 removed unnecessary semicolon

d:\yet_another_process_library\build>g++ --version
g++ (Rev5, Built by MSYS2 project) 5.3.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

OS: Windows 10 x86_64

milleniumbug commented 8 years ago

Windows version is not implemented at all (which can be clearly seen by inspecting the source), but thanks for the info.

TODO: implement it on Windows.