http://qc.borland.com/wc/qcmain.aspx?d=22814
On Wed, 19 Sep 2007 14:24:19 -0500, Sean Hoffman
<seandontspammehoffAtgmailDOTcom> wrote:
<snip>
[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..
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?
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>
Again, thank you.