Link error?
我将我笔记本电脑上调试OK的程序拷到公司电脑后,报错[Linker Error] Unresolved external '__tpdsc__ System::String' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER6\LIB\RELEASE\VCL.LIB|Forms
[Linker Error] Unresolved external '__fastcall Sysutils::AllocMem(unsigned int)' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER6\LIB\RELEASE\VCL.LIB|Graphics
[Linker Error] Unresolved external '__fastcall Classes::CheckSynchronize()' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER6\LIB\RELEASE\VCL.LIB|Forms
[Linker Error] Unresolved external 'System::__linkproc__ __fastcall VarClear(System::Variant&)' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER6\LIB\RELEASE\VCL.LIB|OleCtrls
[Linker Error] Unresolved external 'System::__linkproc__ __fastcall VarFromDisp(System::Variant&, const System::DelphiInterface<IDispatch>)' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER6\LIB\RELEASE\VCL.LIB|OleCtrls
[Linker Error] Unresolved external 'System::__linkproc__ __fastcall VarCopy(System::Variant&, const System::Variant&)' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER6\LIB\RELEASE\VCL.LIB|OleCtrls
[Linker Error] Unresolved external 'System::__linkproc__ __fastcall VarFromInt(System::Variant&, const int, const int)' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER6\LIB\RELEASE\VCL.LIB|OleCtrls
[Linker Error] Unresolved external 'System::__linkproc__ __fastcall VarFromBool(System::Variant&, const bool)' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER6\LIB\RELEASE\VCL.LIB|OleCtrls
[Linker Error] Unresolved external 'System::__linkproc__ __fastcall VarToLStr(System::AnsiString&, const System::Variant&)' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER6\LIB\RELEASE\VCL.LIB|OleCtrls
[Linker Error] Unresolved external 'System::__linkproc__ __fastcall VarClr(System::Variant&)' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER6\LIB\RELEASE\VCL.LIB|OleCtrls
[Linker Error] Unresolved external 'System::__linkproc__ __fastcall VarToInt(const System::Variant&)' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER6\LIB\RELEASE\VCL.LIB|OleCtrls
[Linker Error] Unresolved external 'System::__linkproc__ __fastcall VarToIntf(System::DelphiInterface<System::IInterface>&, const System::Variant&)' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER6\LIB\RELEASE\VCL.LIB|OleCtrls
[Linker Error] Unresolved external 'System::__linkproc__ __fastcall OleVarFromVar(System::OleVariant&, const System::Variant&)' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER6\LIB\RELEASE\VCL.LIB|OleCtrls
[Linker Error] Unresolved external 'System::__linkproc__ __fastcall VarCast(System::Variant&, const System::Variant&, int)' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER6\LIB\RELEASE\VCLE.LIB|variant
[Linker Error] Unresolved external '__fastcall Classes::RegisterComponents(const System::AnsiString, System::TMetaClass * const *, const int)' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER6\PROJECTS\LIB\DCLUSR.LIB|C:\Program Files\Borland\CBuilder6\Imports\MSCommLib_OCX.cpp
[Linker Error] Unresolved external '__fastcall Helpintfs::RegisterViewer(System::DelphiInterface<Helpintfs::ICustomHelpViewer>, System::DelphiInterface<Helpintfs::IHelpManager>&)' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER6\LIB\RELEASE\VCL.LIB|WinHelpViewer
程序中用到MSCOMM控件 ,但是把Build with runtime Package 选上又OK了,请问是怎么回事?
[解决办法]
你带包编译后 会自动寻找你本地的.cpp文件
所以编译会成功了
[解决办法]
bcb中的工程文件会包含原BCB中安装控件的环境,最简的方法,在新的电脑中新建工程,然后将所有unit加入编译就OK了
[解决办法]
MSCOMM控件默认使用了那些动态Linker了