필터 지우기
필터 지우기

Coder fails to compile a code with commands "dos","system","!" (bang) - any alternatives

조회 수: 2 (최근 30일)
Pratik Chhatbar
Pratik Chhatbar 2018년 10월 25일
댓글: dpb 2018년 10월 25일
Hi all,
I am trying to use coder to generate a light-weight .exe file (windows x64 environment) from the code that invokes another .exe file (USB communication with a device). I am using minGW-w64 C/C++ compiler. While compiler can generate .exe file, coder fails to do so. I tried using different variations of calling the USB communication EXE file, namely "system", "usb" and also "!" - each of them works flawlessly in MATLAB environment and also with compiler, but not with coder.
The reason I want to build .exe using coder is to create an independent .exe file that does not require other exe or installation of matlab runtime on various PCs that won't have matlab license. How do I achieve this?
Thanks in advance for your help!
  댓글 수: 1
dpb
dpb 2018년 10월 25일
There's a very old Answer that implies this should work...
What's the code snippet that fails and which release of coder are you using?
Can you isolate that it is the shell command that is failing by just testing it alone and not some other interaction or other issue that is being camouflaged by something else?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Coder에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by