Code:
#include <apstring.h>
apstring apfilename;
cout<<"Filename for data output (max 20 characters)->";
cin>>apfilename;
apfilename += ".txt";
ofstream logfile(apfilename.c_str(), ios::out | ios::end );
This is what I have now, exept I get no errors when compiling, but when I click 'Build .exe' I get:
Code:
--------------------Configuration: deviationcpp - Win32 Debug--------------------
Linking...
deviationcpp.obj : error LNK2001: unresolved external symbol "class ostream & __cdecl operator<<(class ostream &,class apstring const &)" (??6@YAAAVostream@@AAV0@ABVapstring@@@Z)
deviationcpp.obj : error LNK2001: unresolved external symbol "public: char const * __thiscall apstring::c_str(void)const " (?c_str@apstring@@QBEPBDXZ)
deviationcpp.obj : error LNK2001: unresolved external symbol "public: __thiscall apstring::~apstring(void)" (??1apstring@@QAE@XZ)
deviationcpp.obj : error LNK2001: unresolved external symbol "public: class apstring const & __thiscall apstring::operator+=(class apstring const &)" (??Yapstring@@QAEABV0@ABV0@@Z)
deviationcpp.obj : error LNK2001: unresolved external symbol "public: __thiscall apstring::apstring(char const *)" (??0apstring@@QAE@PBD@Z)
deviationcpp.obj : error LNK2001: unresolved external symbol "class istream & __cdecl operator>>(class istream &,class apstring &)" (??5@YAAAVistream@@AAV0@AAVapstring@@@Z)
deviationcpp.obj : error LNK2001: unresolved external symbol "public: __thiscall apstring::apstring(void)" (??0apstring@@QAE@XZ)
Debug/deviationcpp.exe : fatal error LNK1120: 7 unresolved externals
Error executing link.exe.
deviationcpp.exe - 8 error(s), 0 warning(s)
This is probably due to the ole32.lib file that came with apstring.cpp and apstring.h when I downloaded them, I don't know where to put it, I went to put it in VC98/Lib/ or something similar but it already existed, I'm sure this is what's causing the problem.