Article View: borland.public.cppbuilder.nativeapi
Article #13366Re: Linker error question
From: Ed Mulroy [TeamB]
Date: Tue, 14 Oct 2003 01:21
Date: Tue, 14 Oct 2003 01:21
23 lines
1820 bytes
1820 bytes
When you included the header file you provided a definition of the function for the compiler to use. Later the linker wants to put all the pieces together and because unit2.obj calls the function it tries find the actual code for the function. The code exists in a DLL so the linker would be satisfied with an import library that told it the function name and DLL name. For FindFirstUrlCacheEntryA the import library is WININET.LIB Add that library to your project. . Ed > Martin C wrote in message > news:3f8b4cdb@newsgroups.borland.com... > > I have a strange linker error as follows: > > [Linker Error] Unresolved external 'FindFirstUrlCacheEntryA' > referenced from C:\MY PROJECTS\SAMPLE\UNIT2.OBJ > > although I already included #include <wininet.h> as described > in msdn for the FindFirstUrlCacheEntryA function, so what > exactly I am missing here !!!
Technical Details
Message-ID:
<3f8b4fbd$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f8b4cdb@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,a512a54962c39fcd X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-10-13 18:39:25 PST From: "Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f8b4cdb@newsgroups.borland.com> Subject: Re: Linker error question Date: Mon, 13 Oct 2003 21:21:53 -0400 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 24.74.175.102 Message-ID: <3f8b4fbd$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1066094525 24.74.175.102 (13 Oct 2003 18:22:05 -0700) X-Authenticated-User: edmulroy Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail