| 查看: 752 | 回复: 2 | ||
| 当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖 | ||
[求助]
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 |
» 猜你喜欢
复试调剂,一志愿郑州大学材料与化工289分
已经有23人回复
化学工程与技术专业一志愿哈工程 291分B区 国家级大创负责人 有一作论文
已经有6人回复
材料调剂
已经有10人回复
314求调剂
已经有12人回复
调剂 化学 307
已经有8人回复
一志愿211 0703化学 346分求调剂
已经有11人回复
086003调剂求助
已经有14人回复
085400 328分 求调剂
已经有5人回复
083200 初试305分 求调剂
已经有9人回复
284求调剂
已经有3人回复
» 本主题相关价值贴推荐,对您同样有帮助:
matlab 符号变量 不能编译问题
已经有1人回复
请问C++编译完成后形成了exe可执行文件,可是运行时报错是为什么?
已经有3人回复
vc6.0编译32位软件在win7的64位电脑中运行的问题
已经有3人回复
matlab 语言错误
已经有4人回复
matlab程序中调用m文件的问题
已经有13人回复
关于matlab GUI打包生产exe文件,并使其在没有安装matlab的计算机上运行的问题。。
已经有4人回复
关于Latex中pdf和eps图片的处理
已经有13人回复
linux下如何设置脚本文件让matlab自动运行程序?
已经有4人回复
Matlab中如何自己定义一个新函数,然后计算时可以调用?
已经有12人回复
WIN7下MATLAB7调用mexw32文件
已经有15人回复
手机上的C/C++编译器,学编程的同学们有福了
已经有72人回复
如何写程序并生成软件?
已经有17人回复
William T. Freeman的基于例子超分辨率matlab程序跑不起来啊!
已经有6人回复
源代码如何生成可执行文件?
已经有5人回复
文件.f如何编译成可执行文件
已经有3人回复
【求助】怎么装visual C++编译器?
已经有4人回复
【求助】求助,如何使linux能运行windows dos 的程序!
已经有5人回复
3楼2014-08-16 03:16:31
wujiadw
铜虫 (初入文坛)
- 应助: 5 (幼儿园)
- 金币: 475.2
- 帖子: 28
- 在线: 55.8小时
- 虫号: 1991412
- 注册: 2012-09-11
- 性别: GG
- 专业: 岩土与基础工程
2楼2014-08-15 14:56:48














回复此楼