24小时热门版块排行榜    

Znn3bq.jpeg
查看: 752  |  回复: 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的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 314求调剂 +12 wakeluofu 2026-04-09 12/600 2026-04-09 11:42 by yongzhesheng
[考博] 博士自荐 +3 可可小胖 2026-04-08 3/150 2026-04-09 11:25 by juanzi_88
[考研] 26考研调剂0710 0860 +10 补补不补 2026-04-03 15/750 2026-04-09 11:13 by ditto77778
[考研] 267求调剂 +3 再忙也要吃饭啊 2026-04-09 3/150 2026-04-09 09:34 by 逆水乘风
[考研] 求调剂,现在还能填的 +3 上岸小莹加油 2026-04-08 3/150 2026-04-08 14:30 by zhq0425
[考研] 298求调剂 +4 残荷新柳 2026-04-07 4/200 2026-04-07 23:02 by lbsjt
[考研] 一志愿西南090202求调剂 +4 在线求有学上 2026-04-07 4/200 2026-04-07 19:47 by biomichael
[考研] 372分材料与化工(085600)英二数二求调剂 +4 蓝笺片 2026-04-06 4/200 2026-04-07 12:30 by dongzh2009
[考研] 求调剂 +4 电气小神童 2026-04-04 6/300 2026-04-07 00:14 by guanxin1001
[考研] 一志愿南航,数一英一学硕317求调剂!! +6 Acaciad 2026-04-04 6/300 2026-04-06 12:13 by 考研学校招点人
[考研] 求调剂 +5 wos666 2026-04-03 5/250 2026-04-06 10:13 by 蓝云思雨
[考研] 材料调剂 +6 一样YWY 2026-04-05 6/300 2026-04-05 20:30 by 南航~万老师
[考研] 327求调剂 +4 拾光任染 2026-04-05 4/200 2026-04-05 20:16 by 南航~万老师
[考研] 能动调剂326专硕 +4 wan112233 2026-04-04 4/200 2026-04-04 22:47 by yu221
[考研] 考研调剂 +5 四川王涛 2026-04-04 5/250 2026-04-04 22:18 by 啵啵啵0119
[考研] 085601,一志愿厦大334复试被刷求调剂 +13 曾仰之 2026-04-03 15/750 2026-04-04 20:13 by dongzh2009
[考研] 298求调剂 +5 zzz,,r 2026-04-02 8/400 2026-04-04 19:55 by 蓝云思雨
[考研] 309求调剂 +4 快乐的小白鸽 2026-04-04 5/250 2026-04-04 15:55 by cql1109
[考研] 一志愿北交大材料工程总分358 +6 cs0106 2026-04-03 6/300 2026-04-04 11:20 by w_xuqing
[考研] 考研调剂 +8 不爱喝饮料 2026-04-03 8/400 2026-04-03 16:40 by Mistake-J
信息提示
请填处理意见