Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: asyikarea51 on August 14, 2009, 08:53:29 am
-
3>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xutility(2764) : error C2039: '_Swap_adl' : is not a member of 'std'
3> C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xutility(3696) : see reference to function template instantiation '_BidIt2 std::_Move_backward_opt<_BidIt1,_BidIt2,std::_Iter_random_helper<std::random_access_iterator_tag,std::random_access_iterator_tag>::_Iter_random_cat>(_BidIt1,_BidIt1,_BidIt2,_InOutItCat,std::_Swap_move_tag,std::_Range_checked_iterator_tag)' being compiled
3> with
3> [
3> _BidIt2=std::basic_string<char,std::char_traits<char>,std::allocator<char>> *,
3> _BidIt1=std::basic_string<char,std::char_traits<char>,std::allocator<char>> *,
3> _InOutItCat=std::_Iter_random_helper<std::random_access_iterator_tag,std::random_access_iterator_tag>::_Iter_random_cat
3> ]
3> C:\Program Files\Microsoft Visual Studio 9.0\VC\include\vector(1244) : see reference to function template instantiation '_BidIt2 stdext::_Unchecked_move_backward<std::basic_string<_Elem,_Traits,_Ax>*,std::basic_string<_Elem,_Traits,_Ax>*>(_BidIt1,_BidIt1,_BidIt2)' being compiled
3> with
3> [
3> _BidIt2=std::basic_string<char,std::char_traits<char>,std::allocator<char>> *,
3> _Elem=char,
3> _Traits=std::char_traits<char>,
3> _Ax=std::allocator<char>,
3> _BidIt1=std::basic_string<char,std::char_traits<char>,std::allocator<char>> *
3> ]
3> C:\Program Files\Microsoft Visual Studio 9.0\VC\include\vector(1158) : while compiling class template member function 'void std::vector<_Ty,_Ax>::_Insert_n(std::_Vector_const_iterator<_Ty,_Alloc>,unsigned int,const _Ty &)'
3> with
3> [
3> _Ty=std::string,
3> _Ax=SCP_vm_allocator<std::string>,
3> _Alloc=SCP_vm_allocator<std::string>
3> ]
3> ../../code\globalincs/vmallocator.h(88) : see reference to class template instantiation 'std::vector<_Ty,_Ax>' being compiled
3> with
3> [
3> _Ty=std::string,
3> _Ax=SCP_vm_allocator<std::string>
3> ]
3> ../../code\camera/camera.h(127) : see reference to class template instantiation 'SCP_vector<T>' being compiled
3> with
3> [
3> T=std::string
3> ]
3>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xutility(2764) : error C3861: '_Swap_adl': identifier not found
This using VC2008 to compile.
There must be a lot of new code going into SVN these days considering that a lot comes up everytime I try to compile it...
-
Most of us are using VS2008 - have you done anything unusual?
-
Not that I know of. I'm using VS2008 for school atm so I can't be doing anything funny in the first place, and the code I write pales in comparison to FSO.
I can try redownloading the whole source again from SVN but I'd feel bad wasting bandwidth if a fresh copy fails to compile...
-
SVN will keep it in sync for you.
It's just that this is a weird error... it's almost like two versions of the STL have been mixed
-
*Bangs head on wall because he's left clueless*
I would've moved to codeblocks and use it only to compile FSO executables if it wasn't for me not knowing how to set up the compiler (or even the headers/includes and all those other .cpp files that are referenced everywhere in the code)...
If I said that the install of VS2008 on this comp wasn't done by me and couldn't even compile ANYTHING at first because all the important files were missing, would that mean anything to you? It only worked after I went about installing some files off the MS website.
Reinstalling VS isn't an option because then I'd have to waste time reformatting the whole computer and stranding myself at school for several hours...
-
Sounds like you need to (re)install the Windows SDK that comes with VS2008.
-
I tried getting this (http://www.microsoft.com/downloads/details.aspx?FamilyId=F26B1AA4-741A-433A-9BE5-FA919850BDBF&displaylang=en) and installed and uninstalled it several times but no luck.
Is there anything else I can try (apart from using a nightly), or am I out of options...
-
Unfortunately you can't just download the SDK that came with Visual Studio. The one it comes with is the Vista one I believe, and it also installs some additional non-free for download headers and libs like the ATL and MFC stuff. If you have the VS installation media you can probably repair/reconfigure/etc without having to uninstall what you have. That's the only way I would know how to fix your problem, and no guarantees there.
-
Ack. Well there goes compiling then... albeit for quite a while... unless anyone here knows how to set code blocks up properly to read the libraries/headers listed everywhere in the code?
(upcoming busy weeks so pardon the late reply)
-
There is a code blocks project already, but I think it was set up for Linux compiling based on the #defines. Would be nice to have one that worked with Windows, I agree. You could try VS2008 Express, it comes with everything you need to compile FSO but not FRED. Really the Windows Server 2008 SDK should have installed basically the same things, so you should be able to compile with your 2008 Pro install. Not sure why it would still not work at all.
-
Does this look familiar: http://blogs.msdn.com/windowssdk/archive/2009/08/07/installing-windows-sdk-for-server-2008-v6-1-after-vs2008-sp1-causes-conflicts-with-security-update-kb971092.aspx (http://blogs.msdn.com/windowssdk/archive/2009/08/07/installing-windows-sdk-for-server-2008-v6-1-after-vs2008-sp1-causes-conflicts-with-security-update-kb971092.aspx)
It seems to be the same error that asyikarea51 is getting - let us know if it helps!
-
PBFFFFTTTTT >_< and I probably tried that repair thing already as listed in the "Caution" sentence... :shaking:
Busy atm but I'll take a look into it given some time available.
edit: grammar slip-up XD
-
:bump:
I spent the last 13 hours trying to fix this but got nowhere. :wtf:
To cut a long story short I half-followed the various instructions on the intarwebz and deleted a lot of things but just when everything's been wiped and when I FINALLY have VS installation media...
BANG CRASH install constantly failes on .NET Framework 3.5 :mad:
Then it goes on to say something like 3.0 missing in Vista so I run off to download the file only to have it complain that 3.0 should be installed/uninstalled by turning this "feature" on and off (which I tried to no effect).
I'm back with the factory default/school disk image... and no congrats to me because now I'm back to a VS2008 "kindly" provided with no compiler tools whatsoever (it won't even LOAD the FSO project file). And I had to reinstall all the drivers and most everything just to fill up the registry... even now, some lost things still haven't been installed yet.
Well I guess I'm back to using a nightly or something else until I can afford to get my main computer running again. I would install the Windows SDK to get a compiler running on this thing at least, but then I'll be back to square one... :sigh:
Probably some of it was my fault, I know, messing around with the computer as usual but I have half a heart to knock some sense into whoever provided the install media for us students...