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.

Featured Replies

Geschrieben

Hab gerade die neuen Bindings herunter geladen.

Beim Übersetzen wurde vom Compiler bemängelt das die Konstante INT32_MAX nicht definiert ist.

Hab festgestellt das in der ipconnection.c die Zeile #define INT32_MAX    _I32_MAX fehlt,

Habe sie ergänzt und nun geht das Compilieren wieder.

 

#ifndef _WIN32
#include <unistd.h>
#include <sys/types.h>
#include <sys/time.h> // gettimeofday
#include <sys/socket.h> // connect
#include <sys/select.h>
#include <netdb.h> // gethostbyname
#endif

#define INT32_MAX    _I32_MAX

#define MAX_BASE58_STR_SIZE 13
const char BASE58_STR[] = \
"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ";

#ifdef _WIN32

Geschrieben

Ich hab hier gerade nur MSVC 2010 zur Hand und da ist stdint.h vollständig.

 

Kannst du mir deine MSVC 2008er stdint.h zukommen lassen, z.B. durch Anhängen an einen Post?

 

Sollte ca. hier zu finden sein:

C:\Program Files\Microsoft Visual Studio 9.0\VC\include

Geschrieben

Ich wollte gerade das limits-include raussuchen, bin dann aber hierüber gestolpert:

http://stackoverflow.com/questions/3233054/error-int32-max-was-not-declared-in-this-scope

 

Zitat:

"C++ implementations should define these macros only when __STDC_LIMIT_MACROS is defined before is included".

 

So try:

#define __STDC_LIMIT_MACROS
#include <stdint.h>

Geschrieben

Okay, das ist stdint.h von hier

 

http://msinttypes.googlecode.com/svn/trunk/stdint.h

 

Dass heißt dann wohl, dass MSVC 2008 nocht keine stdint.h hat und du es selbst beigelegt hast. MSVC 2010 hat einen eigenen stdint.h und der braucht __STDC_LIMIT_MACROS nicht für C++.

 

Ich geben also AuronX recht, wir bauchen hier __STDC_LIMIT_MACROS auch wenn es sich um C Code handelt. Aber unter MSVC wird der als C++ kompiliert.

 

Ich werde das so verwenden, damit es keinen Macroredefinition Fehler gibt, falls man __STDC_LIMIT_MACROS schon als Compilerdefine setzt.

 

#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS
#endif
#include <stdint.h>

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.