Hi,
I had the particles example working in Cuda 3.2, with VS2010 environment, compiling with Platform Toolset v90. All 64 Bit. It took a while to get to compile but eventually it worked.
Now I have a new computer, new graphics card C2070 External Image , and Cuda 4.0 RC 2 and can not get the particles example in the 4.0 SDK to compile.
I am installing everyting cleanly on a new computer.
I open the C\Common\cutil_vs2010 project and compile in release 64 bit - appears to work
I open the particles project.
I set the Platform Toolset to v90
I set the Project->Build Customization to CUDA 4.0
I set the Project->Properties->Cuda C/C+±>Host->Runtime Library to Multi-Threaded (/MT) - this stops addtional linking errors
I compile and get the following linking errors. Any ideas?
1>------ Build started: Project: particles, Configuration: Release x64 ------
1> Skipping CUDA source file particles_kernel.cu (excluded from build).
1>LINK : warning LNK4075: ignoring ‘/INCREMENTAL’ due to ‘/LTCG’ specification
1>param.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) class std::basic_ostream<char,struct std::char_traits > & __cdecl std::operator<<<char,struct std::char_traits,class std::allocator >(class std::basic_ostream<char,struct std::char_traits > &,class std::basic_string<char,struct std::char_traits,class std::allocator > const &)” (_imp??$?6DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z)
1>param.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) struct std::_Smanip<__int64> __cdecl std::setprecision(__int64)” (_imp?setprecision@std@@YA?AU?$_Smanip@_J@1@_J@Z)
1>param.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) class std::basic_istream<char,struct std::char_traits > & __cdecl std::operator>><char,struct std::char_traits,class std::allocator >(class std::basic_istream<char,struct std::char_traits > &,class std::basic_string<char,struct std::char_traits,class std::allocator > &)” (_imp??$?5DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z)
1>param.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits,class std::allocator > __cdecl std::basic_ostringstream<char,struct std::char_traits,class std::allocator >::str(void)const " (_imp?str@?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ)
1>param.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl std::basic_ostringstream<char,struct std::char_traits,class std::allocator >::basic_ostringstream<char,struct std::char_traits,class std::allocator >(int)” (_imp??0?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@H@Z)
1>param.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: class std::basic_ostream<char,struct std::char_traits > & __cdecl std::basic_ostream<char,struct std::char_traits >::operator<<(class std::ios_base & (__cdecl*)(class std::ios_base &))” (_imp??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z)
1>param.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: void __cdecl std::basic_ostringstream<char,struct std::char_traits,class std::allocator >::`vbase destructor’(void)” (_imp??_D?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ)
1>param.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: int __cdecl std::ios_base::setf(int,int)” (_imp?setf@ios_base@std@@QEAAHHH@Z)
1>rendercheck_gl.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) class std::basic_string<char,struct std::char_traits,class std::allocator > __cdecl std::operator+<char,struct std::char_traits,class std::allocator >(class std::basic_string<char,struct std::char_traits,class std::allocator > const &,class std::basic_string<char,struct std::char_traits,class std::allocator > const &)” (_imp??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@AEBV10@0@Z)
1>rendercheck_gl.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) class std::basic_string<char,struct std::char_traits,class std::allocator > __cdecl std::operator+<char,struct std::char_traits,class std::allocator >(class std::basic_string<char,struct std::char_traits,class std::allocator > const &,char const *)” (_imp??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@AEBV10@PEBD@Z)
1>…/…/bin/win64/Release//particles.exe : fatal error LNK1120: 10 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
With the std::allocator, std::basic_string, etc. it looks like a standard libary is missing.
Any ideas?
Thank you in advance.
Related question: Can you compile 4.0 RC 2 with Platform Toolset V100 or Windows7.1SDK?
LasCondes