Compiling with Code::Blocks, part deux
-
- Elite
- Posts: 8014
- Joined: Fri Sep 05, 2003 4:03 am
- Location: Montreal
- Contact:
Re: Compiling with Code::Blocks, part deux
Depends on taste. To me any reddening of the screen is a bug, except in flight simulators if you push the stick and you get 2 or 3 G's of inverted gravity, and your eyes get blood-shot. There it makes sense. In a space-ship, reddening from getting shot doesn't make sense.
But if you're speaking of whether it was intentional, I think the intended behavior was the way it worked before, where you get a momentary reddening; but what we observe now is a "sticky" reddening.
But if you're speaking of whether it was intentional, I think the intended behavior was the way it worked before, where you get a momentary reddening; but what we observe now is a "sticky" reddening.
Latest version of Cinemut Opaque
Latest version of LaGrande noodleworks (scroll down).
An evolving La Grande How-To...
The non-working, but latest, CineMut test_bike
PU (Privateer: Parallel Universe's Home). WC or Privateer Drayman for you?
WCpedia --The Wing Commander Encyclopedia-- From Angel Deveraux through Belisarius to Zachary Banfeld...
WC Nexus forum, the Moonbase Tycho of WC fans.
Latest version of LaGrande noodleworks (scroll down).
An evolving La Grande How-To...
The non-working, but latest, CineMut test_bike
PU (Privateer: Parallel Universe's Home). WC or Privateer Drayman for you?
WCpedia --The Wing Commander Encyclopedia-- From Angel Deveraux through Belisarius to Zachary Banfeld...
WC Nexus forum, the Moonbase Tycho of WC fans.
-
- Confed Special Operative
- Posts: 381
- Joined: Thu Jan 31, 2008 3:25 am
- Location: hiding in a dark corner
Re: Compiling with Code::Blocks, part deux
I was joking of course. I know it's a bug. At least, it shouldn't stay on after you dock and get a full repair. And presumably medical treatment.
make me a sandwich
make: *** No rule to make target 'me'. Stop.
make: *** No rule to make target 'me'. Stop.
-
- Elite
- Posts: 8014
- Joined: Fri Sep 05, 2003 4:03 am
- Location: Montreal
- Contact:
Re: Compiling with Code::Blocks, part deux
Heheh, I thought you might be joking, but wasn't sure.
Full bug report:
http://vegastrike.sourceforge.net/forum ... 91#p116791
Full bug report:
http://vegastrike.sourceforge.net/forum ... 91#p116791
Latest version of Cinemut Opaque
Latest version of LaGrande noodleworks (scroll down).
An evolving La Grande How-To...
The non-working, but latest, CineMut test_bike
PU (Privateer: Parallel Universe's Home). WC or Privateer Drayman for you?
WCpedia --The Wing Commander Encyclopedia-- From Angel Deveraux through Belisarius to Zachary Banfeld...
WC Nexus forum, the Moonbase Tycho of WC fans.
Latest version of LaGrande noodleworks (scroll down).
An evolving La Grande How-To...
The non-working, but latest, CineMut test_bike
PU (Privateer: Parallel Universe's Home). WC or Privateer Drayman for you?
WCpedia --The Wing Commander Encyclopedia-- From Angel Deveraux through Belisarius to Zachary Banfeld...
WC Nexus forum, the Moonbase Tycho of WC fans.
-
- Mercenary
- Posts: 115
- Joined: Tue Jun 10, 2008 12:52 am
Re: Compiling with Code::Blocks, part deux
I tried compiling this version, which you mentioned in the other thread that you got working, with MSVC++ Express 2010, to see how it would fare, and I get four missing files that I do not see in svn:shenle wrote:My last successful compile on Windows was of revision 12763 on 4/18/2010
(OTOH on Linux it compiles - last successful compile today - but the binary won't run correctly)
Code: Select all
fatal error C1083: Cannot open source file: '..\vegastrike\src\cmd\unit_bsp.cpp': No such file or directory
fatal error C1083: Cannot open source file: '..\vegastrike\src\gfx\bounding_box.cpp': No such file or directory
fatal error C1083: Cannot open source file: '..\vegastrike\src\gfx\bsp.cpp': No such file or directory
fatal error C1083: Cannot open source file: '..\vegastrike\src\gui\general.cpp': No such file or directory
Did you encounter this error, and if so, how did you fix it?
-
- Mercenary
- Posts: 115
- Joined: Tue Jun 10, 2008 12:52 am
Re: Compiling with Code::Blocks, part deux
Didn't see this post, thanks.shenle wrote:Update 1: because of changes introduced in r12731, for the project to finish linking you must remove the following files (in the left panel):
src/cmd/unit_bsp.cpp
src/gfx/bsp.cpp
src/gfx/bounding_box.cpp
Otherwise the linker will complain about them missing.
Attached find the project vegastrike.cbp that compiles revision 12735 (put it in folder vega-vc7).
-
- Confed Special Operative
- Posts: 381
- Joined: Thu Jan 31, 2008 3:25 am
- Location: hiding in a dark corner
Re: Compiling with Code::Blocks, part deux
Reviving this, since it looks like cmake on Windows is a no-go so far.
Redoing the code::blocks project for now. Since so many files have changed/deleted/added, I just did a recursive add of all the new files under src. trying to compile I get:
Redoing the code::blocks project for now. Since so many files have changed/deleted/added, I just did a recursive add of all the new files under src. trying to compile I get:
Code: Select all
SharedPool.cpp
d:\dls\vegastrike\svn\vegastrike\src\SharedPool.cpp(5) : error C2086: 'SharedPool<T,RefcounterTraits>::PoolType *SharedPool<T,RefcounterTraits>::ms_singleton' : redefinition
d:\dls\vegastrike\svn\vegastrike\src\SharedPool.h(21) : see declaration of 'SharedPool<T,RefcounterTraits>::ms_singleton'
d:\dls\vegastrike\svn\vegastrike\src\SharedPool.cpp(18) : error C2995: 'SharedPool<T,RefcounterTraits>::SharedPool(void)' : template function has already been defined
d:\dls\vegastrike\svn\vegastrike\src\SharedPool.h(37) : see declaration of 'SharedPool<T,RefcounterTraits>::__ctor'
d:\dls\vegastrike\svn\vegastrike\src\SharedPool.cpp(24) : error C2995: 'SharedPool<T,RefcounterTraits>::~SharedPool(void)' : template function has already been defined
d:\dls\vegastrike\svn\vegastrike\src\SharedPool.h(38) : see declaration of 'SharedPool<T,RefcounterTraits>::~SharedPool'
d:\dls\vegastrike\svn\vegastrike\src\SharedPool.cpp(27) : error C2011: 'SharedPoolInitializer' : 'class' type redefinition
d:\dls\vegastrike\svn\vegastrike\src\SharedPool.cpp(27) : see declaration of 'SharedPoolInitializer'
d:\dls\vegastrike\svn\vegastrike\src\SharedPool.cpp(31) : error C2086: 'SharedPoolInitializer sharedPoolInitializer' : redefinition
d:\dls\vegastrike\svn\vegastrike\src\SharedPool.cpp(31) : see declaration of 'sharedPoolInitializer'
Process terminated with status 2 (0 minutes, 0 seconds)
5 errors, 0 warnings
make me a sandwich
make: *** No rule to make target 'me'. Stop.
make: *** No rule to make target 'me'. Stop.
-
- Elite
- Posts: 7243
- Joined: Mon Apr 18, 2005 2:40 pm
- Location: LS87, Buenos Aires, República Argentina
Re: Compiling with Code::Blocks, part deux
Don't add SharedPool.cpp to the project, it ought to be named hpp instead, since it's included from SharedPool.h.
Since SharedPool is a template class, any user needs the implementation, but since it's nice to have implementation apart from interface it was divided in .h / .cpp. But that .cpp needs not be compiled explicitly, it's compiled implicitly every time the .h is included.
Since SharedPool is a template class, any user needs the implementation, but since it's nice to have implementation apart from interface it was divided in .h / .cpp. But that .cpp needs not be compiled explicitly, it's compiled implicitly every time the .h is included.
-
- Confed Special Operative
- Posts: 381
- Joined: Thu Jan 31, 2008 3:25 am
- Location: hiding in a dark corner
Re: Compiling with Code::Blocks, part deux
Lol I was wondering...
Grrr.
I should probably replace the default ffmpeg in vega-vc7 with something else.
(edit) I get the same error if I substitute the latest nightly build of ffmpeg.
Also, there's this:
Grrr.
Code: Select all
vega-vc7\ffmpeg\include\ffmpeg\libavutil\common.h(154) : error C3861: 'UINT64_C': identifier not found, even with argument-dependent lookup
Process terminated with status 2 (0 minutes, 28 seconds)
1 errors, 0 warnings
(edit) I get the same error if I substitute the latest nightly build of ffmpeg.
Also, there's this:
Code: Select all
pythonai.cpp
vegastrike\src\cmd\ai\pythonai.h(6) : error C2990: 'PythonAI' : non-template class has already been defined as a template class
..\vegastrike\src\python\python_class.h(266) : see declaration of 'PythonAI'
..\vegastrike\src\cmd\ai\pythonai.cpp(19) : error C2955: 'PythonAI' : use of class template requires template argument list
..\vegastrike\src\python\python_class.h(266) : see declaration of 'PythonAI'
..\vegastrike\src\cmd\ai\pythonai.cpp(19) : error C2955: 'PythonAI' : use of class template requires template argument list
..\vegastrike\src\python\python_class.h(266) : see declaration of 'PythonAI'
..\vegastrike\src\cmd\ai\pythonai.cpp(19) : error C2955: 'PythonAI' : use of class template requires template argument list
..\vegastrike\src\python\python_class.h(266) : see declaration of 'PythonAI'
..\vegastrike\src\cmd\ai\pythonai.cpp(19) : error C2039: 'last_ai' : is not a member of 'PythonAI'
..\vegastrike\src\python\python_class.h(266) : see declaration of 'PythonAI'
..\vegastrike\src\cmd\ai\pythonai.cpp(20) : error C2955: 'PythonAI' : use of class template requires template argument list
..\vegastrike\src\python\python_class.h(266) : see declaration of 'PythonAI'
..\vegastrike\src\cmd\ai\pythonai.cpp(20) : error C2955: 'PythonAI' : use of class template requires template argument list
..\vegastrike\src\python\python_class.h(266) : see declaration of 'PythonAI'
..\vegastrike\src\cmd\ai\pythonai.cpp(20) : error C2511: 'PythonAI::PythonAI(PyObject *,float,float)' : overloaded member function not found in 'PythonAI'
..\vegastrike\src\python\python_class.h(266) : see declaration of 'PythonAI'
..\vegastrike\src\cmd\ai\pythonai.cpp(64) : fatal error C1004: unexpected end of file found
make me a sandwich
make: *** No rule to make target 'me'. Stop.
make: *** No rule to make target 'me'. Stop.
-
- Elite
- Posts: 7243
- Joined: Mon Apr 18, 2005 2:40 pm
- Location: LS87, Buenos Aires, República Argentina
Re: Compiling with Code::Blocks, part deux
Take a look at this:
That usually is a sign of a major snafu somewhere, like a missing closing brace or something like that.
You should ignore the rest, until you fix that, because the other messages are probably bogus (just the compiler desperately trying to make sense of things).
About the UINT64_C... no idea whatsoever. Ffmpeg usually just works.
Code: Select all
..\vegastrike\src\cmd\ai\pythonai.cpp(64) : fatal error C1004: unexpected end of file found
You should ignore the rest, until you fix that, because the other messages are probably bogus (just the compiler desperately trying to make sense of things).
About the UINT64_C... no idea whatsoever. Ffmpeg usually just works.
-
- Confed Special Operative
- Posts: 381
- Joined: Thu Jan 31, 2008 3:25 am
- Location: hiding in a dark corner
Re: Compiling with Code::Blocks, part deux
BTW, here's the output that I get when I try to compile with VS 2010 express:
Code: Select all
1>d:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1> building.cpp
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1> collide.cpp
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1> cont_terrain.cpp
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1> planet.cpp
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2/Stdafx.h(10): warning C4068: unknown pragma
1> unit_collide.cpp
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1> unit_csv.cpp
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1> unit_factory.cpp
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2/Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>..\vegastrike\src\cmd\unit_csv.cpp(638): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(639): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(640): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(649): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1010): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1011): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1012): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1013): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1018): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1019): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1020): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1023): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1024): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1025): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1026): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1027): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1028): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1029): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1030): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1031): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1032): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1033): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1183): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1184): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1188): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1193): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1194): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1196): error C2668: 'stoi' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(197): could be 'int stoi(const std::string &,int)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(537): or 'int std::stoi(const std::string &,size_t *,int)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1203): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1204): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1207): error C2668: 'stoi' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(197): could be 'int stoi(const std::string &,int)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(537): or 'int std::stoi(const std::string &,size_t *,int)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1208): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1209): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1210): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1216): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1217): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1221): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1222): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1226): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1227): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1231): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1232): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1233): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1236): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1236): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1239): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1239): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1240): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1241): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1253): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1264): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1265): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1266): error C2668: 'stoi' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(197): could be 'int stoi(const std::string &,int)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(537): or 'int std::stoi(const std::string &,size_t *,int)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1267): error C2668: 'stoi' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(197): could be 'int stoi(const std::string &,int)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(537): or 'int std::stoi(const std::string &,size_t *,int)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1269): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1275): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1276): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1277): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1278): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1279): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1280): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1281): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1282): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1283): error C2668: 'stoi' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(197): could be 'int stoi(const std::string &,int)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(537): or 'int std::stoi(const std::string &,size_t *,int)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1284): error C2668: 'stoi' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(197): could be 'int stoi(const std::string &,int)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(537): or 'int std::stoi(const std::string &,size_t *,int)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1> unit_functions.cpp
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1> unit_xml.cpp
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1> CSopcodecollider.cpp
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1> OPC_AABBCollider.cpp
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1> OPC_AABBTree.cpp
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1> OPC_BaseModel.cpp
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1> OPC_BoxPruning.cpp
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1> OPC_Collider.cpp
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1> OPC_Common.cpp
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1> OPC_HybridModel.cpp
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1> OPC_LSSCollider.cpp
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1> OPC_MeshInterface.cpp
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1> OPC_Model.cpp
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1> OPC_OBBCollider.cpp
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1> OPC_OptimizedTree.cpp
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1> OPC_Picking.cpp
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1> OPC_PlanesCollider.cpp
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1> OPC_RayCollider.cpp
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1> OPC_SphereCollider.cpp
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1> OPC_SweepAndPrune.cpp
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1> OPC_TreeBuilders.cpp
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1> OPC_TreeCollider.cpp
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1> OPC_VolumeCollider.cpp
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1> opbox.cpp
1> opmatrix3.cpp
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1> opvector3.cpp
1> IceAABB.cpp
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1> IceContainer.cpp
1> IceHPoint.cpp
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1> IceIndexedTriangle.cpp
1> IceMatrix3x3.cpp
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1> IceMatrix4x4.cpp
1> IceOBB.cpp
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1> IcePlane.cpp
1> IcePoint.cpp
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1> IceRandom.cpp
1> IceRay.cpp
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1> IceRevisitedRadix.cpp
1> IceSegment.cpp
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1> IceTriangle.cpp
1> IceUtils.cpp
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1> al_init.cpp
1> env_map_gent.cpp
1>..\vegastrike\src\gfx\env_map_gent.cpp(273): error C3861: 'snprintf': identifier not found
1> halo_system.cpp
1>D:\dls\vegastrike\svn\vega-vc8\include\dsound.h(420): warning C4005: 'INTERFACE' : macro redefinition
1> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\commdlg.h(948) : see previous definition of 'INTERFACE'
1>..\vegastrike\src\aldrv\al_init.cpp(160): error C2664: 'alcOpenDevice' : cannot convert parameter 1 from 'const char [14]' to 'ALCubyte *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1> sprite.cpp
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\opcodetypes.h(201): error C2371: 'wint_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(163): error C2440: 'initializing' : cannot convert from 'int' to 'VSSprite *'
1> Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(247) : see reference to function template instantiation 'std::_Pair_base<_Ty1,_Ty2>::_Pair_base<_Ty,int>(_Other1 &&,_Other2 &&)' being compiled
1> with
1> [
1> _Ty1=bool,
1> _Ty2=VSSprite *,
1> _Ty=bool,
1> _Other1=bool,
1> _Other2=int
1> ]
1> ..\vegastrike\src\gfx\sprite.cpp(62) : see reference to function template instantiation 'std::pair<_Ty1,_Ty2>::pair<bool,int>(_Other1 &&,_Other2 &&)' being compiled
1> with
1> [
1> _Ty1=bool,
1> _Ty2=VSSprite *,
1> _Other1=bool,
1> _Other2=int
1> ]
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(163): error C2439: 'std::_Pair_base<_Ty1,_Ty2>::second' : member could not be initialized
1> with
1> [
1> _Ty1=bool,
1> _Ty2=VSSprite *
1> ]
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(167) : see declaration of 'std::_Pair_base<_Ty1,_Ty2>::second'
1> with
1> [
1> _Ty1=bool,
1> _Ty2=VSSprite *
1> ]
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
make me a sandwich
make: *** No rule to make target 'me'. Stop.
make: *** No rule to make target 'me'. Stop.
-
- Elite
- Posts: 7243
- Joined: Mon Apr 18, 2005 2:40 pm
- Location: LS87, Buenos Aires, República Argentina
Re: Compiling with Code::Blocks, part deux
If you take a look in opcodetypes.h, it checks for a list of #defines that several runtimes use to signal their definition of wint_t. You'd have to add whatever define is used by crtdefs.h in VS2010
-
- Mercenary
- Posts: 115
- Joined: Tue Jun 10, 2008 12:52 am
Re: Compiling with Code::Blocks, part deux
I have to be honest, the game (usually) compiles fine under Visual C++ Express with minimal effort. Maybe we'd be better off tweaking the project files so they're compatible with VC++ 2010 instead of trying to get all of this to work with Code::Blocks. Then the efforts can get back to code development, where we are understaffed.
-
- Confed Special Operative
- Posts: 381
- Joined: Thu Jan 31, 2008 3:25 am
- Location: hiding in a dark corner
Re: Compiling with Code::Blocks, part deux
Changed in opcodetyopes.h:klauss wrote:If you take a look in opcodetypes.h, it checks for a list of #defines that several runtimes use to signal their definition of wint_t. You'd have to add whatever define is used by crtdefs.h in VS2010
Code: Select all
#ifndef wint_t
typedef wchar_t wint_t;
#endif
Code: Select all
#ifndef wint_t
typedef unsigned short wint_t;
#endif
Code: Select all
galaxy_gen.cpp
1> unit_csv.cpp
1>..\vegastrike\src\galaxy_gen.cpp(1295): error C3861: 'snprintf': identifier not found
Code: Select all
vegastrike\src\aldrv\al_init.cpp(160): error C2664: 'alcOpenDevice' : cannot convert parameter 1 from 'const char [14]' to 'ALCubyte *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Code: Select all
vegastrike\src\cmd\unit_csv.cpp(638): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
and
Code: Select all
vegastrike\src\gfx\vsimage.cpp(325): error C3861: 'png_set_expand_gray_1_2_4_to_8': identifier not found
Code: Select all
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(163): error C2440: 'initializing' : cannot convert from 'int' to 'VSSprite *'
1> Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(247) : see reference to function template instantiation 'std::_Pair_base<_Ty1,_Ty2>::_Pair_base<_Ty,int>(_Other1 &&,_Other2 &&)' being compiled
1> with
1> [
1> _Ty1=bool,
1> _Ty2=VSSprite *,
1> _Ty=bool,
1> _Other1=bool,
1> _Other2=int
1> ]
1> ..\vegastrike\src\gfx\sprite.cpp(62) : see reference to function template instantiation 'std::pair<_Ty1,_Ty2>::pair<bool,int>(_Other1 &&,_Other2 &&)' being compiled
1> with
1> [
1> _Ty1=bool,
1> _Ty2=VSSprite *,
1> _Other1=bool,
1> _Other2=int
1> ]
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(163): error C2439: 'std::_Pair_base<_Ty1,_Ty2>::second' : member could not be initialized
1> with
1> [
1> _Ty1=bool,
1> _Ty2=VSSprite *
1> ]
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(167) : see declaration of 'std::_Pair_base<_Ty1,_Ty2>::second'
1> with
1> [
1> _Ty1=bool,
1> _Ty2=VSSprite *
1> ]
You do not have the required permissions to view the files attached to this post.
make me a sandwich
make: *** No rule to make target 'me'. Stop.
make: *** No rule to make target 'me'. Stop.
-
- Elite
- Posts: 7243
- Joined: Mon Apr 18, 2005 2:40 pm
- Location: LS87, Buenos Aires, República Argentina
Re: Compiling with Code::Blocks, part deux
Both OpenAL and libpng's error are related to old versions of the libraries.
Get a hold of more recent versions please, note that there should be rather recent versions in vega-vc7.
About snprintf, if Code::Blocks doesn't have the function it's garbage - so I guess it must have it, only tucked away in some include VS is not including perhaps? Where is snprintf defined? Find that out and add the proper include where it's needed.
Get a hold of more recent versions please, note that there should be rather recent versions in vega-vc7.
About snprintf, if Code::Blocks doesn't have the function it's garbage - so I guess it must have it, only tucked away in some include VS is not including perhaps? Where is snprintf defined? Find that out and add the proper include where it's needed.
-
- Confed Special Operative
- Posts: 381
- Joined: Thu Jan 31, 2008 3:25 am
- Location: hiding in a dark corner
Re: Compiling with Code::Blocks, part deux
This is not Code::Blocks, but VC++ Express 2010 (C::B is just a GUI anyway)klauss wrote: About snprintf, if Code::Blocks doesn't have the function it's garbage - so I guess it must have it, only tucked away in some include VS is not including perhaps? Where is snprintf defined? Find that out and add the proper include where it's needed.
It looks like in VC++ snprintf is _snprintf() after a quick web search.
Got rid of the snprintf error by adding this:
Code: Select all
#ifdef _WIN32
#define snprintf _snprintf
#endif
make me a sandwich
make: *** No rule to make target 'me'. Stop.
make: *** No rule to make target 'me'. Stop.
-
- Elite
- Posts: 7243
- Joined: Mon Apr 18, 2005 2:40 pm
- Location: LS87, Buenos Aires, República Argentina
Re: Compiling with Code::Blocks, part deux
Ok, but that will break other platforms.
You should wrap that between
You should wrap that between
Code: Select all
#if _MSC_VER >= something
...
#endif
-
- Confed Special Operative
- Posts: 381
- Joined: Thu Jan 31, 2008 3:25 am
- Location: hiding in a dark corner
Re: Compiling with Code::Blocks, part deux
OK I'll make thatklauss wrote:Ok, but that will break other platforms.
You should wrap that between
Code: Select all
#if _MSC_VER >= something ... #endif
Code: Select all
#if _MSC_VER >= 1300
#define snprintf _snprintf
#endif
OK, replaced png and OAL libraries.
Now this is what I get:
Code: Select all
1>------ Build started: Project: vegastrike, Configuration: Release Win32 ------
1> unit_csv.cpp
1> sprite.cpp
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2/Stdafx.h(10): warning C4068: unknown pragma
1>d:\dls\vegastrike\svn\vegastrike\src\cmd\collide2\Stdafx.h(10): warning C4068: unknown pragma
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>D:\dls\vegastrike\svn\vegastrike\src\cmd/collide2/Stdafx.h(10): warning C4068: unknown pragma
1>..\vegastrike\src\cmd\unit_csv.cpp(638): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(639): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(640): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(649): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1010): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1011): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1012): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1013): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1018): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1019): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1020): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1023): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1024): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1025): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1026): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1027): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1028): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1029): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1030): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1031): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1032): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1033): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1183): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1184): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1188): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1193): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1194): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1196): error C2668: 'stoi' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(197): could be 'int stoi(const std::string &,int)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(537): or 'int std::stoi(const std::string &,size_t *,int)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1203): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1204): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1207): error C2668: 'stoi' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(197): could be 'int stoi(const std::string &,int)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(537): or 'int std::stoi(const std::string &,size_t *,int)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1208): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1209): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1210): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1216): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1217): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1221): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1222): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1226): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1227): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1231): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1232): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1233): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1236): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1236): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1239): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1239): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1240): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1241): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1253): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1264): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1265): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1266): error C2668: 'stoi' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(197): could be 'int stoi(const std::string &,int)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(537): or 'int std::stoi(const std::string &,size_t *,int)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1267): error C2668: 'stoi' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(197): could be 'int stoi(const std::string &,int)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(537): or 'int std::stoi(const std::string &,size_t *,int)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1269): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1275): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1276): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1277): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1278): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1279): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1280): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1281): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1282): error C2668: 'stof' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(190): could be 'double stof(const std::string &,double)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(622): or 'float std::stof(const std::string &,size_t *)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1283): error C2668: 'stoi' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(197): could be 'int stoi(const std::string &,int)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(537): or 'int std::stoi(const std::string &,size_t *,int)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>..\vegastrike\src\cmd\unit_csv.cpp(1284): error C2668: 'stoi' : ambiguous call to overloaded function
1> ..\vegastrike\src\cmd\unit_csv.cpp(197): could be 'int stoi(const std::string &,int)'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(537): or 'int std::stoi(const std::string &,size_t *,int)' [found using argument-dependent lookup]
1> while trying to match the argument list '(const std::string)'
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(163): error C2440: 'initializing' : cannot convert from 'int' to 'VSSprite *'
1> Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(247) : see reference to function template instantiation 'std::_Pair_base<_Ty1,_Ty2>::_Pair_base<_Ty,int>(_Other1 &&,_Other2 &&)' being compiled
1> with
1> [
1> _Ty1=bool,
1> _Ty2=VSSprite *,
1> _Ty=bool,
1> _Other1=bool,
1> _Other2=int
1> ]
1> ..\vegastrike\src\gfx\sprite.cpp(62) : see reference to function template instantiation 'std::pair<_Ty1,_Ty2>::pair<bool,int>(_Other1 &&,_Other2 &&)' being compiled
1> with
1> [
1> _Ty1=bool,
1> _Ty2=VSSprite *,
1> _Other1=bool,
1> _Other2=int
1> ]
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(163): error C2439: 'std::_Pair_base<_Ty1,_Ty2>::second' : member could not be initialized
1> with
1> [
1> _Ty1=bool,
1> _Ty2=VSSprite *
1> ]
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(167) : see declaration of 'std::_Pair_base<_Ty1,_Ty2>::second'
1> with
1> [
1> _Ty1=bool,
1> _Ty2=VSSprite *
1> ]
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Last edited by shenle on Thu Sep 16, 2010 8:38 pm, edited 3 times in total.
make me a sandwich
make: *** No rule to make target 'me'. Stop.
make: *** No rule to make target 'me'. Stop.
-
- Elite
- Posts: 7243
- Joined: Mon Apr 18, 2005 2:40 pm
- Location: LS87, Buenos Aires, República Argentina
Re: Compiling with Code::Blocks, part deux
I think if you change the calls to stof by ::stof it will work.
-
- Confed Special Operative
- Posts: 381
- Joined: Thu Jan 31, 2008 3:25 am
- Location: hiding in a dark corner
Re: Compiling with Code::Blocks, part deux
Damn that's a lot of changesklauss wrote:I think if you change the calls to stof by ::stof it will work.
make me a sandwich
make: *** No rule to make target 'me'. Stop.
make: *** No rule to make target 'me'. Stop.
-
- Confed Special Operative
- Posts: 381
- Joined: Thu Jan 31, 2008 3:25 am
- Location: hiding in a dark corner
Re: Compiling with Code::Blocks, part deux
OK, finally all I am left with is
(attached are the files I've modified so far)
Code: Select all
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(163): error C2440: 'initializing' : cannot convert from 'int' to 'VSSprite *'
1> Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(247) : see reference to function template instantiation 'std::_Pair_base<_Ty1,_Ty2>::_Pair_base<_Ty,int>(_Other1 &&,_Other2 &&)' being compiled
1> with
1> [
1> _Ty1=bool,
1> _Ty2=VSSprite *,
1> _Ty=bool,
1> _Other1=bool,
1> _Other2=int
1> ]
1> ..\vegastrike\src\gfx\sprite.cpp(62) : see reference to function template instantiation 'std::pair<_Ty1,_Ty2>::pair<bool,int>(_Other1 &&,_Other2 &&)' being compiled
1> with
1> [
1> _Ty1=bool,
1> _Ty2=VSSprite *,
1> _Other1=bool,
1> _Other2=int
1> ]
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(163): error C2439: 'std::_Pair_base<_Ty1,_Ty2>::second' : member could not be initialized
1> with
1> [
1> _Ty1=bool,
1> _Ty2=VSSprite *
1> ]
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(167) : see declaration of 'std::_Pair_base<_Ty1,_Ty2>::second'
1> with
1> [
1> _Ty1=bool,
1> _Ty2=VSSprite *
1> ]
You do not have the required permissions to view the files attached to this post.
make me a sandwich
make: *** No rule to make target 'me'. Stop.
make: *** No rule to make target 'me'. Stop.
-
- Elite
- Posts: 7243
- Joined: Mon Apr 18, 2005 2:40 pm
- Location: LS87, Buenos Aires, República Argentina
Re: Compiling with Code::Blocks, part deux
I bet that last one is a "0" used as null.
Replace it by NULL
BTW: better attach a patch, you can do "svn diff" (or the equivalent in tortoise, create patch).
Replace it by NULL
BTW: better attach a patch, you can do "svn diff" (or the equivalent in tortoise, create patch).
-
- Confed Special Operative
- Posts: 381
- Joined: Thu Jan 31, 2008 3:25 am
- Location: hiding in a dark corner
Re: Compiling with Code::Blocks, part deux
There ya go.
You do not have the required permissions to view the files attached to this post.
make me a sandwich
make: *** No rule to make target 'me'. Stop.
make: *** No rule to make target 'me'. Stop.
-
- Confed Special Operative
- Posts: 381
- Joined: Thu Jan 31, 2008 3:25 am
- Location: hiding in a dark corner
Re: Compiling with Code::Blocks, part deux
I did replace the 0 with null, I still getklauss wrote:I bet that last one is a "0" used as null.
Replace it by NULL
Code: Select all
1>------ Build started: Project: vegastrike, Configuration: Release Win32 ------
1> sprite.cpp
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(163): error C2440: 'initializing' : cannot convert from 'int' to 'VSSprite *'
1> Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(247) : see reference to function template instantiation 'std::_Pair_base<_Ty1,_Ty2>::_Pair_base<_Ty,int>(_Other1 &&,_Other2 &&)' being compiled
1> with
1> [
1> _Ty1=bool,
1> _Ty2=VSSprite *,
1> _Ty=bool,
1> _Other1=bool,
1> _Other2=int
1> ]
1> ..\vegastrike\src\gfx\sprite.cpp(62) : see reference to function template instantiation 'std::pair<_Ty1,_Ty2>::pair<bool,int>(_Other1 &&,_Other2 &&)' being compiled
1> with
1> [
1> _Ty1=bool,
1> _Ty2=VSSprite *,
1> _Other1=bool,
1> _Other2=int
1> ]
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(163): error C2439: 'std::_Pair_base<_Ty1,_Ty2>::second' : member could not be initialized
1> with
1> [
1> _Ty1=bool,
1> _Ty2=VSSprite *
1> ]
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(167) : see declaration of 'std::_Pair_base<_Ty1,_Ty2>::second'
1> with
1> [
1> _Ty1=bool,
1> _Ty2=VSSprite *
1> ]
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
make me a sandwich
make: *** No rule to make target 'me'. Stop.
make: *** No rule to make target 'me'. Stop.
-
- Elite
- Posts: 7243
- Joined: Mon Apr 18, 2005 2:40 pm
- Location: LS87, Buenos Aires, República Argentina
Re: Compiling with Code::Blocks, part deux
Should work...
-
- Confed Special Operative
- Posts: 381
- Joined: Thu Jan 31, 2008 3:25 am
- Location: hiding in a dark corner
Re: Compiling with Code::Blocks, part deux
Code: Select all
static std::pair< bool, VSSprite* >cacheLookup( const char *file )
{
std::string hashName = VSFileSystem::GetHashName( std::string( file ) );
VSSpriteCache::iterator it = sprite_cache.find( hashName );
if ( it != sprite_cache.end() )
return std::pair< bool, VSSprite* > ( true, it->second );
else
return std::pair< bool, VSSprite* > ( false, NULL );
}
Still getting the same error (NULL where 0 used to be)
make me a sandwich
make: *** No rule to make target 'me'. Stop.
make: *** No rule to make target 'me'. Stop.