Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
I have a ploblem on compiling my work. HELP ME!

Subject: I have a ploblem on compiling my work. HELP ME!

From: Kwangwon Seo

Date: 12 Jan, 2009 01:37:02

Message: 1 of 3

When I run the deployment for compiling, a error is occured.

I don't know why it is happened. Anybody help me please...

This is a error message.(below)

====================================================
Build output( 2009-01-12 10:18:58).

mcc -F 'C:\Documents and Settings\petro330\My Documents\MATLAB\MyFirst.prj'

Compiler version: 4.9 (R2008b)
Warning: Duplicate directory name: C:\Documents and Settings\petro330\My
Documents\MATLAB.
mcc -o 'MyFirst' -W 'WinMain:MyFirst' -d 'C:\MATLAB\MyFirst\src' -T 'link:exe' -v 'C:\Documents and Settings\petro330\My Documents\MATLAB\Project_1.m'
Warning: Name is nonexistent or not a directory: C:\Program
Files\MATLAB\R2008b\toolbox\compiler\patch.
Warning: Name is nonexistent or not a directory: C:\Program
Files\MATLAB\R2008b\toolbox\compiler\patch.
Processing C:\Program Files\MATLAB\R2008b\toolbox\matlab\mcc.enc
Processing C:\Program Files\MATLAB\R2008b\toolbox\fuzzy\mcc.enc
Processing C:\Documents and Settings\petro330\My Documents\MATLAB\Project_1.fig
Processing C:\Program Files\MATLAB\R2008b\toolbox\matlab\guide\guideopts.fig
Processing C:\Program Files\MATLAB\R2008b\toolbox\matlab\winfun\actxcontrolselect.fig
Processing C:\Program Files\MATLAB\R2008b\toolbox\matlab\winfun\actxcontrolcreateproperty.fig
Processing include files...
2 item(s) added.
Processing directories installed with MCR...
The file C:\MATLAB\MyFirst\src\mccExcludedFiles.log contains a list of functions excluded from the CTF archive.
2 item(s) added.
Generating MATLAB path for the compiled application...
Created 40 path items.
Begin validation of MEX files: Mon Jan 12 10:19:34 2009
End validation of MEX files: Mon Jan 12 10:19:34 2009
Warning: Name is nonexistent or not a directory: C:\Program
Files\MATLAB\R2008b\toolbox\compiler\patch.
Deleting 0 temporary MEX authorization files.
Parsing file "C:\Documents and Settings\petro330\My Documents\MATLAB\Project_1.m"
(Referenced from: "Compiler Command Line").
Parsing file "C:\Program Files\MATLAB\R2008b\toolbox\compiler\deploy\deployprint.m"
(Referenced from: "Compiler Command Line").
Parsing file "C:\Program Files\MATLAB\R2008b\toolbox\compiler\deploy\printdlg.m"
(Referenced from: "Compiler Command Line").
Generating file "C:\MATLAB\MyFirst\src\MyFirst_main.c".
Generating file "C:\MATLAB\MyFirst\src\MyFirst_delay_load.c".
Generating file "C:\MATLAB\MyFirst\src\readme.txt".
Generating file "C:\MATLAB\MyFirst\src\MyFirst_mcc_component_data.c".
Executing command: mbuild -O -v -output "MyFirst" -I"C:\MATLAB\MyFirst\src" "C:\MATLAB\MyFirst\src\MyFirst_main.c" "C:\MATLAB\MyFirst\src\MyFirst_delay_load.c" "C:\MATLAB\MyFirst\src\MyFirst_mcc_component_data.c" -link exe -env MCR_DELAYLOAD=/delayload:mclmcrrt79.dll -env MCR_DELAYLIB=delayimp.lib -outdir "C:\MATLAB\MyFirst\src"
 This is mbuild Copyright 1984-2006 The MathWorks, Inc.
 
-> Default options filename found in C:\Documents and Settings\petro330\Application Data\MathWorks\MATLAB\R2008b
----------------------------------------------------------------
-> Options file = C:\Documents and Settings\petro330\Application Data\MathWorks\MATLAB\R2008b\compopts.bat
-> COMPILER = cl
-> Compiler flags:
         COMPFLAGS = -c -Zp8 -G5 -W3 -nologo
         OPTIMFLAGS = -O2 -DNDEBUG
         DEBUGFLAGS = -Z7
         arguments = -IC:\MATLAB\MYFIRST\SRC
         Name switch = /Fo
-> Pre-linking commands =
-> LINKER = link
-> Link directives:
         LINKFLAGS = kernel32.lib user32.lib gdi32.lib advapi32.lib oleaut32.lib ole32.lib /LIBPATH:"C:\PROGRA~1\MATLAB\R2008b\extern\lib\win32\microsoft" /nologo mclmcrrt.lib delayimp.lib /delayload:mclmcrrt79.dll
         LINKFLAGSPOST =
         Name directive = "/out:C:\MATLAB\MYFIRST\SRC\MyFirst.exe"
         File link directive =
         Lib. link directive =
         Rsp file indicator = @
-> Resource Compiler = rc /fo "C:\MATLAB\MYFIRST\SRC\.res"
-> Resource Linker =
----------------------------------------------------------------
 
 
--> cl -IC:\MATLAB\MYFIRST\SRC -c -Zp8 -G5 -W3 -nologo /Fo"C:\DOCUME~1\PETRO330\LOCAL SETTINGS\TEMP\MBUILD_RKZUUA\MyFirst_main.obj" -IC:\PROGRA~1\MATLAB\R2008b\extern\include -O2 -DNDEBUG C:\MATLAB\MYFIRST\SRC\MyFirst_main.c
 
MyFirst_main.c
 
--> cl -IC:\MATLAB\MYFIRST\SRC -c -Zp8 -G5 -W3 -nologo /Fo"C:\DOCUME~1\PETRO330\LOCAL SETTINGS\TEMP\MBUILD_RKZUUA\MyFirst_delay_load.obj" -IC:\PROGRA~1\MATLAB\R2008b\extern\include -O2 -DNDEBUG C:\MATLAB\MYFIRST\SRC\MyFirst_delay_load.c
 
MyFirst_delay_load.c
 
--> cl -IC:\MATLAB\MYFIRST\SRC -c -Zp8 -G5 -W3 -nologo /Fo"C:\DOCUME~1\PETRO330\LOCAL SETTINGS\TEMP\MBUILD_RKZUUA\MyFirst_mcc_component_data.obj" -IC:\PROGRA~1\MATLAB\R2008b\extern\include -O2 -DNDEBUG C:\MATLAB\MYFIRST\SRC\MyFirst_mcc_component_data.c
 
MyFirst_mcc_component_data.c
    Contents of C:\DOCUME~1\PETRO330\LOCAL SETTINGS\TEMP\MBUILD_RKZUUA\mbuild_tmp.rsp:
  "C:\DOCUME~1\PETRO330\LOCAL SETTINGS\TEMP\MBUILD_RKZUUA\MyFirst_main.obj" "C:\DOCUME~1\PETRO330\LOCAL SETTINGS\TEMP\MBUILD_RKZUUA\MyFirst_delay_load.obj" "C:\DOCUME~1\PETRO330\LOCAL SETTINGS\TEMP\MBUILD_RKZUUA\MyFirst_mcc_component_data.obj"
 
 
--> link "/out:C:\MATLAB\MYFIRST\SRC\MyFirst.exe" kernel32.lib user32.lib gdi32.lib advapi32.lib oleaut32.lib ole32.lib /LIBPATH:"C:\PROGRA~1\MATLAB\R2008b\extern\lib\win32\microsoft" /nologo mclmcrrt.lib delayimp.lib /delayload:mclmcrrt79.dll @C:\DOCUME~1\PETRO330\LOCAL SETTINGS\TEMP\MBUILD_RKZUUA\MBUILD_TMP.RSP
 
Microsoft (R) Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
 
LINK : fatal error LNK1104: 'C:\DOCUME~1\PETRO330\LOCAL' ?????? ?? ?? ???????.
 
  C:\PROGRA~1\MATLAB\R2008B\BIN\MEX.PL: Error: Link of 'C:\MATLAB\MYFIRST\SRC\MyFirst.exe' failed.
 
Error: An error occurred while shelling out to mbuild (error code = 2).
Unable to build executable.
??? Error using ==> mcc
Error executing mcc, return status = 1.



There were errors during compilation process.
====================================================

Subject: I have a ploblem on compiling my work. HELP ME!

From: Peter Webb

Date: 12 Jan, 2009 18:14:33

Message: 2 of 3

This looks like a problem caused by spaces in the path of the .rsp file used
by the linker, mbuild_tmp.rsp. Try changing the value of your TMP and TEMP
environment variables to point to a directory with no spaces in the path.
For example:

C:\> set TEMP=c:\Temp
C:\> set TMP=c:\Temp

Then try recompiling.

