[Linker Error] for c++
[Linker Error] for c++
(OP)
I was just trying to make sure I can get a program to run, so i typed in the simple display message
#include <iostream.h>
void main()
{
cout << "Hello World";
}
I got 2 errors
[Linker Error] Unresolved external '_Form1' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER5\PROJECTS\PROJECT2.OBJ
[Linker Error] Unresolved external 'TForm1::' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER5\PROJECTS\PROJECT2.OBJ
Help me on this please.
#include <iostream.h>
void main()
{
cout << "Hello World";
}
I got 2 errors
[Linker Error] Unresolved external '_Form1' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER5\PROJECTS\PROJECT2.OBJ
[Linker Error] Unresolved external 'TForm1::' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER5\PROJECTS\PROJECT2.OBJ
Help me on this please.





RE: [Linker Error] for c++
RE: [Linker Error] for c++
I basically have a log in form which directs you to the main form once authentication (username and password) is done.
I am trying to bypass the login form and want to go directly to the main form. This is the change i made in the WinMain
Application->Initialize();
//Application->CreateForm(__classid(TfrmLogin), &frmLogin);
Application->CreateForm(__classid(TfrmMain), &frmMain);
Application->Run();
The log in form works fine but when i try the main form, i get the following error
[Linker Error] Unresolved external '_frmMain' referenced from D:\NEWTESTING\MYProjectSHELL.OBJ