Jump to content

Bindings: C/C++ 2.1.2 ip_connection


Recommended Posts

Mit den neuen Bindings kommt es beim Compilieren zu einem Fehler unter QT


D:\Software\QT Projekte\HUD\ip_connection.cpp:299: Fehler: 'size_t strnlen(const char*, size_t)' was declared 'extern' and later 'static' [-fpermissive]

static size_t strnlen(const char *s, size_t maxlen) {



c:\software\qt5.2.1\tools\mingw48_32\i686-w64-mingw32\include\string.h:55: Fehler: previous declaration of 'size_t strnlen(const char*, size_t)' [-fpermissive]

  size_t __cdecl strnlen(const char *_Str,size_t _MaxCount);



Wenn ich in ip_connection.cpp folgend Funtion auskommentiere geht alles wieder.


#ifdef __MINGW32__


static size_t strnlen(const char *s, size_t maxlen) {

const char *p = s;

size_t n = 0;


while (*p != '\0' && n < maxlen) {





return n;




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.

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...