|
From: Philippe de R. <pr...@cl...> - 2001-01-01 22:48:42
|
Hello,
I get the following linker messages when compiling the program below :
c:\dev-c++\projets\wininet\fetchtext\fetchtext1.o: In function `main':
//c/dev-c++/projets/wininet/fetchtext/fetchtext1.cpp:15: undefined =
reference to `InternetOpenA@20'
//c/dev-c++/projets/wininet/fetchtext/fetchtext1.cpp:19: undefined =
reference to `InternetCloseHandle@4'
Can you see anything wrong with my code? What does 'undefined reference' =
mean?
Many thanks.
Philippe de Rochambeau
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Program =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
#include <windows.h>
#include <wininet.h>
#include <iostream>
#include <string>
using namespace std;
#define BUFFLEN 255
int main()
{
string m_strURL =3D "http://localhost";
string m_strResult;
HINTERNET hSession =3D InternetOpen("FetchText1", =
INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0);
if (hSession) {
InternetCloseHandle(hSession);
}
return 0;
=20
|