24小时热门版块排行榜    

Znn3bq.jpeg
查看: 749  |  回复: 2

dazao

金虫 (正式写手)

[求助] matlab编译.c文本 不能产生可执行文件 已有1人参与

用 matlab 编译一个c程序的时候,编译可以通过,但不能产生相应的可执行文件。
makefile如下,请问有什么需要修改的地方么?
********************??????***************
# set up the environment variable like this (in bash): MATLAB=/usr/local/lib/matlab6 make
MATLAB=/g/software/matlab/r2013a/
MATLABDIR=/g/software/matlab/r2013a/
#$(MATLAB)
CC=gcc
#MEX = //scratch/hjwang/auton/kmeans/mex
MEX = $(MATLABDIR)/bin/mex
SRC = \
../../dputils/debug.c \
../../draw/agbox.c \
../../draw/amgr.c \
../../draw/amwin32.c \
../../draw/amxw.c \
../../draw/apict.c \
../../draw/awdut.c \
../../draw/draw_tests.c \
../../draw/fgraph.c \
../../draw/lingraph.c \
../../draw/lingraphs.c \
../../draw/main.c \
../../draw/ongr.c \
../../draw/screen_apis.c \
../../draw/screen_asl.c \
../../draw/screen_nographics.c \
../../draw/splot.c \
../../draw/vplot.c \
../../dset/amcv.c \
../../dset/colshape.c \
../../dset/column.c \
../../dset/compat.c \
../../dset/dex.c \
../../dset/dsawdut.c \
../../dset/ds.c \
../../dset/dscli.c \
../../dset/dstime.c \
../../dset/dsut.c \
../../dset/freq.c \
../../dset/join.c \
../../dset/pivec.c \
../../dset/query.c \
../../dset/shape.c \
../../extra/autocorr.c \
../../extra/bayesreg.c \
../../extra/cachedinterp.c \
../../extra/dates.c \
../../extra/dcube.c \
../../extra/dcubes.c \
../../extra/distutils.c \
../../extra/eq_solvers.c \
../../extra/geometry.c \
../../extra/heaputils.c \
../../extra/hrectex.c \
../../extra/html.c \
../../extra/hypergeo.c \
../../extra/ihash.c \
../../extra/loglike.c \
../../extra/namer.c \
../../extra/nonlinprog.c \
../../extra/occr_count.c \
../../extra/pheap.c \
../../extra/qopt.c \
../../extra/quadprog.c \
../../extra/sheap.c \
../../extra/simple_regress.c \
../../extra/skid.c \
../../kmeans/dyvp_array.c \
../../kmeans/incremental.c \
../../kmeans/kmeans.c \
../../kmeans/simple_kdtree.c \
../../kmeans/split.c \
../../kmeans/traversal.c \
../../kmeans/vctr.c \
../../kmeans/cons.c \
../../utils/amar.c \
../../utils/ambs.c \
../../utils/amdmex.c \
../../utils/amdym.c \
../../utils/amdyv_array.c \
../../utils/amdyv.c \
../../utils/am_file.c \
../../utils/amiv.c \
../../utils/amlv.c \
../../utils/amma.c \
../../utils/amma_check.c \
../../utils/am_managed_string.c \
../../utils/ammarep.c \
../../utils/am_md5.c \
../../utils/am_proc.c \
../../utils/am_sem.c \
../../utils/am_string_array.c \
../../utils/am_string.c \
../../utils/am_time.c \
../../utils/amvpv.c \
../../utils/auton_errno.c \
../../utils/auton_sf.c \
../../utils/backtrace.c \
../../utils/boolvec.c \
../../utils/choose.c \
../../utils/command.c \
../../utils/empca.c \
../../utils/genarray.c \
../../utils/halloc.c \
../../utils/hash.c \
../../utils/hrect.c \
../../utils/imat.c \
../../utils/internal_state.c \
../../utils/iqueue.c \
../../utils/networking.c \
../../utils/param.c \
../../utils/portable_io.c \
../../utils/progress.c \
../../utils/randomization.c \
../../utils/saarray.c \
../../utils/stack.c \
../../utils/stats.c \
../../utils/structured_text.c \
../../utils/svd.c \
../../utils/timestring.c \
../../utils/uuid.c
$(warning "finish sourec"
OBJ = $(addsuffix .o,$(basename $(SRC)))
$(warning " MexFlags =-g"
MEXFLAGS = -g
CFLAGS = -DNOGRAPHICS -DUNIX_TTY_PLATFORM -Wall -I../../kmeans -I../../dputils -I../../dset -I../../extra -I../../utils -I../../draw
$(warning  $(CFLAGS))
# Vlad Sukhoy <sukhoy@iastate.edu>
# Support 64-bit MATLAB on MacOS X - BEGIN
ifeq ($(shell uname),Darwin)
CFLAGS += -m64
endif
# Vlad Sukhoy <sukhoy@iastate.edu>
# Support 64-bit MATLAB on MacOS X - END
$(warning "making xmeans.mexa64"
$(warning $(DEFS))
xmeans.mexa64: $(OBJ) xmeans.c
        $(MEX) $(DEFS) CFLAGS='$(CFLAGS)' $(MEXFLAGS) xmeans.c $(OBJ)
$(warning " target file written"
clean:
        rm -f $(OBJ) xmeans.mexa64
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

wujiadw

铜虫 (初入文坛)

【答案】应助回帖

你确定不是来水的?matlab编译c生成可执行文件?
2楼2014-08-15 14:56:48
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

dazao

金虫 (正式写手)

引用回帖:
2楼: Originally posted by wujiadw at 2014-08-15 14:56:48
你确定不是来水的?matlab编译c生成可执行文件?

呵呵
3楼2014-08-16 03:16:31
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 dazao 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 求调剂,262机械专硕 +5 嗯yyl 2026-04-08 5/250 2026-04-08 23:27 by 6781022
[考研] 一志愿211,化学学硕,310分,本科重点双非,求调剂 +15 努力奋斗112 2026-04-06 17/850 2026-04-08 22:27 by 凯凯要变帅
[考研] 085600材料与化工,求调剂 +6 won_qii 2026-04-07 6/300 2026-04-08 21:57 by hypershenger
[考研] 化学调剂求助 +13 LULONG1 2026-04-03 18/900 2026-04-08 21:54 by LULONG1
[考研] 求调剂 +6 chenxrlkx 2026-04-05 8/400 2026-04-08 16:03 by screening
[考研] 求调剂材料科学与工程一志愿985初试365分 +3 材化李可 2026-04-08 3/150 2026-04-08 11:46 by zzucheup
[考研] 调剂 +18 不逢春 2026-04-05 19/950 2026-04-07 22:04 by lijunpoly
[考研] 一志愿南科大生物学297分,求调剂推荐 +8 Y-yyusx 2026-04-06 9/450 2026-04-07 19:38 by biomichael
[考研] 22408 调剂材料 +7 我叫ez 2026-04-06 8/400 2026-04-07 17:12 by 蓝云思雨
[考研] 化学调剂 +18 艾志恒 2026-04-03 19/950 2026-04-07 16:00 by 起飞的比熊1
[考研] 334分机械专硕求调剂 +3 蛋花紫菜汤 2026-04-03 3/150 2026-04-07 14:49 by 逍遥cocoa
[考研] 305分求调剂 +3 哈_哈_哈_哈_哈 2026-04-04 5/250 2026-04-07 14:49 by 哈_哈_哈_哈_哈
[考研] 材料调剂 +5 小刘同学吖吖 2026-04-06 5/250 2026-04-06 18:34 by sherry_1901
[考研] 319求调剂 +3 handrui 2026-04-05 3/150 2026-04-06 09:33 by jp9609
[考研] 求调剂 +3 ffyyu 2026-04-02 3/150 2026-04-04 19:03 by 蓝云思雨
[考研] 复试调剂 +6 范根培 2026-04-04 6/300 2026-04-04 14:27 by 土木硕士招生
[硕博家园] 求老师收留 +9 lllq123 2026-04-03 9/450 2026-04-03 13:48 by 呼吸都是减肥
[考研] 302求调剂 +9 zyx上岸! 2026-04-02 9/450 2026-04-02 23:07 by 马儿快快地跑
[考研] 一志愿北京科技材料科学与工程288分,求调剂 +14 是辰啊 2026-04-02 14/700 2026-04-02 21:10 by dongzh2009
[考研] 346求调剂 +5 郑诚乐 2026-04-02 5/250 2026-04-02 16:38 by SZW_UJN
信息提示
请填处理意见