iCAx开思网

标题: Proe二次开发编译连接问题 [打印本页]

作者: Raby.yu    时间: 2007-5-5 13:21
标题: Proe二次开发编译连接问题
我在进行Pro/Toolkit编译和连接时系统会报错说出现致命的错误(见下图),不是很明白,请朋友们指点!谢谢
作者: zzx240    时间: 2007-5-5 18:08
标题: 你帮我怎么样!
直齿圆柱齿轮二次开发!请教!  


COMPILE时候错误:

Compiling...
Stanlibrary.c
E:\Test\Stanlibrary.c(52) : warning C4026: function declared with formal parameter list

Stanlibrary.obj - 0 error(s), 1 warning(s)

BUILD时候错误:

Linking...
LINK : warning LNK4075: ignoring /INCREMENTAL due to /FORCE specification
   Creating library Debug/Stanlibrary.lib and object Debug/Stanlibrary.exp
Stanlibrary.obj : error LNK2001: unresolved external symbol _SpurOK
protoolkit.lib(ctfileutil.obj) : error LNK2001: unresolved external symbol __imp__RegCloseKey@4
protoolkit.lib(windows_32.obj) : error LNK2001: unresolved external symbol __imp__RegCloseKey@4
………………………………
Debug/Stanlibrary.exe : warning LNK4088: image being generated due to /FORCE option; image may not run

Stanlibrary.exe - 61 error(s), 2 warning(s)
作者: zzx240    时间: 2007-5-5 18:09
标题: 还有这个
void spurOK(char *dialog,char *component,ProAppData data)
{
ProMdl part;
ProParameter param1;
ProParameter param2;
ProParameter param3;
ProParameter param4;
ProParameter param5;
ProParameter param6;
ProParamvalue value1;
ProParamvalue value2;
ProParamvalue value3;
ProParamvalue value4;
ProParamvalue value5;
ProParamvalue value6;
ProModelitem feature;
int i;
int z1;
double m1,alpha1,hax1,cx1,b1;

ProMdlRetrieve(L"E:\\temp\\gear_1.prt.1",PRO_PART,&part);

ProMdlDisplay(part);
ProMdlIdGet(part,&i);
ProModelitemInit(part,i,PRO_PART,&feature);

ProParameterInit(&feature,L"Z",&param1);
ProParameterInit(&feature,L"M",&param2);
ProParameterInit(&feature,L"ALPHA",&param3);
ProParameterInit(&feature,L"HAX",&param4);
ProParameterInit(&feature,L"CX",&param5);
ProParameterInit(&feature,L"B",&param6);

ProUIInputpanelIntegerGet("Spur","Z",&z1);
ProUIInputpanelDoubleGet("Spur","M",&m1);
ProUIInputpanelDoubleGet("Spur","ALPHA",&alpha1);
ProUIInputpanelDoubleGet("Spur","HAX",&hax1);
ProUIInputpanelDoubleGet("Spur","CX",&cx1);
ProUIInputpanelDoubleGet("Spur","B",&b1);

value1.type=PRO_PARAM_INTEGER;
value1.value.i_val=z1;

value2.type=PRO_PARAM_DOUBLE;
value2.value.d_val=m1;

value3.type=PRO_PARAM_DOUBLE;
value3.value.d_val=alpha1;

value4.type=PRO_PARAM_DOUBLE;
value4.value.d_val=hax1;

value5.type=PRO_PARAM_DOUBLE;
value5.value.d_val=cx1;

value6.type=PRO_PARAM_DOUBLE;
value6.value.d_val=b1;

ProParameterValueSet(&param1,&value1);
ProParameterValueSet(&param2,&value2);
ProParameterValueSet(&param3,&value3);
ProParameterValueSet(&param4,&value4);
ProParameterValueSet(&param5,& value5);
ProParameterValueSet(&param6,& value6);

ProSolidRegenerate((ProSolid)part,PRO_B_TRUE);
ProUIDialogExit(dialog,1);
}


这是我的SpurOK函数定义,编译后有出现这样错误:

error LNK2001: unresolved external symbol _SpurOK
作者: zzx240    时间: 2007-5-6 08:49
标题: 帮忙下~
还在苦恼与等待中~




欢迎光临 iCAx开思网 (https://www.icax.org/) Powered by Discuz! X3.3