I've been devolping an application with Dev-C++ using the w32api and the WinInet library. Everything seems to work well, accept it seems that the InternetReadFileEx() function isnt supported. I'm linking my program with Wininet and wsock32, and I am including the winsock and winet header files. The compiler reports:
"main.o(.text+0xe1e):main.c: undefined reference to `InternetReadFileEx'"
I believe this is some sort of bug or something, as all of the other wininet functions have worked, but not this one. Unfortunate because it's impossible to do asynchronous communiactions without this function. Sigh.
In case anyone else has this problem, I've found out that its a problem with mingw wininet.h header file not including the definiton. You can resolve the issue by grabing the cvs win32api of mingw, and just overwriting your wininet.h with the one form the cvs. Seems to work fine now.
Hello,
I've been devolping an application with Dev-C++ using the w32api and the WinInet library. Everything seems to work well, accept it seems that the InternetReadFileEx() function isnt supported. I'm linking my program with Wininet and wsock32, and I am including the winsock and winet header files. The compiler reports:
"main.o(.text+0xe1e):main.c: undefined reference to `InternetReadFileEx'"
I believe this is some sort of bug or something, as all of the other wininet functions have worked, but not this one. Unfortunate because it's impossible to do asynchronous communiactions without this function. Sigh.
Info regarding the InternetReadFileEx function can be found here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/internetreadfileex.asp
Can anyone offer some advice?
In case it matters, I forgot to mention that I'm using version 4.9.5.0
In case anyone else has this problem, I've found out that its a problem with mingw wininet.h header file not including the definiton. You can resolve the issue by grabing the cvs win32api of mingw, and just overwriting your wininet.h with the one form the cvs. Seems to work fine now.
Some info on the problem can be found here:
http://www.geocrawler.com/archives/3/6013/2002/7/0/9198178/
and here:
http://www.geocrawler.com/archives/3/6013/2002/7/0/9199151/