24小时热门版块排行榜    

Znn3bq.jpeg
查看: 750  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 一志愿电子科技大学085600材料与化工 329分求调剂 +11 Naiko 2026-04-04 11/550 2026-04-08 14:00 by wutongshun
[考研] 电子信息270求调剂 +7 terminal469 2026-04-07 7/350 2026-04-08 08:48 by tt19890111
[考研] 331求调剂 +5 张元一 2026-04-07 6/300 2026-04-07 22:13 by hemengdong
[考研] 336材料与化工085600求调剂 +19 水星记infp 2026-04-05 22/1100 2026-04-07 21:11 by yongzhesheng
[考研] 一志愿西南090202求调剂 +4 在线求有学上 2026-04-07 4/200 2026-04-07 19:47 by biomichael
[考研] 一志愿华中农业大学0710(A)初试329分 求调剂 +5 一名26考研生 2026-04-04 5/250 2026-04-07 08:54 by 18828373951
[考研] 机械专硕274求调剂,不挑专业学校 +6 泛泛2333 2026-04-05 8/400 2026-04-06 18:06 by 泛泛2333
[考研] 一志愿武汉理工大学080200机械工程308分,求调剂 +4 终不似从前 2026-04-05 4/200 2026-04-06 11:46 by 考研学校招点人
[考研] 0855求调剂材料 +11 红桃灼灼 2026-04-04 12/600 2026-04-06 10:26 by 蓝云思雨
[考研] 一志愿9材料学硕297已过六级求调剂推荐 +11 adaie 2026-04-04 12/600 2026-04-05 19:04 by 蓝云思雨
[考研] 338求调剂 +7 晟功? 2026-04-03 7/350 2026-04-04 20:37 by 蓝云思雨
[考研] 350一志愿北京航空航天大学08500材料科学与工程求调剂 +5 kjnasfss 2026-04-03 5/250 2026-04-03 22:29 by 无际的草原
[考研] 281求调剂 +10 aaawhy 2026-04-03 10/500 2026-04-03 21:42 by lbsjt
[考研] 一志愿华中农业071010,总分320求调剂 +7 困困困困坤坤 2026-04-02 7/350 2026-04-03 17:26 by Yuena_Wang
[考研] 考研调剂 +8 不爱喝饮料 2026-04-03 8/400 2026-04-03 16:40 by Mistake-J
[考研] 土木水利328分求调剂 +6 疾风知劲草666 2026-04-02 6/300 2026-04-03 11:38 by znian
[考研] 081200-11408-276学硕求调剂 +6 崔wj 2026-04-02 6/300 2026-04-03 10:19 by 蓝云思雨
[考研] 260求调剂 +3 朱芷琳 2026-04-02 3/150 2026-04-03 08:44 by yulian1987
[考研] 材料340分调剂 +7 夏夜晚风_long 2026-04-02 9/450 2026-04-02 21:20 by dongzh2009
[考研] 求调剂 +7 Aniyaio 2026-04-02 7/350 2026-04-02 16:42 by zzsw+
信息提示
请填处理意见