error LNK2001: unresolved external symbol

hi

i just installed the visual studio 2010

when i run my project (that fully compiled with vs 2008 without any error ) i get following :

1
2
3
4
5
6
7
8
9
10
11
12
1
1>  SDL_draw.lib : MSIL .netmodule or module compiled with /GL found;  restarting link with /LTCG; add /LTCG to the link command line to  improve linker performance
1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG'  specification
1>     Creating library C:\Users\Sina  Miandashti\Desktop\Graphics\Debug\Graphics.lib and object C:\Users\Sina  Miandashti\Desktop\Graphics\Debug\Graphics.exp
1>LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of  other libs; use /NODEFAULTLIB:library
1>graphics.obj : error LNK2001: unresolved external symbol  "__declspec(dllimport) protected: char const * __thiscall  std::basic_string<char,struct std::char_traits<char>,class  std::allocator<char> >::_Myptr(void)const "  (__imp_?_Myptr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IBEPBDXZ)
1>graphics.obj : error LNK2001: unresolved external symbol  "__declspec(dllimport) public: class std::basic_string<char,struct  std::char_traits<char>,class std::allocator<char> >  __thiscall std::basic_ostringstream<char,struct  std::char_traits<char>,class std::allocator<char>  >::str(void)const "  (__imp_?str@?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ)
1>graphics.obj : error LNK2001: unresolved external symbol  "__declspec(dllimport) public: __thiscall  std::basic_ostringstream<char,struct  std::char_traits<char>,class std::allocator<char>  >::basic_ostringstream<char,struct  std::char_traits<char>,class std::allocator<char> >(int)"   (__imp_??0?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z)
1>graphics.obj : error LNK2001: unresolved external symbol  "__declspec(dllimport) public: char const * __thiscall  std::basic_string<char,struct std::char_traits<char>,class  std::allocator<char> >::c_str(void)const "  (__imp_?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ)
1>graphics.obj : error LNK2001: unresolved external symbol  "__declspec(dllimport) public: __thiscall  std::basic_string<char,struct std::char_traits<char>,class  std::allocator<char> >::~basic_string<char,struct  std::char_traits<char>,class std::allocator<char>  >(void)"  (__imp_??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ)
1>graphics.obj : error LNK2001: unresolved external symbol  "__declspec(dllimport) public: void __thiscall  std::basic_ostringstream<char,struct  std::char_traits<char>,class std::allocator<char>  >::`vbase destructor'(void)"  (__imp_??_D?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ)
1>C:\Users\Sina Miandashti\Desktop\Graphics\Debug\Graphics.exe :  fatal error LNK1120: 6 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped  ==========

link for my files :
http://musicbase.ir/Graphics.rar
or
http://x7.to/vz873y
any help?
post your code... noone will download your package...

if it is too long to post here, go paste it on pastebin or codepad and post the link to the pad, then...
Last edited on
why?

here is my code :

1
2
3
4
5
6
7
8
9
10
11
12
#include "graphics.h"

using namespace graphics;

int main(int argc, char **argv)
{
	Screen scr(320, 240, 32, "Graphics Test", NO_FULLSCREEN, AUTOUPDATE);
	scr.rectangle(10, 10, 100, 100, BLACK, YELLOW);
	//scr.sleep();
	system("pause");
	return 0;
}



but im sure its not code related
Hi


U have not VS2008SP1ENUX1512962 installed on your computer
try to intall this is then rebuild.


I build your code on my computer is builds successfully.


Regards,
RAM
Last edited on
why?

what is that?

im using visual studio 2010 right now
Topic archived. No new replies allowed.