24小时热门版块排行榜    

查看: 806  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 2019年青年基金涵评意见,大家看看几个A,几个B? +8 Tide man 2026-08-11 8/400 2026-08-12 17:30 by Vivilian
[基金申请] 不应该看fileCode +5 且听虎啸 2026-08-12 6/300 2026-08-12 16:26 by Tide man
[基金申请] 好奇怪的filecode +5 布布和一二 2026-08-08 6/300 2026-08-12 16:11 by 云上清扬
[基金申请] 应该是93bebmhtak前后十一个字符比较关键 +22 Lanmanbaby 2026-08-09 35/1750 2026-08-12 14:38 by sdfapple719
[论文投稿] 职称评审,求友友推荐见刊最快的期刊 +4 工厂打螺丝 2026-08-08 4/200 2026-08-12 09:18 by hansi2025
[基金申请] 奇怪,两个人的filecode固定段从头到尾一模一样 +7 布布和一二 2026-08-10 10/500 2026-08-12 09:12 by 布布和一二
[基金申请] 综述论文作为代表作会不会影响评审专家的印象分? +11 yufeiwaner 2026-08-09 13/650 2026-08-12 08:17 by yufeiwaner
[基金申请] 小木虫上这么多卖论文的,真有人买论文么?感觉没必要啊 +8 Tide man 2026-08-10 9/450 2026-08-11 20:39 by beefly
[基金申请] 为什么网上很多人说本周 12号出结果 +6 瞬息宇宙 2026-08-10 7/350 2026-08-11 19:25 by Tide man
[硕博家园] 读博的好处 +3 lnee 2026-08-11 3/150 2026-08-11 18:10 by 希望我好好的
[基金申请] 国自然结果 +4 Vierhys 2026-08-10 8/400 2026-08-10 15:06 by Vierhys
[基金申请] 据悉今年马上要出结果了 +7 瞬息宇宙 2026-08-10 8/400 2026-08-10 12:42 by Vivilian
[基金申请] 2026国自然放榜时间 +9 布布和一二 2026-08-08 9/450 2026-08-10 11:22 by xxxx2020
[基金申请] filecode与中标关系的预测 +5 布布和一二 2026-08-07 5/250 2026-08-09 16:15 by 袁向阳007
[基金申请] fileCode有新解读? +10 Tide man 2026-08-08 18/900 2026-08-09 12:55 by 仁砚薪传
[基金申请] 关于filecode +4 布布和一二 2026-08-07 7/350 2026-08-07 22:55 by zhanghaozhu
[基金申请] 固定端突然变了,今天 +6 archvillain 2026-08-06 10/500 2026-08-07 16:03 by 医学老男孩
[基金申请] 大家散了吧,后缀研究没有意义,别浪费时间了,过好目前的每一天,不要焦虑 +5 Tide man 2026-08-06 7/350 2026-08-07 13:11 by 医学老男孩
[基金申请] filecode +14 等待解的谜 2026-08-06 19/950 2026-08-07 12:20 by wlwhappy
[基金申请] filecode +8 布布和一二 2026-08-06 11/550 2026-08-06 20:41 by tangpu318
信息提示
请填处理意见