Makefile错误 [英] Makefile error

查看:78
本文介绍了Makefile错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我编译这个make文件时,它给出了错误类型名称,非法字符$,@.请任何人能帮助您如何使用此Make文件吗?

when i compile this make file,it gives error type name exected,illegal character $,@. Please any one can help in how to use this make file?

OBJS = generate.obj factgen.obj represen.obj timegen.obj tmdates.obj writers.obj brangen.obj custygen.obj params.obj random.obj strname.obj zipcity.obj

generate: $(OBJS)
    g++ $(OBJS) -lg++ -lm -o $@

generate.obj: generate.cc timegen.h zipcity.h custygen.h brangen.h params.h represen.h tmdates.h
    g++ -c generate.cc

factgen.obj: factgen.cc factgen.h brangen.h random.h represen.h zipcity.h params.h tmdates.h
    g++ -c factgen.cc

represen.obj: represen.cc represen.h tmdates.h strname.h
    g++ -c represen.cc

tmdates.obj: tmdates.cc tmdates.h
    g++ -c tmdates.cc

timegen.obj: timegen.cc timegen.h tmdates.h
    g++ -c timegen.cc

writers.obj: writers.cc writers.h tmdates.h
    g++ -c writers.cc

brangen.obj: brangen.cc brangen.h random.h represen.h zipcity.h params.h tmdates.h
    g++ -c brangen.cc

custygen.obj: custygen.cc custygen.h represen.h zipcity.h params.h tmdates.h
    g++ -c custygen.cc

params.obj: params.cc params.h strname.h tmdates.h
    g++ -c params.cc

random.obj: random.cc random.h
    g++ -c random.cc

strname.obj: strname.cc strname.h
    g++ -c strname.cc

zipcity.obj: zipcity.cc zipcity.h random.h
    g++ -c zipcity.cc

推荐答案

,@.请任何人能帮助您如何使用此Make文件吗?

,@. Please any one can help in how to use this make file?

OBJS = generate.obj factgen.obj represen.obj timegen.obj tmdates.obj writers.obj brangen.obj custygen.obj params.obj random.obj strname.obj zipcity.obj

generate:


(OBJS) g ++
(OBJS) g++


(OBJS)-lg ++ -lm -o
(OBJS) -lg++ -lm -o


这篇关于Makefile错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