花小君 发表于 2016-4-10 10:51:22

求助大神,AMESim编译好c后,simulink运行就提示S-FUNCTION does not sxist

win7 64位环境下,AMESim13+VS2010+MATLAB2012B,AMESim那边已经编译好,.c文件也生成了,然后建立simulink s-function函数,edit后模块就是不跳转,输入输出也没变,运行一下一下后就提示Error in S-function 'untitled/S-Function': S-Function 'a_' does not exist,怎么办啊,已经3天了一直搞不定,网上也没有类似解决方法,有哪位大神能帮帮我!!

luluy 发表于 2016-4-14 11:39:35

你那个S函数里面   设置文件名加下划线了么?

wcxm123 发表于 2016-4-17 10:22:38

AMESim14+visual studio2015+MATLAB2014b
使用GNU GCC编译器一切正常   使用VC++的就编译失败

wcxm123 发表于 2016-4-17 10:34:15

这是完整的
F:\Amesim\v1400\AMEcompile.bat initiates a 32 bit compilation
Error in script usage. The correct usage is:
"D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\\bin\VCVARS32.BAT"
or
"D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\\bin\VCVARS32.BAT" store
Microsoft (R) 3ìDòά»¤êμóÃ1¤¾ß 14.00.23026.0 °æ
°æè¨ËùóD (C) Microsoft Corporation¡£ ±£áôËùóDè¨àû¡£
"F:\Amesim\v1400\interfaces\user_cosim\win32\ame_user_cosim_dyncompile" cl.exe -c -DAMEUSERCOSIM -DSTANDALONESIMULATOR -I"F:\Amesim\v1400\interfaces\user_cosim" -I"F:\Amesim\v1400\interfaces\standalonesimulator" -I"F:\Amesim\v1400\interfaces" -I"F:\Amesim\v1400\lib" -nologo -DWIN32 -MT -W3 -Od -D "_MBCS" -EHsc -wd4996 -bigobj -o pidshiyan_.obj pidshiyan_.c
cl: ÃüáîDD warning D9035 :¡°o¡±Ñ¡ÏîòÑ·ñ¾ö£¬2¢½«Ôú½«à′μÄ°æ±¾ÖDòÆ3y
pidshiyan_.c
pidshiyan_.c(38): fatal error C1083: ÎT·¨′ò¿a°üà¨Îļt: ¡°assert.h¡±: No such file or directory
Executing cl.exe "-c" "-DAMEUSERCOSIM" "-DSTANDALONESIMULATOR" "-IF:\Amesim\v1400\interfaces\user_cosim" "-IF:\Amesim\v1400\interfaces\standalonesimulator" "-IF:\Amesim\v1400\interfaces" "-IF:\Amesim\v1400\lib" "-nologo" "-DWIN32" "-MT" "-W3" "-Od" "-D" "_MBCS" "-EHsc" "-wd4996" "-bigobj" "-o" "pidshiyan_.obj" "pidshiyan_.c"
NMAKE : fatal error U1077: ¡°F:\Amesim\v1400\interfaces\user_cosim\win32\ame_user_cosim_dyncompile.EXE¡±: ·μ»Ø′úÂë¡°0x2¡±
Stop.
.
For free edition of Microsoft Visual Studio, you may need to set the MSSDK environment variable to the installation directory of your MS Windows SDK
System build error!

Lincoln_lu 发表于 2017-4-25 14:50:47

wcxm123 发表于 2016-4-17 10:34
这是完整的
F:\Amesim\v1400\AMEcompile.bat initiates a 32 bit compilation
Error in script usage. T ...

我也遇到类似问题,你的问题解决了吗?

the_Sea 发表于 2018-6-12 00:20:23

你好,我也遇到了相同的问题,好几天了,请问您现在解决了吗?

ffhzr 发表于 2018-6-27 14:31:52

可能VS安装后,其SDK文件夹中没有内容。
需要重新安装。
页: [1]
查看完整版本: 求助大神,AMESim编译好c后,simulink运行就提示S-FUNCTION does not sxist