我自定义了一个类,老是有这样的错误,大家帮忙看看,怎么解决 谢谢
Unsatisfied forward or external declaration "Tmyorganization.add_role"
代码如下:
Tmyorganization = class
private
role_sum:integer;
group_sum:integer;
depart_sum:integer;
realation_sum:integer;
public
role_list:array[1..role_maxnum] of Tmyrole_rec; //角色清单
role_count:integer;
group_list:array[1..group_maxnum] of Tmygroup_rec;//小组清单
group_count:integer;
depart_list:array[1..depart_maxnum] of Tmydepart_rec;//部门清单
depart_count:integer;//关系清单
relation_list:array[1..relation_maxnum] of Tmyrole_user_relation;
relation_count:integer;//constructor create;
//destructor Destory;function add_role(rolerec:Tmyrole_rec):integer;//追加角色
function del_role(rolerec:Tmyrole_rec):boolean;//删除角色
function update_role(rolerec:Tmyrole_rec):boolean;//修改角色
function get_roleAIdex(roleid:integer):integer;//得知已知角色的第一个关系
end;