Compiling...
BCGPGanttDemo.cpp
BCGPGanttDemoDoc.cpp
BCGPGanttDemoView.cpp
GanttDlg.cpp
GanttTooltipCtrl.cpp
GotoDayDialog.cpp
MainFrm.cpp
Generating Code...
Linking...
LINK : warning LNK4098: defaultlib "mfc42u.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "mfcs42u.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
BCGPGanttDemo.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CBCGPWorkspace::SaveState(char const *,class CBCGPFrameImpl *)" (?SaveState@CBCGPWorkspace@@UAEHPBDPAVCBCGPFrameImpl@@@Z)
BCGPGanttDemo.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CBCGPWorkspace::CleanState(char const *)" (?CleanState@CBCGPWorkspace@@UAEHPBD@Z)
BCGPGanttDemo.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CBCGPWorkspace::LoadState(char const *,class CBCGPFrameImpl *)" (?LoadState@CBCGPWorkspace@@UAEHPBDPAVCBCGPFrameImpl@@@Z)
BCGPGanttDemo.obj : error LNK2001: unresolved external symbol "public: char const * __thiscall CBCGPWorkspace::SetRegistryBase(char const *)" (?SetRegistryBase@CBCGPWorkspace@@QAEPBDPBD@Z)
BCGPGanttDemo.obj : error LNK2001: unresolved external symbol "public: int __thiscall CBCGPContextMenuManager::AddMenu(char const *,unsigned int)" (?AddMenu@CBCGPContextMenuManager@@QAEHPBDI@Z)
BCGPGanttDemoView.obj : error LNK2001: unresolved external symbol "public: int __thiscall CBCGPGridCtrl::InsertColumn(int,char const *,int,int)" (?InsertColumn@CBCGPGridCtrl@@QAEHHPBDHH@Z)
GanttDlg.obj : error LNK2001: unresolved external symbol "public: void __thiscall CBCGPColorButton::EnableOtherButton(char const *,int,int)" (?EnableOtherButton@CBCGPColorButton@@QAEXPBDHH@Z)
GanttDlg.obj : error LNK2001: unresolved external symbol "public: void __thiscall CBCGPColorButton::EnableAutomaticButton(char const *,unsigned long,int)" (?EnableAutomaticButton@CBCGPColorButton@@QAEXPBDKH@Z)
GanttTooltipCtrl.obj : error LNK2001: unresolved external symbol "protected: int __thiscall CBCGPToolTipCtrl::OnCreate(struct tagCREATESTRUCTA *)" (?OnCreate@CBCGPToolTipCtrl@@IAEHPAUtagCREATESTRUCTA@@@Z)
MainFrm.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CBCGPFrameWnd::WinHelpA(unsigned long,unsigned int)" (?WinHelpA@CBCGPFrameWnd@@UAEXKI@Z)
MainFrm.obj : error LNK2001: unresolved external symbol "public: int __thiscall CBCGPWorkspace::GetInt(char const *,int)" (?GetInt@CBCGPWorkspace@@QAEHPBDH@Z)
MainFrm.obj : error LNK2001: unresolved external symbol "public: static int __cdecl CBCGPVisualManager2007::SetStyle(enum CBCGPVisualManager2007::Style,char const *)" (?SetStyle@CBCGPVisualManager2007@@SAHW4Style@1@PBD@Z)
MainFrm.obj : error LNK2001: unresolved external symbol "public: int __thiscall CBCGPFrameWnd::OnCreate(struct tagCREATESTRUCTA *)" (?OnCreate@CBCGPFrameWnd@@QAEHPAUtagCREATESTRUCTA@@@Z)
MainFrm.obj : error LNK2001: unresolved external symbol "protected: virtual int __thiscall CBCGPFrameWnd::PreCreateWindow(struct tagCREATESTRUCTA &)" (?PreCreateWindow@CBCGPFrameWnd@@MAEHAAUtagCREATESTRUCTA@@@Z)
MainFrm.obj : error LNK2001: unresolved external symbol "public: __thiscall CBCGPToolbarMenuButton::CBCGPToolbarMenuButton(unsigned int,struct HMENU__ *,int,char const *,int)" (??0CBCGPToolbarMenuButton@@QAE@IPAUHMENU__@@HPBDH@Z)
MainFrm.obj : error LNK2001: unresolved external symbol "public: int __thiscall CBCGPWorkspace::WriteInt(char const *,int)" (?WriteInt@CBCGPWorkspace@@QAEHPBDH@Z)
..\BinStatic/BCGPGanttDemo.exe : fatal error LNK1120: 16 unresolved externals
Error executing link.exe.BCGPGanttDemo.exe - 17 error(s), 2 warning(s)
我用的是安装后的example中的程序编译的,可以link,但compile后就有错误了,如上,怎么回事?