Z
zero_dot
Unregistered / Unconfirmed
GUEST, unregistred user!
login.cpp代码
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "login.h"
#include "main.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
Tlogin_on *login_on;
String c_name;
//---------------------------------------------------------------------------
__fastcall Tlogin_on::Tlogin_on(TComponent* Owner)
: TForm(Owner)
{
}
^^^^^^^^^^^^^^^^^^^^^^
main.cpp代码
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "PERFGRAP"
#pragma resource "*.dfm"
#pragma package(smart_init)
int flag,flagb,flagi,flagu;
String c_ip[100];
Tmainfrm *mainfrm;
extern String c_name;
//---------------------------------------------------------------------------
__fastcall Tmainfrm::Tmainfrm(TComponent* Owner)
: TForm(Owner)
{
}
^^^^^^^^^^^^^
我这样申明以后怎么在执行的时候出现
[Linker Error] Unresolved external '__fastcall Tlogin_on::FormCreate(System::TObject *)' referenced from H:/聊天室5.20/LOGIN.OBJ
不知道怎么回事
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "login.h"
#include "main.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
Tlogin_on *login_on;
String c_name;
//---------------------------------------------------------------------------
__fastcall Tlogin_on::Tlogin_on(TComponent* Owner)
: TForm(Owner)
{
}
^^^^^^^^^^^^^^^^^^^^^^
main.cpp代码
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "PERFGRAP"
#pragma resource "*.dfm"
#pragma package(smart_init)
int flag,flagb,flagi,flagu;
String c_ip[100];
Tmainfrm *mainfrm;
extern String c_name;
//---------------------------------------------------------------------------
__fastcall Tmainfrm::Tmainfrm(TComponent* Owner)
: TForm(Owner)
{
}
^^^^^^^^^^^^^
我这样申明以后怎么在执行的时候出现
[Linker Error] Unresolved external '__fastcall Tlogin_on::FormCreate(System::TObject *)' referenced from H:/聊天室5.20/LOGIN.OBJ
不知道怎么回事