Skip to content

Instantly share code, notes, and snippets.

@robUx4
Created March 10, 2015 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robUx4/1bb8fc594a7f09e52956 to your computer and use it in GitHub Desktop.
Save robUx4/1bb8fc594a7f09e52956 to your computer and use it in GitHub Desktop.
mingw netoapi.h fail in VLC
In file included from ../../../work/extras/package/win32/../../../include/vlc_common.h:43:0,
from ../../../work/extras/package/win32/../../../modules/services_discovery/upnp.hpp:34,
from ../../../work/extras/package/win32/../../../modules/services_discovery/upnp.cpp:35:
C:/msys64/mingw32/i686-w64-mingw32/include/stdlib.h:346:36: error: conflicting declaration of C function 'int atoi(const char*)'
int __cdecl atoi(const char *_Str);
^
In file included from ../config.h:815:0,
from ../../../work/extras/package/win32/../../../modules/services_discovery/upnp.cpp:32:
../../../work/extras/package/win32/../../../include/vlc_fixups.h:304:34: note: previous declaration 'NET_IFINDEX atoi(PCSTR)'
# define if_nametoindex(name) atoi(name)
^
Makefile:16399 : la recette pour la cible « services_discovery/libupnp_plugin_la-upnp.lo » a échouée
@jiajuanjuan
Copy link

Excuse me, how did you solve this compilation error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment