|
Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006
Gcc compiler questions. #g++-C -O3 -DUNIX /usr/include/g++-3 gen.cpp
#make[1] : Entering directory `/root/tpr/generate '
Linux-c -O3 -DUNIX -DUSE_TYPEDEF=0 /usr/include/g++-3/ 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 "Xh>; header for C + + includes, or" sstream>; instead of the deprecated header "strstream.h>; . -Wno-deprecated To disable this warning use.
Gen.cpp:20:20 : macros.h no such documents or catalogs :
Gen.cpp : In function `void OutTime (Std : : ostream& Float) ':
Gen.cpp:166 no matched function : : : basic_ostream<char `std to call for.
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 matched function : : : basic_ostream<char `std to call for.
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 matched function : : : basic_ostream<char `std to call for.
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 matched function : : : basic_ostream<char `std to call for.
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 matched function : : : basic_ostream<char `std to call for.
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 matched function : : : basic_ostream<char `std to call for.
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 matched function : : : basic_ostream<char `std to call for.
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 `/root/tpr/generate '
Error 2 make : *** [all]
This is because the compiler version is not compatible with the code Makefile文件 a problem?
Will educated us, thank you |
Gcc compiler questions. -->
Lz is confident that way, why do you consider the code? Remember the C + + language is a strong type. |
Gcc compiler questions. I wrote the code is not from a foreign website from top to bottom |
Gcc compiler questions. /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 "Xh>; header for C + + includes, or" sstream>; instead of the deprecated header "strstream.h>; . -Wno-deprecated To disable this warning use.
This is what the old and new standards to the problem is to let you use the "sstream>; replace the" strstream.h>;.
Gen.cpp:20:20 : macros.h no such documents or catalogs :
You should be in the catalog under the name of one of the first documents macros.h.
Gen.cpp:166 no matched function : : : basic_ostream<char `std to call for.
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>;]
This may be due to a heap of the reasons you write the code inside the methods used ostream binary output value of a float type, but the prototype is ostream : : write (const char*, int);
So you have to type for mandatory, float* conversion (const char*).
Currently, the compiler output Lane you can see from these mistakes. |
Gcc compiler questions. #include Gen.cpp : "macros.h>; code package which is not the first such written document but I think it might be bringing their compiler. However, I did not find this a bit /usr/include/g++-3 catalog (gcc3.2.2) gcc version is the problem then?
Thank you renstone921 |
Gcc compiler questions. The first document did not provide Linux macros.h |
Gcc compiler questions. Please see the super Banzhupai |
| |