Jump to content

djungelorm

Members
  • Posts

    379
  • Joined

  • Last visited

Status Replies posted by djungelorm

  1. Hi Djungelorm, 

     

    I'm trying to start to develop some rocket control systems using your KRPC C++ client from the Git source. I have the boost and google protobuf source/header dependencies referenced in my Visual Studio 2013 (Version 12). I know C++ pretty well I thought...but it looks like I am still missing some things to get your C++ client compiling.

    What is your recommended build flow for the C++ client source you have in the git here: https://github.com/djungelorm/krpc/tree/latest-version/cpp 

    Just trying to compile your first connect to server example here: http://djungelorm.github.io/krpc/docs/cpp/client.html

    I'm ignoring the strerror warnings for now. But the it looks like this compiler doesn't like this "schema" keyword. I have actually never seen that either. Any ideas? Thank you in advance for any help you can provide or even looking at this post. I know this is just a hobby. I'll keep hacking. And thank you for all the great work so far. The Python library fired right up :D but I already have C++ control code I wanted to test out. 

    1>------ Build started: Project: kRPC_test1, Configuration: Debug Win32 ------
    1>  main.cpp
    1>c:\devlib\boost\boost_1_60_0\boost\exception\errinfo_errno.hpp(36): error C4996: 'strerror': This function or variable may be unsafe. Consider using strerror_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    1>          c:\program files (x86)\microsoft visual studio 12.0\vc\include\string.h(168) : see declaration of 'strerror'
    1>  Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example:
    1>  - add -D_WIN32_WINNT=0x0501 to the compiler command line; or
    1>  - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions.
    1>  Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).
    1>c:\devlib\kerbal_dev\krpc\cpp\include\krpc\client.hpp(16): error C2653: 'schema' : is not a class or namespace name
    1>c:\devlib\kerbal_dev\krpc\cpp\include\krpc\client.hpp(16): error C2146: syntax error : missing ';' before identifier 'request'
    1>c:\devlib\kerbal_dev\krpc\cpp\include\krpc\client.hpp(16): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\devlib\kerbal_dev\krpc\cpp\include\krpc\client.hpp(18): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\devlib\kerbal_dev\krpc\cpp\include\krpc\client.hpp(18): warning C4183: 'request': missing return type; assumed to be a member function returning 'int'
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

     

    Thank you, 

    -r0salesr

    1. djungelorm

      djungelorm

      Hi, looks like I stupidly linked to a source tree that is missing a bunch of generated headers and source files.. . Oops sorry.

      Can you try using this instead: https://github.com/djungelorm/krpc/releases/download/v0.2.0/krpc-cpp-0.2.0.zip and also update the mod to version 0.2.0 (which I just released).

      I've updated the various download links on the forum and docs to point at this archive so hopefully no one else has the same trouble. Let me know if you have any other issues - happy to help!

×
×
  • Create New...