Victor
Victor

Reputation: 941

Can't compile project because of wininet library

I cloned a project from github to my computer and I'm trying to compile it but I'm getting a crazy amount of errors regarding references to libraries and stuff. I uploaded the project from another computer and it works just fine in that computer. Here are the errors I'm getting:

enter image description here

There are more errors but these are enough. As you can see the issue is within the included libraries (which are static), so I'm not sure what I'm missing here, because the linking to the wininet library and such are fine.

Maybe its an inconsistency between x86 and x64? I dunno.

The path to the c++ compiler:

C:\Program Files (x86)\mingw-w64\i686-5.2.0-win32-dwarf-rt_v4-rev0\mingw32\bin\c++.exe

Path to library

C:\Program Files (x86)\mingw-w64\i686-5.2.0-win32-dwarf-rt_v4-rev0\mingw32\include\wininet.h

I followed these steps to configure this environment:
-Downloaded netbeans
-Downloaded mingwin
-Downloaded msys

Its weird because when ctrl + click the wininet.h and variable types and everything it directs me to where they're declared, however the environment can't locate them.

If you need more information please tell me.

Thanks!

Upvotes: 1

Views: 1933

Answers (1)

MSalters
MSalters

Reputation: 180145

There's no such thing as "the WinInet" library that you can download. This is all part of the Windows SDK. LPVOID for instance is defined after you include <windows.h>

Upvotes: 2

Related Questions