Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Xerces in RadStudio 2007 or BDS2006?

121 views
Skip to first unread message

Sean Hoffman

unread,
Sep 19, 2007, 3:27:23 PM9/19/07
to
Note this has a QC report:

http://qc.borland.com/wc/qcmain.aspx?d=22814

On Wed, 19 Sep 2007 14:24:19 -0500, Sean Hoffman
<seandontspammehoffAtgmailDOTcom> wrote:
<snip>

Sean Hoffman

unread,
Sep 19, 2007, 3:24:19 PM9/19/07
to
Has anyone successfully built Xerces in either 2006 or 2007? I'm
getting the same linker error trying to build xerces 2.8 in 2007 that
I did in BDS 2006:

[ILINK32 Error] Error: Unresolved external '__InitVCL' referenced from
C:\RADSTUDIO\LIB\CP32MTI.LIB|crtlvcl
[ILINK32 Error] Error: Unresolved external '__ExitVCL' referenced from
C:\RADSTUDIO\LIB\CP32MTI.LIB|crtlvcl

I have seen elsewhere that the recommended "solution" to this is to
build the project using the static library, but that caused even more
problems for me:

[ILINK32 Error] Error: Unresolved external '__ClassCreate' referenced
from C:\RADSTUDIO\LIB\CP32MT.LIB|xx
[ILINK32 Error] Error: Unresolved external '__BeforeDestruction'
referenced from C:\RADSTUDIO\LIB\CP32MT.LIB|xx
[ILINK32 Error] Error: Unresolved external '__fastcall
System::AnsiString::~AnsiString()' referenced from
C:\RADSTUDIO\LIB\CP32MT.LIB|xx
[ILINK32 Error] Error: Unresolved external '__ClassDestroy' referenced
from C:\RADSTUDIO\LIB\CP32MT.LIB|xx
[ILINK32 Error] Error: Unresolved external '__fastcall
System::AnsiString::AnsiString(const System::AnsiString&)' referenced
from C:\RADSTUDIO\LIB\CP32MT.LIB|xx
[ILINK32 Error] Error: Unresolved external '__AfterConstruction'
referenced from C:\RADSTUDIO\LIB\CP32MT.LIB|xx
[ILINK32 Error] Error: Unresolved external '__fastcall
System::AnsiString::AnsiString(const char *)' referenced from
C:\RADSTUDIO\LIB\CP32MT.LIB|xx
[ILINK32 Error] Error: Unresolved external '__InitVCL' referenced from
C:\RADSTUDIO\LIB\CP32MT.LIB|crtlvcl
[ILINK32 Error] Error: Unresolved external '__ExitVCL' referenced from
C:\RADSTUDIO\LIB\CP32MT.LIB|crtlvcl

Thanks in advance..

Sean Hoffman

unread,
Sep 24, 2007, 2:31:08 PM9/24/07
to
I solved this by using the BCC.551 project files rather than the BCB6
Project files.


Message has been deleted

Bizio

unread,
Nov 15, 2007, 9:26:29 AM11/15/07
to
On Sep 24, 1:31 pm, "Sean Hoffman" <seanhoffremovethispart@google's

mail.com> wrote:
> I solved this by using the BCC.551 project files rather than the BCB6
> Project files.

I was wondering if you could explain how you did this. I am looking to
use them and am getting the same error. In
looking at the BCC.551, I do not see a borland project file, although
the make file is present. Do I need to create my own project group and
add the files to it?

Tomohiro Takahashi

unread,
Dec 4, 2007, 3:14:23 AM12/4/07
to
Hi,

I guess this error occurs because 'XercesLib.bpr' basically depends on VCL library,
but the .bpr is NOT configured properly.
So, please try this step to build 'XercesLib.dll' with BDS2006(RAD2007).

[Step1]
In 'C:\xerces-c-src_2_8_0\Projects\Win32\BCB6\Xerces-all\XercesLib\XercesLib.bpr',
add 'sysinit.obj' and change 'cw32mti.lib' to 'cp32mti.lib' as below.
---------------------
<ALLOBJ value="c0d32.obj $(PACKAGES) Memmgr.Lib sysinit.obj $(OBJFILES)"/>
<ALLRES value="$(RESFILES)"/>
<ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cp32mti.lib"/>
---------------------

[Step2]
In 'C:\xerces-c-src_2_8_0\Projects\Win32\BCB6\Xerces-all\XercesLib\Xerceslib.cpp',
add #include <vcl.h> as below.
---------------------
#include <vcl.h> // <-- added
#include <windows.h>
---------------------

[Step3]
Open 'XercesLib.bpr' with BDS2006 in order to convert .bpr to .bdsproj

[Step4]
Add '$(BDS)\include\vcl' at project option to include 'vcl.h'.

[Step5]
Build the XercesLib project.


--
Regards,
KEN <TAKAHASHI, Tomohiro>

Bizio

unread,
Dec 5, 2007, 9:55:54 AM12/5/07
to
I would just like to say Thank you for this. it compiled well
(although there were 505 warnings, but they didn't look like issues)
Only thing that didn't compile was the SAX2Print sample program, but
that's no big deal for what I am working with.

Again, thank you.

0 new messages