Board index » cppbuilder » Linkage problem

Linkage problem


2005-02-07 07:09:11 AM
cppbuilder62
Although the path is set to the correct library folder containing the
referenced file, I'm getting: [Linker Error] Unresolved external '_main'
referenced from C:\PROGRAM FILES\BORLAND\CBUILDER5\LIB\C0X32.OBJ
I'm using a form, and including a class (Time.cpp). Thanks
___________________________________
#include <vcl.h>
#pragma hdrstop
#include "UseTime.h"
#include "Time.cpp"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
using namespace std;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
Timeh A;
A.Show();
}
 
 

Re:Linkage problem

On Sun, 6 Feb 2005 15:09:11 -0800, John Peters wrote:
Quote
I'm using a form, and including a class (Time.cpp). Thanks
Create a new application, this time as a VCL app.
--
Good luck,
liz
 

Re:Linkage problem

Thanks Liz, that worked.
"Liz Albin" < XXXX@XXXXX.COM >wrote in message
Quote
On Sun, 6 Feb 2005 15:09:11 -0800, John Peters wrote:

>I'm using a form, and including a class (Time.cpp). Thanks

Create a new application, this time as a VCL app.
--
Good luck,

liz
 

{smallsort}