c++编译器产生错误。

2次浏览(过去30天)
陈永宇
陈永宇 2021年9月16日
评论道: 陈永宇2021年9月17日
我该如何解决这个问题呢?
我安装matlab支持MinGW-w万博1manbetx64 C/ c++编译器
我用R2021a
3评论
陈永宇
陈永宇 2021年9月17日
touch -c /home/pi/ matlab_ws /R2021a/ c / users / codlab - dhkim /Documents/MATLAB/Examples/R2021a/raspberrypiio/ClassifyImageOnRaspberryPiViaSSHWithResNet50AndOpenCVExample/codegen/exe/raspi_fileRead_resnet/*.*;mkall MATLAB_WORKSPACE="/home/pi/MATLAB_ws/R2021a" -C /home/pi/MATLAB_ws/R2021a/ c / users / codlab - dhkim /Documents/MATLAB/Examples/R2021a/raspberrypiio/ClassifyImageOnRaspberryPiViaSSHWithResNet50AndOpenCVExample/codegen/exe/raspi_fileRead_resnet"。细节:
STDERR: /home/pi/ matlab_ws /R2021a/C/ users / codlab - dhkim /Documents/MATLAB/Examples/R2021a/raspberrypiio/ClassifyImageOnRaspberryPiViaSSHWithResNet50AndOpenCVExample/codegen/exe/raspi_fileRead_resnet/main.cpp:84:5:错误:C函数' int main(int, const char* const*) '声明冲突
Int main(Int argc, const char * const argv[])
^ ~ ~ ~
/home/pi/ matlab_ws /R2021a/ c / users / codlab - dhkim /Documents/MATLAB/Examples/R2021a/raspberrypiio/ClassifyImageOnRaspberryPiViaSSHWithResNet50AndOpenCVExample/codegen/exe/raspi_fileRead_resnet/main.cpp:38:
/home/pi/ matlab_ws /R2021a/ c / users / codlab - dhkim /Documents/MATLAB/Examples/R2021a/raspberrypiio/ClassifyImageOnRaspberryPiViaSSHWithResNet50AndOpenCVExample/codegen/exe/raspi_fileRead_resnet/main.h:48:12:注:前面的声明' int main(int, char**) '
Extern int main(int argc, char **argv);
^ ~ ~ ~
make: *** [raspi_fileRead_resnet_rtw.]可:488:main.cpp。错误1

登录评论。

答案(0)

类别

了解更多MATLAB编码器帮助中心而且文件交换

s manbetx 845


释放

R2021a

社区寻宝

在MATLAB Central中找到宝藏,并发现社区如何帮助您!

开始狩猎!