Hi! Can I do a stand alone executable if my program is targeted for plotting? I am getting the following error:
Ältere Kommentare anzeigen
Hi! Can I do a stand alone executable if my program is targeted for plotting? I am getting the following error:
-> gcc-4.0 -c -fno-common -no-cpp-precomp -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -I/Applications/MATLAB_R2010a.app/extern/include -DUNIX -DX11 -O2 -DNDEBUG "test_main.c"
/Applications/MATLAB_R2010a.app/bin/mbuild: line 1885: gcc-4.0: command not found
mbuild: compile of ' "test_main.c"' failed.
Error: An error occurred while shelling out to mbuild (error code = 1). Unable to build executable. ??? Error using ==> mcc Error executing mcc, return status = 1 (0x1).
Do you know how to solve this? or what is going on? I can imagine is a cpp compiler error since the command not found targets gcc-4.0
Akzeptierte Antwort
Weitere Antworten (2)
Titus Edelhofer
am 11 Jul. 2014
Hi,
did you do a
mbuild -setup
before? Did MATLAB find your gcc 4.0?
Titus
Sruthi Ayloo
am 11 Jul. 2014
Bearbeitet: Sruthi Ayloo
am 11 Jul. 2014
0 Stimmen
What is the version of xcode and MAC OS you are using?
The following link might be helpful where a similar issue has been discussed:
Kategorien
Mehr zu C Shared Library Integration finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!