写了一个Makefile,make时老报错,大家帮解决下啊该怎么解决
发布时间:2011-06-27 19:16:29 文章来源:www.iduyao.cn 采编人员:星星草
写了一个Makefile,make时老报错,大家帮解决下啊,急~~
#################################
#
# NEW MAKEFILE
#
#################################
PINDIR=/opt/ttadmin/TimesTen/tt1121
INCDIR=$(PINDIR)/include
LIBDIR=$(PINDIR)/lib
TINCDIR=$(INCDIR)/ttclasses
################################
INCFILES= $(INCDIR)/sql.h $(INCDIR)/sqlext.h $(INCDIR)/sqltypes.h $(INCDIR)/sqlunix.h\
$(INCDIR)/timesten.h $(INCDIR)/tt_errCode.h $(INCDIR)/tt_xa.h $(INCDIR)/tt_xla.h\
$(INCDIR)/ttutil.h $(INCDIR)/ttutillib.h $(INCDIR)/xa.h $(TINCDIR)/TTInclude.h\
$(TINCDIR)/TTConnection.h $(TINCDIR)/TT__Header.h
OBJECTS= basics.o bulkcp.o bulktest.o catalog.o\
plsqlTTCLASSES.o pooltest.o portable_thread_unix.o\
testprog_utils.o ttSizeAll.o typetest.o
ttclasses_test:$(OBJECTS)
CC -o $(OBJECTS)
basics.o:basics.cpp $(INCFILES)
CC -c basics.cpp
bulkcp.o:bulkcp.cpp $(INCFILES)
CC -c bulkcp.cpp
bulktest.o:bulktest.cpp $(INCFILES)
CC -c bulktest.cpp
catalog.o:catalog.cpp $(INCFILES)
CC -c catalog.cpp
plsqlTTCLASSES.o:plsqlTTCLASSES.cpp $(INCFILES)
CC -c plsqlTTCLASSES.cpp
pooltest.o:pooltest.cpp $(INCFILES)
CC -c pooltest.cpp
portable_thread_unix.o:portable_thread_unix.c $(INCFILES)
cc -c portable_thread_unix.c
testprog_utils.o:testprog_utils.cpp $(INCFILES)
CC -c testprog_utils.cpp
ttSizeAll.o:ttSizeAll.cpp $(INCFILES)
CC -c ttSizeAll.cpp
typetest.o:typetest.cpp $(INCFILES)
CC -c typetest.cpp
clean:
rm ttclasses_test:$(OBJECTS)
############
报的错误为:
$ make
CC -c basics.cpp
"basics.cpp", line 32: Error: Could not open include file<ttclasses/TTInclude.h>.
"testprog_utils.h", line 19: Error: Could not open include file<sqlunix.h>.
"testprog_utils.h", line 26: Error: Could not open include file<sql.h>.
"testprog_utils.h", line 27: Error: Could not open include file<sqlext.h>.
"basics.cpp", line 34: Error: Could not open include file "tt_version.h".
"basics.cpp", line 38: Error: TTConnection is not defined.
"basics.cpp", line 40: Error: TTConnection is not defined.
"basics.cpp", line 40: Error: Connect is not defined.
"basics.cpp", line 43: Error: Type name expected instead of "TTCmd".
"basics.cpp", line 44: Error: Type name expected instead of "TTCmd".
"basics.cpp", line 45: Error: Type name expected instead of "TTCmd".
"basics.cpp", line 46: Error: Type name expected instead of "TTCmd".
"basics.cpp", line 53: Error: TTConnection is not defined.
"basics.cpp", line 53: Error: DRIVER_COMPLETION_ENUM is not defined.
"basics.cpp", line 75: Error: TTError is not defined.
"basics.cpp", line 76: Error: cerr is not defined.
"basics.cpp", line 76: Error: st is not defined.
"basics.cpp", line 76: Error: endl is not defined.
"basics.cpp", line 85: Error: int is not a structure type.
"basics.cpp", line 86: Error: int is not a structure type.
"basics.cpp", line 87: Error: int is not a structure type.
"basics.cpp", line 89: Error: TTConnection is not defined.
"basics.cpp", line 95: Error: SampleConnection::Connect(const char*, int) is not a static data member.
"basics.cpp", line 95: Error: There is no matching ")".
"basics.cpp", line 95: Error: TTConnection is not defined.
Compilation aborted, too many Error messages.
*** Error code 2
make: Fatal error: Command failed for target `basics.o'
------解决方案--------------------
你的头文件指定的不对吧,参考一个标准的
------解决方案--------------------
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。
其他相似内容:
-
solaris 10下的多线程和solaris 5.8下多线程编译有什么区别??
我一个在solaris 10下编译通过且能正常运行的程序,为什么在solaris 5....
-
提示 read-only file system
从网上下载了一个vmware 镜相文件,用root 登陆,但用vi, mkdir 总是提示 read-only file system
这...
-
ftp的20、21端口
如果一台机器1可以ftp到另一台机器2,则需要开通机器1到机器2的20和21端口,我在机器1上用“telnet 机器1的IP 21”...
-
Solaris10如何重启inetd服务
问题描述:SunOS(Solaris 10) Unix系统下有一个具有sudo权限的非root用户修改了/etc/services文件,请问...
-
求solaris下的类似linux的top命令,谢谢!
rt
------解决方案--------------------
你可以使用prstat或者去下载包含top命令的软件包...
-
(急!)如何在UNIX中配置Microsoft SQL Server 2000 Driver for JDBC?
UNIX环境中已设置环境变量(在.bash_profile中设置,执行:echo $CLA...
-
Solaris 压缩问题
Solaris 我打了一个tar包,它的大小有6.5G,然后我用zip去压缩的时候发现不能成功,好像zip不能压缩超过2G的文件,请问...
-
急急急unix下的Xterm指的是什么?
急急急unix下的Xterm指的是什么?在哪里可以找到这个东东?原话是这样的:“do same as above with: an...
-
solaris下面,如何看支持mount哪些类型的文件系统
mount命令本身有这样的功能么?
------解决方案--------------------
没有 一...
-
请教各位高手,有没有命令是用来查看文件格式的 unix dos
查看某个文件是unix格式还是dos格式,能用vi命令来看,但是好像不能用程序来...