🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.upgrade
Article #322

Re: Upgrade from 2006 to 2007 Linker String error

#322
From: Craig Farrell
Date: Wed, 20 Jun 2007 18:51
16 lines
1715 bytes
Hi,

> it tells me an ILINK32 Error: Unresolved external __fastcall 
> System::AnsiString::LoadString( void *, int ) referenced from 
> c:\myproject\o\myobject.o

It seems there is a name-mangling problem in some of the
methods that take Windows handle params in vcle.lib. vcle.lib
is the "emulation" library, the bridge from C++ to Delphi,
for things like the AnsiString class. A workaround would be to,
in the module that uses the methods, tell the linker to look
for the actual mangled name, e.g.
#pragma alias 
"@System@AnsiString@LoadStringA$qqrpvi"="@System@AnsiString@LoadStringA$qqrp11HINSTANCE__i"

--Craig
Technical Details
Message-ID: <467976ca$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4677f331$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10529a,64a7e965e9aa8e1f
X-Google-Attributes: gid10529a,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 20 Jun 2007 11:51:38 -0700
From: Craig Farrell <cNO_SPAM.please.farrell@insprise.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.upgrade
Subject: Re: Upgrade from 2006 to 2007 Linker String error
References: <4677f331$1@newsgroups.borland.com>
In-Reply-To: <4677f331$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 10.143.19.35
Message-ID: <467976ca$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1182365386 10.143.19.35 (20 Jun 2007 11:49:46 -0700)
Lines: 17
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail