Tag: delphi xe

在Delphi 2007中链接多个C对象文件时出错

我是delphi的新手。 我试图在我的Delphi项目中添加C Object文件并直接链接它们,因为Delphi支持C Object Linking。 当我链接单个Object文件时,我得到了它。 但是当我尝试链接多个目标文件时,我收到错误“不满意的前向或外部声明”。 我在Delphi 2007以及XE中试过这个。所以我在这里做错了什么? 工作守则: function a_function():Integer;cdecl; implementation {$Link ‘a.obj’} function a_function():Integer;cdecl;external; end. 错误代码: function a_function():Integer;cdecl; function b_function();Integer;cdecl; function c_function();Integer;cdecl; implementation {$LINK ‘a.obj’} {$LINK ‘b.obj’} {$LINK ‘c.obj’} function a_function():Integer;cdecl;external; function b_function();Integer;cdecl;external; function c_function();Integer;cdecl;external; end.