Compiles with VC6. Is this still available?
-
Hello, I've downloaded an SDK an am able to get the code to compile with VC6 no problem but when I use Express Edition 2008/2005 I get all sorts of compiler/linker errors. The problem is I only have access to VC6 in work and would like to have a copy for myself. Is it still available? or is there a way to get the Express Editions to use the VC6 compiler? Searching for this hasn't turned up anything Also: Why would something compile with older versions and not newer ones? Thanks
-
Hello, I've downloaded an SDK an am able to get the code to compile with VC6 no problem but when I use Express Edition 2008/2005 I get all sorts of compiler/linker errors. The problem is I only have access to VC6 in work and would like to have a copy for myself. Is it still available? or is there a way to get the Express Editions to use the VC6 compiler? Searching for this hasn't turned up anything Also: Why would something compile with older versions and not newer ones? Thanks
Probably it is better to fix the source code. Could you post, please, some of the error messages?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke -
Probably it is better to fix the source code. Could you post, please, some of the error messages?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain ClarkeHi Thanks for the help. The project is set to compile to .dll. This is done with VC++ 9.0 Express Here's some errors:
1>LibraryExample.cpp 1>f:\copy of dmm\win32\include\gatantypes.h(403) : error C2906: 'Gatan::ScaleData' : explicit specialization requires 'template <>' 1>f:\copy of dmm\win32\include\gatantypes.h(404) : error C2906: 'Gatan::ScaleData' : explicit specialization requires 'template <>' 1>f:\copy of dmm\win32\include\gatantypes.h(405) : error C2906: 'Gatan::ScaleData' : explicit specialization requires 'template <>' 1>f:\copy of dmm\win32\include\gatantypes.h(407) : error C2906: 'Gatan::ScaleData' : explicit specialization requires 'template <>' 1>f:\copy of dmm\win32\include\gatantypes.h(408) : error C2906: 'Gatan::ScaleData' : explicit specialization requires 'template <>' 1>f:\copy of dmm\win32\include\gatantypes.h(409) : error C2906: 'Gatan::ScaleData' : explicit specialization requires 'template <>' 1>f:\copy of dmm\win32\include\gatantypes.h(411) : error C2906: 'Gatan::ScaleData' : explicit specialization requires 'template <>' 1>f:\copy of dmm\win32\include\gatantypes.h(412) : error C2906: 'Gatan::ScaleData' : explicit specialization requires 'template <>' 1>f:\copy of dmm\win32\include\gatantypes.h(413) : error C2906: 'Gatan::ScaleData' : explicit specialization requires 'template <>' 1>f:\copy of dmm\win32\include\gatantypes.h(415) : error C2906: 'Gatan::ScaleData' : explicit specialization requires 'template <>' 1>f:\copy of dmm\win32\include\gatantypes.h(416) : error C2906: 'Gatan::ScaleData' : explicit specialization requires 'template <>' 1>f:\copy of dmm\win32\include\gatantypes.h(417) : error C2906: 'Gatan::ScaleData' : explicit specialization requires 'template <>' 1>f:\copy of dmm\win32\include\gatantypes.h(419) : error C2906: 'Gatan::ScaleData' : explicit specialization requires 'template <>' 1>f:\copy of dmm\win32\include\gatantypes.h(420) : error C2906: 'Gatan::ScaleData' : explicit specialization requires 'template <>' 1>f:\c
-
Hello, I've downloaded an SDK an am able to get the code to compile with VC6 no problem but when I use Express Edition 2008/2005 I get all sorts of compiler/linker errors. The problem is I only have access to VC6 in work and would like to have a copy for myself. Is it still available? or is there a way to get the Express Editions to use the VC6 compiler? Searching for this hasn't turned up anything Also: Why would something compile with older versions and not newer ones? Thanks
Ylno wrote:
I've downloaded an SDK...
The Platform SDK or some other one?
Ylno wrote:
Is it still available?
Is what still available?
Ylno wrote:
or is there a way to get the Express Editions to use the VC6 compiler?
This makes no sense. Why would you want a new compiler/IDE to use an old compiler?
Ylno wrote:
Also: Why would something compile with older versions and not newer ones?
Because the new compilers are more strict in adhereing to the C++ standards.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Ylno wrote:
I've downloaded an SDK...
The Platform SDK or some other one?
Ylno wrote:
Is it still available?
Is what still available?
Ylno wrote:
or is there a way to get the Express Editions to use the VC6 compiler?
This makes no sense. Why would you want a new compiler/IDE to use an old compiler?
Ylno wrote:
Also: Why would something compile with older versions and not newer ones?
Because the new compilers are more strict in adhereing to the C++ standards.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
DavidCrow wrote:
The Platform SDK or some other one?
It's another SDK for compiling scripts into .dll to improve execution time.
DavidCrow wrote:
Is what still available?
is the VC6 compiler/IDE available.
DavidCrow wrote:
This makes no sense. Why would you want a new compiler/IDE to use an old compiler?
Because I got the code to compile with no problems in VC6 and the resulting .dll worked fine. And it seems too much hassle to get the code to work with a more recent compiler.
-
Hi Thanks for the help. The project is set to compile to .dll. This is done with VC++ 9.0 Express Here's some errors:
1>LibraryExample.cpp 1>f:\copy of dmm\win32\include\gatantypes.h(403) : error C2906: 'Gatan::ScaleData' : explicit specialization requires 'template <>' 1>f:\copy of dmm\win32\include\gatantypes.h(404) : error C2906: 'Gatan::ScaleData' : explicit specialization requires 'template <>' 1>f:\copy of dmm\win32\include\gatantypes.h(405) : error C2906: 'Gatan::ScaleData' : explicit specialization requires 'template <>' 1>f:\copy of dmm\win32\include\gatantypes.h(407) : error C2906: 'Gatan::ScaleData' : explicit specialization requires 'template <>' 1>f:\copy of dmm\win32\include\gatantypes.h(408) : error C2906: 'Gatan::ScaleData' : explicit specialization requires 'template <>' 1>f:\copy of dmm\win32\include\gatantypes.h(409) : error C2906: 'Gatan::ScaleData' : explicit specialization requires 'template <>' 1>f:\copy of dmm\win32\include\gatantypes.h(411) : error C2906: 'Gatan::ScaleData' : explicit specialization requires 'template <>' 1>f:\copy of dmm\win32\include\gatantypes.h(412) : error C2906: 'Gatan::ScaleData' : explicit specialization requires 'template <>' 1>f:\copy of dmm\win32\include\gatantypes.h(413) : error C2906: 'Gatan::ScaleData' : explicit specialization requires 'template <>' 1>f:\copy of dmm\win32\include\gatantypes.h(415) : error C2906: 'Gatan::ScaleData' : explicit specialization requires 'template <>' 1>f:\copy of dmm\win32\include\gatantypes.h(416) : error C2906: 'Gatan::ScaleData' : explicit specialization requires 'template <>' 1>f:\copy of dmm\win32\include\gatantypes.h(417) : error C2906: 'Gatan::ScaleData' : explicit specialization requires 'template <>' 1>f:\copy of dmm\win32\include\gatantypes.h(419) : error C2906: 'Gatan::ScaleData' : explicit specialization requires 'template <>' 1>f:\copy of dmm\win32\include\gatantypes.h(420) : error C2906: 'Gatan::ScaleData' : explicit specialization requires 'template <>' 1>f:\c
Did you try to prefix
token_type
with thetypename
keyword, as suggested? :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke -
Did you try to prefix
token_type
with thetypename
keyword, as suggested? :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain ClarkeHi CPallini, Yes I have sorted all the previous errors with the suggestions. I wanted to show them in case there was something i could do with the compile options to get rid of these errors. (I thought I could ask the compiler to be less strict. Since i got the same thing to compile first time with VC6). Here's where i'm at now. Linker errors: (the project was set up so that the linker has the path of the library) Do you know what the weird combination of symbols mean? such as:
(??0bad_cast@std@@QAE@PBD@Z)
1>Linking... 1>LIBCMTD.lib(stdexcpt.obj) : error LNK2005: "public: __thiscall std::bad_cast::bad_cast(char const *)" (??0bad_cast@std@@QAE@PBD@Z) already defined in DMPlugInBasic-Dbg.lib(ImageUtility.obj) 1>LIBCMTD.lib(stdexcpt.obj) : error LNK2005: "public: __thiscall std::bad_cast::bad_cast(class std::bad_cast const &)" (??0bad_cast@std@@QAE@ABV01@@Z) already defined in DMPlugInBasic-Dbg.lib(ImageUtility.obj) 1>LIBCMTD.lib(stdexcpt.obj) : error LNK2005: "public: virtual __thiscall std::bad_cast::~bad_cast(void)" (??1bad_cast@std@@UAE@XZ) already defined in DMPlugInBasic-Dbg.lib(ImageUtility.obj) 1> Creating library .\Debug/LibraryExample.lib and object .\Debug/LibraryExample.exp 1>LibraryExample.obj : error LNK2019: unresolved external symbol "void __cdecl Gatan::PlugIn::DMScript_HandleException(struct Gatan::PlugIn::DM_Env *,class std::exception const &)" (?DMScript_HandleException@PlugIn@Gatan@@YAXPAUDM_Env@12@ABVexception@std@@@Z) referenced in function __catch$?PlugIn_Start@@YAXXZ$0 1>DMPlugInBasic-Dbg.lib(PlugInUtility.obj) : error LNK2001: unresolved external symbol "private: static class std::locale::_Locimp * std::locale::_Locimp::_Global" (?_Global@_Locimp@locale@std@@0PAV123@A) 1>DMPlugInBasic-Dbg.lib(PlugInUtility.obj) : error LNK2019: unresolved external symbol "protected: void __thiscall std::ios_base::_Addstd(void)" (?_Addstd@ios_base@std@@IAEXXZ) referenced in function "protected: void __thiscall std::basic_ios >::init(class std::basic_streambuf > *,bool)" (?init@?$basic_ios@DU?$char_traits@D@std@@@std@@IAEXPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@_N@Z) 1>DMPlugInBasic-Dbg.lib(PlugInUtility.obj) : error LNK2001: unresolved external symbol "__int64 const std::_Fpz" (?_Fpz@std@@3_JB) 1>DMPlugInBasic-Dbg.lib(PlugInUtility.obj) : error LNK2019: unresolved external symbol "void __cdecl std::_Xlen(void)" (?_Xlen@std@@YAXXZ) referenced in f
-
Hello, I've downloaded an SDK an am able to get the code to compile with VC6 no problem but when I use Express Edition 2008/2005 I get all sorts of compiler/linker errors. The problem is I only have access to VC6 in work and would like to have a copy for myself. Is it still available? or is there a way to get the Express Editions to use the VC6 compiler? Searching for this hasn't turned up anything Also: Why would something compile with older versions and not newer ones? Thanks
you can still find copies on eBay (i got one from there, a few years back)
Ylno wrote:
Why would something compile with older versions and not newer ones?
MS keeps making the compiler more standards-compliant. it's probably easiest to just fix the code. most of the compiler changes are pretty easy to accommodate.
-
Hi CPallini, Yes I have sorted all the previous errors with the suggestions. I wanted to show them in case there was something i could do with the compile options to get rid of these errors. (I thought I could ask the compiler to be less strict. Since i got the same thing to compile first time with VC6). Here's where i'm at now. Linker errors: (the project was set up so that the linker has the path of the library) Do you know what the weird combination of symbols mean? such as:
(??0bad_cast@std@@QAE@PBD@Z)
1>Linking... 1>LIBCMTD.lib(stdexcpt.obj) : error LNK2005: "public: __thiscall std::bad_cast::bad_cast(char const *)" (??0bad_cast@std@@QAE@PBD@Z) already defined in DMPlugInBasic-Dbg.lib(ImageUtility.obj) 1>LIBCMTD.lib(stdexcpt.obj) : error LNK2005: "public: __thiscall std::bad_cast::bad_cast(class std::bad_cast const &)" (??0bad_cast@std@@QAE@ABV01@@Z) already defined in DMPlugInBasic-Dbg.lib(ImageUtility.obj) 1>LIBCMTD.lib(stdexcpt.obj) : error LNK2005: "public: virtual __thiscall std::bad_cast::~bad_cast(void)" (??1bad_cast@std@@UAE@XZ) already defined in DMPlugInBasic-Dbg.lib(ImageUtility.obj) 1> Creating library .\Debug/LibraryExample.lib and object .\Debug/LibraryExample.exp 1>LibraryExample.obj : error LNK2019: unresolved external symbol "void __cdecl Gatan::PlugIn::DMScript_HandleException(struct Gatan::PlugIn::DM_Env *,class std::exception const &)" (?DMScript_HandleException@PlugIn@Gatan@@YAXPAUDM_Env@12@ABVexception@std@@@Z) referenced in function __catch$?PlugIn_Start@@YAXXZ$0 1>DMPlugInBasic-Dbg.lib(PlugInUtility.obj) : error LNK2001: unresolved external symbol "private: static class std::locale::_Locimp * std::locale::_Locimp::_Global" (?_Global@_Locimp@locale@std@@0PAV123@A) 1>DMPlugInBasic-Dbg.lib(PlugInUtility.obj) : error LNK2019: unresolved external symbol "protected: void __thiscall std::ios_base::_Addstd(void)" (?_Addstd@ios_base@std@@IAEXXZ) referenced in function "protected: void __thiscall std::basic_ios >::init(class std::basic_streambuf > *,bool)" (?init@?$basic_ios@DU?$char_traits@D@std@@@std@@IAEXPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@_N@Z) 1>DMPlugInBasic-Dbg.lib(PlugInUtility.obj) : error LNK2001: unresolved external symbol "__int64 const std::_Fpz" (?_Fpz@std@@3_JB) 1>DMPlugInBasic-Dbg.lib(PlugInUtility.obj) : error LNK2019: unresolved external symbol "void __cdecl std::_Xlen(void)" (?_Xlen@std@@YAXXZ) referenced in f
Ylno wrote:
Do you know what the weird combination of symbols mean? such as: (??0bad_cast@std@@QAE@PBD@Z)
It is
C++
name decoration (or mangling) see, for instance [^]. Regarding the linker errors, perhaps this page [^] may help. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke -
Ylno wrote:
Do you know what the weird combination of symbols mean? such as: (??0bad_cast@std@@QAE@PBD@Z)
It is
C++
name decoration (or mangling) see, for instance [^]. Regarding the linker errors, perhaps this page [^] may help. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke