macros.h,它在哪里? [英] macros.h, where is it?

查看:180
本文介绍了macros.h,它在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。我需要从

edu下载c ++下载的源代码包。网站。

这里发生了什么

#make all

cd generate; make

make [1]:输入目录`/ home / dpr / generate''

g ++ -c -O3 -DUNIX gen.cpp

在/usr/include/c++/3.2.2/backward/fstream.h:31中包含的文件中,
来自gen.h的
:13,
来自gen的
。 cpp:10:

/usr/include/c++/3.2.2/backward/backward_warning.h:32:2:警告:

#warning此文件至​​少包含一个已弃用或过时的

标题。请考虑使用C ++标准的
17.4.1.2部分中的32个标题之一。示例包括将< X>

标头替换为< X.h> C ++包含的标题,或者< sstream>而不是

已弃用的标题< strstream.h>。要禁用此警告,请使用

-Wno-deprecated。

gen.cpp:20:20:macros.h:找不到此类文件或目录

gen.cpp:在函数`void OutTime(std :: ostream&,float)'':

gen.cpp:166:没有用于调用`std :: basic_ostream< char的匹配函数,

std :: char_traits< char> > :: write(float *,unsigned int)''

/usr/include/c++/3.2.2/bits/ostream.tcc:387:候选人是:

std :: basic_ostream< _CharT,_Traits>& std :: basic_ostream< _CharT,

_Traits> :: write(const _CharT *,int)[with _CharT = char,_Traits =

std :: char_traits< char> ]

gen.cpp:在函数`void AdvTime(std :: ostream&,float)'':

gen.cpp:179:没有匹配的函数用于调用`std :: basic_ostream< char,

std :: char_traits< char> > :: write(float *,unsigned int)''

/usr/include/c++/3.2.2/bits/ostream.tcc:387:候选人是:

std :: basic_ostream< _CharT,_Traits>& std :: basic_ostream< _CharT,

_Traits> :: write(const _CharT *,int)[with _CharT = char,_Traits =

std :: char_traits< char> ]

gen.cpp:函数`void OutSelect(std :: ostream&,float *,float *,

float,

float ,float *)'':

gen.cpp:223:没有匹配函数来调用`std :: basic_ostream< char,

std :: char_traits< char> > :: write(float *&,unsigned int)''

/usr/include/c++/3.2.2/bits/ostream.tcc:387:候选人是:

std :: basic_ostream< _CharT,_Traits>& std :: basic_ostream< _CharT,

_Traits> :: write(const _CharT *,int)[with _CharT = char,_Traits =

std :: char_traits< char> ]

gen.cpp:224:没有匹配函数来调用`std :: basic_ostream< char,

std :: char_traits< char> > :: write(float *&,unsigned int)''

/usr/include/c++/3.2.2/bits/ostream.tcc:387:候选人是:

std :: basic_ostream< _CharT,_Traits>& std :: basic_ostream< _CharT,

_Traits> :: write(const _CharT *,int)[with _CharT = char,_Traits =

std :: char_traits< char> ]

gen.cpp:225:没有匹配函数来调用`std :: basic_ostream< char,

std :: char_traits< char> > :: write(float *,unsigned int)''

/usr/include/c++/3.2.2/bits/ostream.tcc:387:候选人是:

std :: basic_ostream< _CharT,_Traits>& std :: basic_ostream< _CharT,

_Traits> :: write(const _CharT *,int)[with _CharT = char,_Traits =

std :: char_traits< char> ]

gen.cpp:226:没有匹配函数来调用`std :: basic_ostream< char,

std :: char_traits< char> > :: write(float *,unsigned int)''

/usr/include/c++/3.2.2/bits/ostream.tcc:387:候选人是:

std :: basic_ostream< _CharT,_Traits>& std :: basic_ostream< _CharT,

_Traits> :: write(const _CharT *,int)[with _CharT = char,_Traits =

std :: char_traits< char> ]

gen.cpp:227:没有匹配函数来调用`std :: basic_ostream< char,

std :: char_traits< char> > :: write(float *&,unsigned int)''

/usr/include/c++/3.2.2/bits/ostream.tcc:387:候选人是:

std :: basic_ostream< _CharT,_Traits>& std :: basic_ostream< _CharT,

_Traits> :: write(const _CharT *,int)[with _CharT = char,_Traits =

std :: char_traits< char> ]

make [1]:*** [gen.o]错误1

make [1]:离开目录`/ home / dpr / generate''

make:*** [all]错误2


似乎缺少macro.h,但我无法在源代码中找到它/>
目录也没有/ usr / include / g ++ - 3.

任何帮助都会非常感激。

