------ Build started: Project: test1, Configuration: Debug Win32 ------
Compiling...
main.cpp
.\main.cpp(45) : error C2079: 'outFile' uses undefined class 'std::basic_ofstream<_Elem,_Traits>'
with
[
_Elem=char,
_Traits=std::char_traits<char>
]
.\main.cpp(45) : error C2440: 'initializing' : cannot convert from 'const char [11]' to 'int'
There is no context in which this conversion is possible
.\main.cpp(49) : error C2784: 'std::basic_ostream<_Elem,_Traits> &std::operator <<(std::basic_ostream<_Elem,_Traits> &,const std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'std::basic_ostream<_Elem,_Traits> &' from 'int'
C:\Program Files\Microsoft Visual Studio 8\VC\include\string(538) : see declaration of 'std::operator <<'
.\main.cpp(49) : error C2784: 'std::basic_ostream<char,_Traits> &std::operator <<(std::basic_ostream<char,_Traits> &,unsigned char)' : could not deduce template argument for 'std::basic_ostream<char,_Traits> &' from 'int'
C:\Program Files\Microsoft Visual Studio 8\VC\include\ostream(927) : see declaration of 'std::operator <<'
.\main.cpp(49) : error C2784: 'std::basic_ostream<char,_Traits> &std::operator <<(std::basic_ostream<char,_Traits> &,const unsigned char *)' : could not deduce template argument for 'std::basic_ostream<char,_Traits> &' from 'int'
C:\Program Files\Microsoft Visual Studio 8\VC\include\ostream(920) : see declaration of 'std::operator <<'
.\main.cpp(49) : error C2784: 'std::basic_ostream<char,_Traits> &std::operator <<(std::basic_ostream<char,_Traits> &,signed char)' : could not deduce template argument for 'std::basic_ostream<char,_Traits> &' from 'int'
C:\Program Files\Microsoft Visual Studio 8\VC\include\ostream(913) : see declaration of 'std::operator <<'
.\main.cpp(49) : error C2784: 'std::basic_ostream<char,_Traits> &std::operator <<(std::basic_ostream<char,_Traits> &,const signed char *)' : could not deduce template argument for 'std::basic_ostream<char,_Traits> &' from 'int'
C:\Program Files\Microsoft Visual Studio 8\VC\include\ostream(906) : see declaration of 'std::operator <<'
.\main.cpp(49) : error C2784: 'std::basic_ostream<_Elem,_Traits> &std::operator <<(std::basic_ostream<_Elem,_Traits> &,_Elem)' : could not deduce template argument for 'std::basic_ostream<_Elem,_Traits> &' from 'int'
C:\Program Files\Microsoft Visual Studio 8\VC\include\ostream(868) : see declaration of 'std::operator <<'
.\main.cpp(49) : error C2784: 'std::basic_ostream<_Elem,_Traits> &std::operator <<(std::basic_ostream<_Elem,_Traits> &,const _Elem *)' : could not deduce template argument for 'std::basic_ostream<_Elem,_Traits> &' from 'int'
C:\Program Files\Microsoft Visual Studio 8\VC\include\ostream(822) : see declaration of 'std::operator <<'
.\main.cpp(49) : error C2784: 'std::basic_ostream<char,_Traits> &std::operator <<(std::basic_ostream<char,_Traits> &,char)' : could not deduce template argument for 'std::basic_ostream<char,_Traits> &' from 'int'
C:\Program Files\Microsoft Visual Studio 8\VC\include\ostream(782) : see declaration of 'std::operator <<'
.\main.cpp(49) : error C2784: 'std::basic_ostream<char,_Traits> &std::operator <<(std::basic_ostream<char,_Traits> &,const char *)' : could not deduce template argument for 'std::basic_ostream<char,_Traits> &' from 'int'
C:\Program Files\Microsoft Visual Studio 8\VC\include\ostream(735) : see declaration of 'std::operator <<'
.\main.cpp(49) : error C2784: 'std::basic_ostream<_Elem,_Traits> &std::operator <<(std::basic_ostream<_Elem,_Traits> &,char)' : could not deduce template argument for 'std::basic_ostream<_Elem,_Traits> &' from 'int'
C:\Program Files\Microsoft Visual Studio 8\VC\include\ostream(697) : see declaration of 'std::operator <<'
.\main.cpp(49) : error C2784: 'std::basic_ostream<_Elem,_Traits> &std::operator <<(std::basic_ostream<_Elem,_Traits> &,const char *)' : could not deduce template argument for 'std::basic_ostream<_Elem,_Traits> &' from 'int'
C:\Program Files\Microsoft Visual Studio 8\VC\include\ostream(650) : see declaration of 'std::operator <<'
.\main.cpp(49) : error C2677: binary '<<' : no global operator found which takes type 'std::string' (or there is no acceptable conversion)
.\main.cpp(51) : error C2228: left of '.close' must have class/struct/union
type is 'int'
Build log was saved at "file://c:\Documents and Settings\Viki\My Documents\Visual Studio 2005\Projects\test1\test1\Debug\BuildLog.htm"
test1 - 15 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
[15:41:05] Vycka says: ofstream outFile("target.txt");
for (; li != stringLList.end(); li++)
{
cout << li->getString() << " " << li->getCount() << endl;
outFile << li->getString() << " " << li->getCount() << endl;
}
outFile.close();