一个Unresolved external的问题,不知道什么原因
//BARMANAGEMENT.cpp文件里的内容
#include <vcl.h>
#pragma hdrstop
//---------------------------------------
USEFORM( "Main.cpp ", fmMain);
USEFORM( "DataManagement.cpp ", DataModule2); /* TDataModule: File Type */
USEFORM( "MemberInfo.cpp ", fmMemberInfo);
USEFORM( "RuKu.cpp ", fmRuKu);
USEFORM( "PanDian.cpp ", fmPanDian);
USEFORM( "ChuKu.cpp ", fmChuKu);
USEFORM( "Report.cpp ", fmReport);
USEFORM( "Unit1.cpp ", Form1);
//---------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
try
{
Application-> Initialize();
Application-> CreateForm(__classid(TfmMain), &fmMain);
Application-> CreateForm(__classid(TDataModule2), &DataModule2);
Application-> CreateForm(__classid(TfmMemberInfo), &fmMemberInfo);
Application-> CreateForm(__classid(TfmRuKu), &fmRuKu);
Application-> CreateForm(__classid(TfmPanDian), &fmPanDian);
Application-> CreateForm(__classid(TfmChuKu), &fmChuKu);
Application-> CreateForm(__classid(TForm1), &Form1);
Application-> CreateForm(__classid(TfmReport), &fmReport);
Application-> Run();
}
catch (Exception &exception)
{
Application-> ShowException(&exception);
}
catch (...)
{
try
{
throw Exception( " ");
}
catch (Exception &exception)
{
Application-> ShowException(&exception);
}
}
return 0;
}
//链接错误
Unresolved external 'TfmReport:: ' referenced from D:\PROGRAM FILES\BORLAND\CBUILDER6\PROJECTS\公司管理软件2\BARMANAGEMENT.OBJ
不知道是为什么????????
------解决方案--------------------
把你的目录换成英文的试试看
[解决办法]
没包含路径吧