Jump to content

[Solved] Starting with Visual Studio (cpp) problems


trinker

Recommended Posts

Hi Guys,

 

I just got my master brick and a couple of other bricklets today and they work well with the brick daemon and viewer combination. I also could read out values from the temperature bricklet in Python.

 

Problem:

I need to integrate the temp sesnsor bricklet with a project in C++. I followed the instructions given on this page. http://www.tinkerforge.com/en/doc/Software/API_Bindings_C.html#api-bindings-c

 

The directory structure etc. is taken care of. I have also added -

#include <cstdint>

#include <stdint.h>

and

using namespace std;

 

I am still getting over a hundred instances of these two errors:

  • error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  • error C2146: syntax error : missing ';' before identifier 'header'
     

 

I know it has to do with C -> C++ bindings. The question is, has anybody already found a solution to this?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...