24小时热门版块排行榜    

Znn3bq.jpeg
查看: 751  |  回复: 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的回帖

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的回帖
查看全部 3 个回答

wujiadw

铜虫 (初入文坛)

【答案】应助回帖

你确定不是来水的?matlab编译c生成可执行文件?
2楼2014-08-15 14:56:48
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 308求调剂 +16 墨墨漠 2026-04-06 16/800 2026-04-09 00:16 by lature00
[考研] 化学调剂求助 +13 LULONG1 2026-04-03 18/900 2026-04-08 21:54 by LULONG1
[考研] 0703化学调剂 348分 +14 唉我超真没招了 2026-04-06 15/750 2026-04-08 19:16 by 我减肥1
[考研] 一志愿吉大化学327求调剂 +12 王王白石 2026-04-06 13/650 2026-04-08 16:05 by luoyongfeng
[考研] 求助071001调剂!!! +6 黄守松 2026-04-05 7/350 2026-04-08 11:54 by 猪会飞
[考研] 化学调剂 +18 艾志恒 2026-04-03 19/950 2026-04-07 16:00 by 起飞的比熊1
[考研] 化工调剂303分,过四级 +34 栖梧待风 2026-04-02 34/1700 2026-04-07 12:30 by 1018329917
[考研] 求调剂到材料 +5 程9915 2026-04-06 5/250 2026-04-06 15:21 by yulian1987
[考研] 0817化学工程与技术求调剂,一志愿中海洋319 +14 lv945 2026-04-04 14/700 2026-04-06 10:20 by 蓝云思雨
[考研] 考研调剂 +11 小sun要好运 2026-04-04 11/550 2026-04-05 08:02 by qlm5820
[考研] 一志愿上海大学生物学346 +3 上海大学346调剂 2026-04-03 3/150 2026-04-04 20:20 by dongzh2009
[考研] 272求调剂 +4 松柏常青5 2026-04-03 4/200 2026-04-04 17:03 by babysonlkd
[考研] 怎么删帖子啊 +3 缝曦1000 2026-04-04 3/150 2026-04-04 14:20 by 土木硕士招生
[考研] 考研调剂 +3 15615482637 2026-04-03 3/150 2026-04-03 22:50 by ms629
[考研] 320求调剂 +5 振—TZ 2026-04-02 5/250 2026-04-03 14:42 by fxue1114
[考研] 一志愿北京交通大学材料工程总分358 +4 cs0106 2026-04-03 4/200 2026-04-03 13:41 by 百灵童888
[考研] 303求调剂 +3 一色清羽 2026-04-02 4/200 2026-04-03 10:22 by 蓝云思雨
[考研] 326求调剂 +10 崽崽仔 2026-04-02 10/500 2026-04-03 09:08 by 帕尔马拉特
[考研] 交通运输考试264分求工科调剂 +4 jike777 2026-04-02 4/200 2026-04-02 21:53 by zllcz
[考研] 22408 266求调剂 +3 masss11222 2026-04-02 3/150 2026-04-02 18:11 by 笔落锦州
信息提示
请填处理意见