Is there any way to compile only 1 cpp file in Visual Studio 2003? The build menu only allows you to build the whole project, but I want to compile only 1 source file. I could do it in VC6, but they removed the option, apparently. Do I have to use the command line to do this? Thanks for any help. tentons http://www.griminventions.com
tentons
Posts
-
Compiling a single cpp file -
STL map with Boost shared_ptr (attempt 2)(Sorry for the spam, but here's a proper version without the <> getting eaten.) I'm trying to store boost::shared_ptrs in a std::map with a const std::string as the key. The trouble arises when I need to find a value. Using find() yields an iterator, but VC2003 doesn't like it: error C2440: 'initializing' : cannot convert from 'std::allocator<_Ty>::value_type' to 'boost::shared_ptr' with [ _Ty=std::pair> ] and [ T=Sprite ] And here's the bit of code that causes this reaction: map >::iterator frameSet = mysprite.find("animationName"); What I had hoped was that frameSet would be an iterator that I could dereference to call member functions on the Sprite object. But, alas. Anyone have any suggestions? :wtf: tentons
-
STL map with Boost shared_ptrI'm trying to store boost::shared_ptrs in a std::map with a const std::string as the key. The trouble arises when I need to find a value. Using find() yields an iterator, but VC2003 doesn't like it: error C2440: 'initializing' : cannot convert from 'std::allocator<_Ty>::value_type' to 'boost::shared_ptr' with [ _Ty=std::pair> ] and [ T=Sprite ] And here's the bit of code that causes this reaction: map >::iterator frameSet = mysprite.find("animationName"); What I had hoped was that frameSet would be an iterator that I could dereference to call member functions on the Sprite object. But, alas. Anyone have any suggestions? :wtf: tentons