Hi,
I am having problems with C++ builder 3 using .OBJ files that were compiled
using Delphi 4
I made some .OBJ files from my .PAS files that work fine in Delphi. I can
compile my C++ app, but I always get Linker Errors.
The .OBJ files were created by compiling the .PAS files in Delphi's command
line compiler.
Note: I do not want to use .PAS files in C++ builder, I want to use .OBJ
files as they are for components we want to distribute as shareware.
This is the error
[LinkerError] Unresolved external
'Addate::FormatDate(System::AnsiString,System::TDateTime) __fastcall'
referenced from E:\MY DOCUMENTS\UNIT1.OBJ.
The project was very simple, this is the project source code.
file://---------------------------------------------------------------------
-----
-
#include <vcl.h>
#pragma hdrstop
USERES("Adrock.res");
USEPACKAGE("vcl35.bpi");
USEOBJ("c:\Adrock\BCP\adcollec.OBJ");
USEOBJ("c:\Adrock\BCP\addate.OBJ");
USEOBJ("c:\Adrock\BCP\addecdat.OBJ");
USEOBJ("c:\Adrock\BCP\addscan.OBJ");
USEOBJ("c:\Adrock\BCP\admnth.OBJ");
USEOBJ("c:\Adrock\BCP\adweek.OBJ");
USEOBJ("c:\Adrock\BCP\trim.OBJ");
file://---------------------------------------------------------------------
------
#pragma package(smart_init)
file://---------------------------------------------------------------------
------
// Package source.
file://---------------------------------------------------------------------
------
int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void*)
{
return 1;
}
file://------------
Any ideas why the link fails, the FormatDate function is defined in
AdDate.PAS, which should be in AdDate.OBJ
I assume that by the USEOBJ statements above I am doing everything I must?
Chris Crowe
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz