Jump to content
View in the app

A better way to browse. Learn more.

Tinkerunity

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Solved] Starting with Visual Studio (cpp) problems

Featured Replies

Geschrieben

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?

Geschrieben
  • Autor

Yes, I changed the names from c to cpp.

 

Update: I created a blank project in VS2013 and now I get only some linker errors in the ip_connection.obj

 

2466qlf.jpg

 

Any idea how I could solve this?

Thank for the reply  :)

Geschrieben
  • Autor

;D ;D

Thanks for that! I was very sure I had included those - I hadn't!

Now it is working!

Join the conversation

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

Gast
Reply to this topic...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.