Article View: borland.public.cppbuilder.nativeapi
Article #14323Re: whats the solution of this linker error ????
From: Bob Gonder
Date: Fri, 15 Aug 2003 23:25
Date: Fri, 15 Aug 2003 23:25
22 lines
1926 bytes
1926 bytes
US Kazi wrote: ># include "BytioXP.h" //manufacturer's provided header file// > >extern "C" > >void __import __stdcall OutVal(unsigned short IOAddress, unsigned short Value); >short __import __stdcall InpVal(unsigned short IOAddress); Why is only OutVal extern "C", and not InpVal? Also, why do you list these? Are they not in "BytioXP.h"? If not, then you need to write them. >[Linker Error] Unresolved external 'OutVal' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER4\PROJECTS\PROJECT2.OBJ. >[Linker Error] Unresolved external 'InpVal' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER4\PROJECTS\PROJECT2.OBJ. Use TLIB to list the contents of the BytioXP.lib file and check carefully for the exact spelling (leading underscores, or whatever) of those functions. As a last resort, you can always use LoadLibrary and GetProcAddress to link up at run-time.
Technical Details
Message-ID:
<ghqqjvk9l8vunul1hok4ur8cjghln77ii1@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f3a54d1$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,c04482dd09229097 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-15 16:39:30 PST From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: whats the solution of this linker error ???? Date: Fri, 15 Aug 2003 16:25:32 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <ghqqjvk9l8vunul1hok4ur8cjghln77ii1@4ax.com> References: <3f3a54d1$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 65.58.81.246 X-Trace: newsgroups.borland.com 1060989930 65.58.81.246 (15 Aug 2003 16:25:30 -0700) Lines: 24 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail