Matlab Codgen: Build error: 'lcclnk64' is not recognized as an internal or external command, operable program or batch file -


this question on error occurring while c code generation matlab script.

i want convert matlab script standalone executable file. when ran file (code_check.m) 'codegen' command got following error in target build log:

'lcclnk64' not recognized internal or external command, operable program or batch file gmake: * [code_check_mex.mexw64] error 1

there other lines in target build log, commands show build of c file matlab commands (like randi,fprintf etc.)

i have checked script %#codegen inclusion , gives no error. while running codegen, above mentioned error occurs. have checked if matlab path included in system variables path, , is. have no clue how go on.

can give insight on how solve problem?

thanks in advance

my .m script follows: (i apologize long question)

% code %#codegen function [output]  = code_check data = coder.load('emea_code_prep.mat'); temp_wt = find(data.wash_cycle_data( randi(2131), : )); fileid = fopen('results.txt','w'); if length(  find(data.wash_cycle_data( randi(2131), : ))  ) == 1; fprintf(fileid,'%20s\n','wash cycle type'); fprintf(fileid,'%20s\n',data.wash_type(temp_wt,:)); else fprintf(fileid,'%20s\n','wash cycle type'); fprintf(fileid,'%20s\n','n/a trial'); end fprintf(fileid,'%20s\n','speen speed'); temp_sp = data.un_sp(find(data.idx_sp( randi(2131), : ))); fprintf(fileid,'%12.8f\n',temp_sp(1)  ); temp_temp_ll =  find(  data.loading_level_data( randi(2131),: )   ); if  length(temp_temp_ll) == 1 output(2,3) = loading_level(temp_temp_ll); fprintf(fileid,'%20s\n','loading level'); fprintf(fileid,'%20s\n',data.loading_level(temp_temp_ll,:)); elseif length(temp_temp_ll) == 0 %output(2,3) = navar;    fprintf(fileid,'%20s\n','loading level'); fprintf(fileid,'%20s\n','n/a'); else temp_temp = data.loading_level(temp_temp_ll);     fprintf(fileid,'%20s\n','loading level'); fprintf(fileid,'%40s\n',temp_temp(1)); end temp_temp_f =  find(  data.fabric_type_data( randi(2131),: )   ); if  length(temp_temp_f) == 1 fprintf(fileid,'%20s\n','fabric type'); fprintf(fileid,'%20s\n',data.fabric_type(temp_temp_f,:)); elseif length(temp_temp_f) == 0 fprintf(fileid,'%20s\n','fabric type'); fprintf(fileid,'%20s\n','n/a'); else temp_temp = data.fabric_type(temp_temp_f);     fprintf(fileid,'%20s\n','fabric type'); fprintf(fileid,'%40s\n',temp_temp(1)); end  temp_temp_c = find(data.color_data( randi(2131),: )   ); if length(temp_temp_c) == 1   fprintf(fileid,'%20s\n','color'); fprintf(fileid,'%20s\n',data.color(temp_temp_c,:)); elseif length(temp_temp_c) == 0 fprintf(fileid,'%20s\n','color'); fprintf(fileid,'%20s\n','n/a'); else  temp_temp = data.color(temp_temp_c);     fprintf(fileid,'%20s\n','color'); fprintf(fileid,'%40s\n',temp_temp(1)); end fprintf(fileid,'%20s\n','wash results'); temp_wr = data.un_wresults(find(data.idx_wresults( randi(131), : ))); fprintf(fileid,'%12.8f\n',temp_wr(1)); fprintf(fileid,'%20s\n','wash results'); temp_spr = data.un_spresults(find(data.idx_wresults( randi(131), : ))); fprintf(fileid,'%12.8f\n',temp_spr(1)); output = data.title; end 

and last few lines of target build log:

14   lcclnk64 -dll -l"c:\progra~1\matlab\r2014b\sys\lcc64\lcc64\lib64" -        l"c:\progra~1\matlab\r2014b\extern\lib\win64\microsoft" -entry libmain "code_check_mex_lccstub.obj" -s -o code_check_mex.mexw64  code_check_mexutil.obj code_check_data.obj code_check_initialize.obj code_check_terminate.obj code_check.obj randi.obj fopen.obj filemanager.obj fprintf.obj  _coder_code_check_api.obj _coder_code_check_mex.obj _coder_code_check_info.obj  libmx.lib libmex.lib libmat.lib  libemlrt.lib libcovrt.lib libut.lib  libmwblas.lib libmwmathutil.lib code_check_mex_mex.def 15   'lcclnk64' not recognized internal or external command, 16   operable program or batch file. 17   gmake: *** [code_check_mex.mexw64] error 1 


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -