2 Problems

EDIT: Solved the first problem

2nd problem: I have created a DLL with VS2010, but when I link the library like:
1
2
#include "mylib.h"//should this be the original header(with _declspec(dllexport) next to them or can you use the one without?
#pragma comment(lib,"mydll.lib")//added the dir for libs 


error LNK2019: unresolved external symbol "class std::basic_istream<char,struct std::char_traits<char> > & __cdecl operator>>(class std::basic_istream<char,struct std::char_traits<char> > &,class tLib::string &)" (??5@YAAAV?$basic_istream@DU?$char_traits@D@std@@@std@@AAV01@AAVstring@tLib@@@Z) referenced in function _main


this is what the compiler says when I try to compile(I made a class with some string management, also I overloaded the >> and << operators like this:
std::ostream& operator<<(std::ostream&,tLib::string&);
Last edited on
Topic archived. No new replies allowed.