Board index » cppbuilder » Linkage problem
John Peters
![]() CBuilder Developer |
Linkage problem2005-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(); } |