hi all. i need to compile a sourcecode package in c++ download from an
edu. site.
here is what has happened
#make all
cd generate; make
make[1]: Entering directory `/home/dpr/generate''
g++ -c -O3 -DUNIX gen.cpp
In file included from /usr/include/c++/3.2.2/backward/fstream.h:31,
from gen.h:13,
from gen.cpp:10:
/usr/include/c++/3.2.2/backward/backward_warning.h:32:2: warning:
#warning This file includes at least one deprecated or antiquated
header. Please consider using one of the 32 headers found in section
17.4.1.2 of the C++ standard. Examples include substituting the <X>
header for the <X.h> header for C++ includes, or <sstream> instead of
the deprecated header <strstream.h>. To disable this warning use
-Wno-deprecated.
gen.cpp:20:20: macros.h: no such file or directory found
gen.cpp: In function `void OutTime(std::ostream&, float)'':
gen.cpp:166: no matching function for call to `std::basic_ostream<char,
std::char_traits<char> >::write(float*, unsigned int)''
/usr/include/c++/3.2.2/bits/ostream.tcc:387: candidates are:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::write(const _CharT*, int) [with _CharT = char, _Traits =
std::char_traits<char>]
gen.cpp: In function `void AdvTime(std::ostream&, float)'':
gen.cpp:179: no matching function for call to `std::basic_ostream<char,
std::char_traits<char> >::write(float*, unsigned int)''
/usr/include/c++/3.2.2/bits/ostream.tcc:387: candidates are:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::write(const _CharT*, int) [with _CharT = char, _Traits =
std::char_traits<char>]
gen.cpp: In function `void OutSelect(std::ostream&, float*, float*,
float,
float, float*)'':
gen.cpp:223: no matching function for call to `std::basic_ostream<char,
std::char_traits<char> >::write(float*&, unsigned int)''
/usr/include/c++/3.2.2/bits/ostream.tcc:387: candidates are:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::write(const _CharT*, int) [with _CharT = char, _Traits =
std::char_traits<char>]
gen.cpp:224: no matching function for call to `std::basic_ostream<char,
std::char_traits<char> >::write(float*&, unsigned int)''
/usr/include/c++/3.2.2/bits/ostream.tcc:387: candidates are:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::write(const _CharT*, int) [with _CharT = char, _Traits =
std::char_traits<char>]
gen.cpp:225: no matching function for call to `std::basic_ostream<char,
std::char_traits<char> >::write(float*, unsigned int)''
/usr/include/c++/3.2.2/bits/ostream.tcc:387: candidates are:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::write(const _CharT*, int) [with _CharT = char, _Traits =
std::char_traits<char>]
gen.cpp:226: no matching function for call to `std::basic_ostream<char,
std::char_traits<char> >::write(float*, unsigned int)''
/usr/include/c++/3.2.2/bits/ostream.tcc:387: candidates are:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::write(const _CharT*, int) [with _CharT = char, _Traits =
std::char_traits<char>]
gen.cpp:227: no matching function for call to `std::basic_ostream<char,
std::char_traits<char> >::write(float*&, unsigned int)''
/usr/include/c++/3.2.2/bits/ostream.tcc:387: candidates are:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::write(const _CharT*, int) [with _CharT = char, _Traits =
std::char_traits<char>]
make[1]: *** [gen.o] Error 1
make[1]: Leaving directory `/home/dpr/generate''
make: *** [all] Error 2

it seems that macro.h is missing, but i can''t found it in the source
directory nor /usr/include/g++-3.
any help would be most appreciated.

推荐答案

2005年10月14日06:54:52 -0700,jing <ジ****** @ gmail.com>写道:
On 14 Oct 2005 06:54:52 -0700, "jing" <ji******@gmail.com> wrote:
似乎缺少macro.h,但我无法在源
目录中找到它,也没有/ usr / include / g ++ - 3。任何帮助都会非常感激。
it seems that macro.h is missing, but i can''t found it in the source
directory nor /usr/include/g++-3.
any help would be most appreciated.




如果你能告诉我在哪里放错了我的钥匙,我会帮你找到它

洗衣房......我一直在寻找它! :)


无论如何,它不是标准的C ++标题之一,所以你可以停止查看g ++目录中的



-

Bob Hairgrove
没有********** @ Home.com




" Bob Hairgrove" <在***** @ bigfoot.com>在消息中写道

news:v6 ******************************** @ 4ax.com ...

"Bob Hairgrove" <in*****@bigfoot.com> wrote in message
news:v6********************************@4ax.com...
2005年10月14日06:54:52 -0700,jing <ジ****** @ gmail.com>写道:
On 14 Oct 2005 06:54:52 -0700, "jing" <ji******@gmail.com> wrote:
似乎缺少macro.h,但我无法在源
目录中找到它,也没有/ usr / include / g ++ - 3。任何帮助都会非常感激。
it seems that macro.h is missing, but i can''t found it in the source
directory nor /usr/include/g++-3.
any help would be most appreciated.



我会帮你找到它,如果你能告诉我在哪里把我的钥匙放到了洗衣房里。我一直在寻找它! :)



I''ll help you find it if you can tell me where I mislaid my key to the
laundry room...I''ve been looking all over for it! :)




std :: cout<< 洗衣房访问的关键是等待

直到其他人进入,然后在门关闭之前走进

。 N'QUOT; / * :-) * /


[对不起。 :-)]

-Mike



std::cout << "The key to laundry room access is to wait "
"until someone else enters, and walk in "
"before the door closes.\n" /* :-) */

[sorry. :-)]
-Mike


也许头文件还没有以某种方式打包,有没有人

谁可能有兴趣自己编写macros.h。我是一个用c ++开头的b $ b新手,所以我怕我自己做不到。但我需要它

理想!

任何帮助将不胜感激。

maybe the header file hasn''t been packaged for somehow, is there anyone
who might have an interest to write macros.h by himself/herself. i''m a
novice in c++, so i''m afraid i can''t make it myself. BUT i need it
desirably!
any help would be appreciated.


这篇关于macros.h,它在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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