"Kwangwon Seo" <kwseo@hhu.ac.kr> wrote in message
news:gke6ru$7rd$1@fred.mathworks.com...
> When I run the deployment for compiling, a error is occured.
>
> I don't know why it is happened. Anybody help me please...
>
> This is a error message.(below)
>
> ====================================================
> Build output( 2009-01-12 10:18:58).
>
> mcc -F 'C:\Documents and Settings\petro330\My
> Documents\MATLAB\MyFirst.prj'
>
> Compiler version: 4.9 (R2008b)
> Warning: Duplicate directory name: C:\Documents and Settings\petro330\My
> Documents\MATLAB.
> mcc -o 'MyFirst' -W 'WinMain:MyFirst' -d 'C:\MATLAB\MyFirst\src' -T
> 'link:exe' -v 'C:\Documents and Settings\petro330\My
> Documents\MATLAB\Project_1.m'
> Warning: Name is nonexistent or not a directory: C:\Program
> Files\MATLAB\R2008b\toolbox\compiler\patch.
> Warning: Name is nonexistent or not a directory: C:\Program
> Files\MATLAB\R2008b\toolbox\compiler\patch.
> Processing C:\Program Files\MATLAB\R2008b\toolbox\matlab\mcc.enc
> Processing C:\Program Files\MATLAB\R2008b\toolbox\fuzzy\mcc.enc
> Processing C:\Documents and Settings\petro330\My
> Documents\MATLAB\Project_1.fig
> Processing C:\Program
> Files\MATLAB\R2008b\toolbox\matlab\guide\guideopts.fig
> Processing C:\Program
> Files\MATLAB\R2008b\toolbox\matlab\winfun\actxcontrolselect.fig
> Processing C:\Program
> Files\MATLAB\R2008b\toolbox\matlab\winfun\actxcontrolcreateproperty.fig
> Processing include files...
> 2 item(s) added.
> Processing directories installed with MCR...
> The file C:\MATLAB\MyFirst\src\mccExcludedFiles.log contains a list of
> functions excluded from the CTF archive.
> 2 item(s) added.
> Generating MATLAB path for the compiled application...
> Created 40 path items.
> Begin validation of MEX files: Mon Jan 12 10:19:34 2009
> End validation of MEX files: Mon Jan 12 10:19:34 2009
> Warning: Name is nonexistent or not a directory: C:\Program
> Files\MATLAB\R2008b\toolbox\compiler\patch.
> Deleting 0 temporary MEX authorization files.
> Parsing file "C:\Documents and Settings\petro330\My
> Documents\MATLAB\Project_1.m"
> (Referenced from: "Compiler Command Line").
> Parsing file "C:\Program
> Files\MATLAB\R2008b\toolbox\compiler\deploy\deployprint.m"
> (Referenced from: "Compiler Command Line").
> Parsing file "C:\Program
> Files\MATLAB\R2008b\toolbox\compiler\deploy\printdlg.m"
> (Referenced from: "Compiler Command Line").
> Generating file "C:\MATLAB\MyFirst\src\MyFirst_main.c".
> Generating file "C:\MATLAB\MyFirst\src\MyFirst_delay_load.c".
> Generating file "C:\MATLAB\MyFirst\src\readme.txt".
> Generating file "C:\MATLAB\MyFirst\src\MyFirst_mcc_component_data.c".
> Executing command: mbuild -O -v -output
> "MyFirst" -I"C:\MATLAB\MyFirst\src" "C:\MATLAB\MyFirst\src\MyFirst_main.c"
> "C:\MATLAB\MyFirst\src\MyFirst_delay_load.c"
> "C:\MATLAB\MyFirst\src\MyFirst_mcc_component_data.c" -link exe -env
> MCR_DELAYLOAD=/delayload:mclmcrrt79.dll -env
> MCR_DELAYLIB=delayimp.lib -outdir "C:\MATLAB\MyFirst\src"
> This is mbuild Copyright 1984-2006 The MathWorks, Inc.
>
> -> Default options filename found in C:\Documents and
> Settings\petro330\Application Data\MathWorks\MATLAB\R2008b
> ----------------------------------------------------------------
> -> Options file = C:\Documents and
> Settings\petro330\Application Data\MathWorks\MATLAB\R2008b\compopts.bat
> -> COMPILER = cl
> -> Compiler flags:
> COMPFLAGS = -c -Zp8 -G5 -W3 -nologo
> OPTIMFLAGS = -O2 -DNDEBUG
> DEBUGFLAGS = -Z7
> arguments = -IC:\MATLAB\MYFIRST\SRC
> Name switch = /Fo
> -> Pre-linking commands =
> -> LINKER = link
> -> Link directives:
> LINKFLAGS = kernel32.lib user32.lib gdi32.lib
> advapi32.lib oleaut32.lib ole32.lib
> /LIBPATH:"C:\PROGRA~1\MATLAB\R2008b\extern\lib\win32\microsoft" /nologo
> mclmcrrt.lib delayimp.lib /delayload:mclmcrrt79.dll
> LINKFLAGSPOST =
> Name directive = "/out:C:\MATLAB\MYFIRST\SRC\MyFirst.exe"
> File link directive =
> Lib. link directive =
> Rsp file indicator = @
> -> Resource Compiler = rc /fo "C:\MATLAB\MYFIRST\SRC\.res"
> -> Resource Linker =
> ----------------------------------------------------------------
>
>
> --> cl -IC:\MATLAB\MYFIRST\SRC -c -Zp8 -G5 -W3 -nologo
> /Fo"C:\DOCUME~1\PETRO330\LOCAL
> SETTINGS\TEMP\MBUILD_RKZUUA\MyFirst_main.obj" -IC:\PROGRA~1\MATLAB\R2008b\extern\include
> -O2 -DNDEBUG C:\MATLAB\MYFIRST\SRC\MyFirst_main.c
>
> MyFirst_main.c
>
> --> cl -IC:\MATLAB\MYFIRST\SRC -c -Zp8 -G5 -W3 -nologo
> /Fo"C:\DOCUME~1\PETRO330\LOCAL
> SETTINGS\TEMP\MBUILD_RKZUUA\MyFirst_delay_load.obj" -IC:\PROGRA~1\MATLAB\R2008b\extern\include
> -O2 -DNDEBUG C:\MATLAB\MYFIRST\SRC\MyFirst_delay_load.c
>
> MyFirst_delay_load.c
>
> --> cl -IC:\MATLAB\MYFIRST\SRC -c -Zp8 -G5 -W3 -nologo
> /Fo"C:\DOCUME~1\PETRO330\LOCAL
> SETTINGS\TEMP\MBUILD_RKZUUA\MyFirst_mcc_component_data.obj" -IC:\PROGRA~1\MATLAB\R2008b\extern\include
> -O2 -DNDEBUG C:\MATLAB\MYFIRST\SRC\MyFirst_mcc_component_data.c
>
> MyFirst_mcc_component_data.c
> Contents of C:\DOCUME~1\PETRO330\LOCAL
> SETTINGS\TEMP\MBUILD_RKZUUA\mbuild_tmp.rsp:
> "C:\DOCUME~1\PETRO330\LOCAL SETTINGS\TEMP\MBUILD_RKZUUA\MyFirst_main.obj"
> "C:\DOCUME~1\PETRO330\LOCAL
> SETTINGS\TEMP\MBUILD_RKZUUA\MyFirst_delay_load.obj"
> "C:\DOCUME~1\PETRO330\LOCAL
> SETTINGS\TEMP\MBUILD_RKZUUA\MyFirst_mcc_component_data.obj"
>
>
> --> link "/out:C:\MATLAB\MYFIRST\SRC\MyFirst.exe" kernel32.lib user32.lib
> gdi32.lib advapi32.lib oleaut32.lib ole32.lib
> /LIBPATH:"C:\PROGRA~1\MATLAB\R2008b\extern\lib\win32\microsoft" /nologo
> mclmcrrt.lib delayimp.lib /delayload:mclmcrrt79.dll
> @C:\DOCUME~1\PETRO330\LOCAL SETTINGS\TEMP\MBUILD_RKZUUA\MBUILD_TMP.RSP
>
> Microsoft (R) Incremental Linker Version 7.10.3077
> Copyright (C) Microsoft Corporation. All rights reserved.
>
> LINK : fatal error LNK1104: 'C:\DOCUME~1\PETRO330\LOCAL' ?????? ?? ??
> ???????.
>
> C:\PROGRA~1\MATLAB\R2008B\BIN\MEX.PL: Error: Link of
> 'C:\MATLAB\MYFIRST\SRC\MyFirst.exe' failed.
>
> Error: An error occurred while shelling out to mbuild (error code = 2).
> Unable to build executable.
> ??? Error using ==> mcc
> Error executing mcc, return status = 1.
>
>
>
> There were errors during compilation process.
> ====================================================

Subject: I have a ploblem on compiling my work. HELP ME!

From: Kevin

Date: 29 Dec, 2009 18:04:05

Message: 3 of 3

> Warning: Name is nonexistent or not a directory: C:\Program
> Files\MATLAB\R2008b\toolbox\compiler\patch.
-------------------------------------------------------------------------------------------------------------------------
I received this same error message and found I had a typo in the source code. Once I corrected that, the .m file compiled just fine.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us