问题描述
大家好。我需要从
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.
推荐答案
如果你能告诉我在哪里放错了我的钥匙,我会帮你找到它
洗衣房......我一直在寻找它! :)
无论如何,它不是标准的C ++标题之一,所以你可以停止查看g ++目录中的
。
-
Bob Hairgrove
我会帮你找到它,如果你能告诉我在哪里把我的钥匙放到了洗衣房里。我一直在寻找它! :)
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,它在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!