小弟在编译时报错:ANSI C++ forbits data member "ip_opts" with same name as encloing class.这个ip_opts是定义在bits/in.h中的,结构如下 struct ip_opts { struct in_addr, ip_dst; char ip_opts[40] ; } 请问大家有没有什么办法可以解决的
by xiaojiemao - C/C++ - 2005-06-27 09:50:01 阅读(1053) 回复(0)
我们是这样做的: 1。在主机上编译程序aaa.cpp。(主机上有arm-linux-strip,arm-linux-gcc等命令,即有编译环境) arm-linux-g++ -o aaa aaa.cpp 2。终端里运行的是经裁减的linux,只具备基本的操作命令,类似cd。终端与主机通过串口线相连,在主机上运行超级终端程序显示终端运行情况。通过tftp 之类的工具把aaa 下到终端里面 。 3。在终端里面运行aaa.不多时程序死掉 问题: 1。怎样调试程序aaa?
我们是这样做的: 1。在主机上编译程序aaa.cpp。(主机上有arm-linux-strip,arm-linux-gcc等命令,即有编译环境) arm-linux-g++ -o aaa aaa.cpp 2。终端里运行的是经裁减的linux,只具备基本的操作命令,类似cd。终端与主机通过串口线相连,在主机上运行超级终端程序显示终端运行情况。通过tftp 之类的工具把aaa 下到终端里面 。 3。在终端里面运行aaa.不多时程序死掉 问题: 1。怎样调试程序aaa?
在pc机上用arm-linux-g++编译出的程序,比如aaa,下到终端机里面运行(终端里面运行的是精简的linux),有时会死掉,不知怎样调试?可有arm-linux-gdb?
在pc机上用arm-linux-g++编译出的程序,比如aaa,下到终端机里面运行(终端里面运行的是精简的linux),有时会死掉,不知怎样调试?可有arm-linux-gdb?
小弟在arm-linux的交叉编译环境中编译我的应用程序,编译的时候报错如下: ANSI C++ forbits data member "ip_opts" with same name as encloing class.我发现在/bits/in.h中有如下定义: struct ip_opts { struct in_addr, ip_dst; char ip_opts[40] ; } 请问大家有没有什么解决办法,怎么样才能pass?太谢谢了
小弟在arm-linux的交叉编译环境中编译我的应用程序,编译的时候报错如下: ANSI C++ forbits data member "ip_opts" with same name as encloing class.我发现在/bits/in.h中有如下定义: struct ip_opts { struct in_addr, ip_dst; char ip_opts[40] ; } 请问大家有没有什么解决办法,怎么样才能pass?太谢谢了