Thread overview | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
March 08, 2007 winstl::findfile_sequence does not compile with Visual Studio 2005 | ||||
---|---|---|---|---|
| ||||
Hi! Has somenone used winstl::findfile_sequence with Microsoft Visual Studio 2005? This simple program #include "stdafx.h" #include "winstl/filesystem/findfile_sequence.hpp" int _tmain(int argc, _TCHAR* argv[]) { return 0; } leads to several compile errors: 1>------ Build started: Project: FindfileSequenceTest, Configuration: Debug Win32 ------ 1>Compiling... 1>stdafx.cpp 1>FindfileSequenceTest.cpp 1>d:\libraries\stlsoft\1.9.1- beta44\include\winstl\filesystem\findfile_sequence.hpp(1147) : error C2244: 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::length' : unable to match function definition to an existing declaration 1> d:\libraries\stlsoft\1.9.1- beta44\include\winstl\filesystem\findfile_sequence.hpp(443) : see declaration of 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::length' 1> definition 1> 'stlsoft::ss_size_t stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::length(v oid) const' 1> existing declarations 1> 'basic_findfile_sequence<C,T>::size_type stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::length(v oid) const' 1>d:\libraries\stlsoft\1.9.1- beta44\include\winstl\filesystem\findfile_sequence.hpp(1169) : error C2244: 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_dire ctory' : unable to match function definition to an existing declaration 1> d:\libraries\stlsoft\1.9.1- beta44\include\winstl\filesystem\findfile_sequence.hpp(455) : see declaration of 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_dire ctory' 1> definition 1> 'stlsoft::winstl_project::ws_bool_t stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_direc tory(void) const' 1> existing declarations 1> 'basic_findfile_sequence<C,T>::bool_type stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_direc tory(void) const' 1>d:\libraries\stlsoft\1.9.1- beta44\include\winstl\filesystem\findfile_sequence.hpp(1179) : error C2244: 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_file ' : unable to match function definition to an existing declaration 1> d:\libraries\stlsoft\1.9.1- beta44\include\winstl\filesystem\findfile_sequence.hpp(457) : see declaration of 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_file ' 1> definition 1> 'stlsoft::winstl_project::ws_bool_t stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_file( void) const' 1> existing declarations 1> 'basic_findfile_sequence<C,T>::bool_type stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_file( void) const' 1>d:\libraries\stlsoft\1.9.1- beta44\include\winstl\filesystem\findfile_sequence.hpp(1188) : error C2244: 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_comp ressed' : unable to match function definition to an existing declaration 1> d:\libraries\stlsoft\1.9.1- beta44\include\winstl\filesystem\findfile_sequence.hpp(459) : see declaration of 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_comp ressed' 1> definition 1> 'stlsoft::winstl_project::ws_bool_t stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_compr essed(void) const' 1> existing declarations 1> 'basic_findfile_sequence<C,T>::bool_type stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_compr essed(void) const' 1>d:\libraries\stlsoft\1.9.1- beta44\include\winstl\filesystem\findfile_sequence.hpp(1198) : error C2244: 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_repa rse_point' : unable to match function definition to an existing declaration 1> d:\libraries\stlsoft\1.9.1- beta44\include\winstl\filesystem\findfile_sequence.hpp(462) : see declaration of 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_repa rse_point' 1> definition 1> 'stlsoft::winstl_project::ws_bool_t stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_repar se_point(void) const' 1> existing declarations 1> 'basic_findfile_sequence<C,T>::bool_type stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_repar se_point(void) const' 1>d:\libraries\stlsoft\1.9.1- beta44\include\winstl\filesystem\findfile_sequence.hpp(1208) : error C2244: 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_read _only' : unable to match function definition to an existing declaration 1> d:\libraries\stlsoft\1.9.1- beta44\include\winstl\filesystem\findfile_sequence.hpp(465) : see declaration of 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_read _only' 1> definition 1> 'stlsoft::winstl_project::ws_bool_t stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_read_ only(void) const' 1> existing declarations 1> 'basic_findfile_sequence<C,T>::bool_type stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_read_ only(void) const' 1>d:\libraries\stlsoft\1.9.1- beta44\include\winstl\filesystem\findfile_sequence.hpp(1217) : error C2244: 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_syst em' : unable to match function definition to an existing declaration 1> d:\libraries\stlsoft\1.9.1- beta44\include\winstl\filesystem\findfile_sequence.hpp(467) : see declaration of 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_syst em' 1> definition 1> 'stlsoft::winstl_project::ws_bool_t stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_syste m(void) const' 1> existing declarations 1> 'basic_findfile_sequence<C,T>::bool_type stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_syste m(void) const' 1>d:\libraries\stlsoft\1.9.1- beta44\include\winstl\filesystem\findfile_sequence.hpp(1226) : error C2244: 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_hidd en' : unable to match function definition to an existing declaration 1> d:\libraries\stlsoft\1.9.1- beta44\include\winstl\filesystem\findfile_sequence.hpp(469) : see declaration of 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_hidd en' 1> definition 1> 'stlsoft::winstl_project::ws_bool_t stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_hidde n(void) const' 1> existing declarations 1> 'basic_findfile_sequence<C,T>::bool_type stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_hidde n(void) const' 1>d:\libraries\stlsoft\1.9.1- beta44\include\winstl\filesystem\findfile_sequence.hpp(1236) : error C2244: 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::equal' : unable to match function definition to an existing declaration 1> definition 1> 'stlsoft::winstl_project::ws_bool_t stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::equal(co nst C *) const' 1> existing declarations 1> 'basic_findfile_sequence<C,T>::bool_type stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::equal(co nst stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T> &) const' 1> 'basic_findfile_sequence<C,T>::bool_type stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::equal(co nst C *) const' 1>d:\libraries\stlsoft\1.9.1- beta44\include\winstl\filesystem\findfile_sequence.hpp(1246) : error C2244: 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::equal' : unable to match function definition to an existing declaration 1> definition 1> 'stlsoft::winstl_project::ws_bool_t stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::equal(co nst stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T> &) const' 1> existing declarations 1> 'basic_findfile_sequence<C,T>::bool_type stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::equal(co nst stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T> &) const' 1> 'basic_findfile_sequence<C,T>::bool_type stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::equal(co nst C *) const' 1>d:\libraries\stlsoft\1.9.1- beta44\include\winstl\filesystem\findfile_sequence.hpp(1695) : error C2244: 'stlsoft::winstl_project::basic_findfile_sequence_const_input_iterator<C,T ,V>::equal' : unable to match function definition to an existing declaration 1> d:\libraries\stlsoft\1.9.1- beta44\include\winstl\filesystem\findfile_sequence.hpp(639) : see declaration of 'stlsoft::winstl_project::basic_findfile_sequence_const_input_iterator<C,T ,V>::equal' 1> definition 1> 'stlsoft::winstl_project::ws_bool_t stlsoft::winstl_project::basic_findfile_sequence_const_input_iterator<C,T, V>::equal(const stlsoft::winstl_project::basic_findfile_sequence_const_input_iterator<C,T, V> &) const' 1> existing declarations 1> 'basic_findfile_sequence<C,T>::bool_type stlsoft::winstl_project::basic_findfile_sequence_const_input_iterator<C,T, V>::equal(const stlsoft::winstl_project::basic_findfile_sequence_const_input_iterator<C,T, V> &) const' 1>Generating Code... 1>Build log was saved at "file:// d:\Projects\Local\FindfileSequenceTest\FindfileSequenceTest\Debug\BuildLog .htm" 1>FindfileSequenceTest - 11 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== So Long... Gabor |
March 08, 2007 winstl::findfile_sequence Visual Studio 2005 Test Project | ||||
---|---|---|---|---|
| ||||
Posted in reply to Gabor Fischer Attachments: | Hi! For your convenience, I attach my test project. So Long... Gabor |
March 09, 2007 Re: winstl::findfile_sequence does not compile with Visual Studio 2005 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Gabor Fischer Attachments: | Try this If there're no problems, this'll be in beta 45, which should be out real soon. (And, yes, I am aware how nuts it is to have a beta 45. Should be the real thing before too much longer ...) "Gabor Fischer" <Gabor.Fischer@systecs.com> wrote in message news:ACSV8PpKQNB@systecs.com... > Hi! > > > Has somenone used winstl::findfile_sequence with Microsoft Visual Studio 2005? This simple program > > > #include "stdafx.h" > #include "winstl/filesystem/findfile_sequence.hpp" > > > int _tmain(int argc, _TCHAR* argv[]) > { > return 0; > } > > > leads to several compile errors: > > 1>------ Build started: Project: FindfileSequenceTest, Configuration: > Debug Win32 ------ > 1>Compiling... > 1>stdafx.cpp > 1>FindfileSequenceTest.cpp > 1>d:\libraries\stlsoft\1.9.1- > beta44\include\winstl\filesystem\findfile_sequence.hpp(1147) : error > C2244: > 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::length' > : unable to match function definition to an existing declaration > 1> d:\libraries\stlsoft\1.9.1- > beta44\include\winstl\filesystem\findfile_sequence.hpp(443) : see > declaration of > 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::length' > 1> definition > 1> 'stlsoft::ss_size_t > stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::length(v > oid) const' > 1> existing declarations > 1> 'basic_findfile_sequence<C,T>::size_type > stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::length(v > oid) const' > 1>d:\libraries\stlsoft\1.9.1- > beta44\include\winstl\filesystem\findfile_sequence.hpp(1169) : error > C2244: > 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_dire > ctory' : unable to match function definition to an existing declaration > 1> d:\libraries\stlsoft\1.9.1- > beta44\include\winstl\filesystem\findfile_sequence.hpp(455) : see > declaration of > 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_dire > ctory' > 1> definition > 1> 'stlsoft::winstl_project::ws_bool_t > stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_direc > tory(void) const' > 1> existing declarations > 1> 'basic_findfile_sequence<C,T>::bool_type > stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_direc > tory(void) const' > 1>d:\libraries\stlsoft\1.9.1- > beta44\include\winstl\filesystem\findfile_sequence.hpp(1179) : error > C2244: > 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_file > ' : unable to match function definition to an existing declaration > 1> d:\libraries\stlsoft\1.9.1- > beta44\include\winstl\filesystem\findfile_sequence.hpp(457) : see > declaration of > 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_file > ' > 1> definition > 1> 'stlsoft::winstl_project::ws_bool_t > stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_file( > void) const' > 1> existing declarations > 1> 'basic_findfile_sequence<C,T>::bool_type > stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_file( > void) const' > 1>d:\libraries\stlsoft\1.9.1- > beta44\include\winstl\filesystem\findfile_sequence.hpp(1188) : error > C2244: > 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_comp > ressed' : unable to match function definition to an existing declaration > 1> d:\libraries\stlsoft\1.9.1- > beta44\include\winstl\filesystem\findfile_sequence.hpp(459) : see > declaration of > 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_comp > ressed' > 1> definition > 1> 'stlsoft::winstl_project::ws_bool_t > stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_compr > essed(void) const' > 1> existing declarations > 1> 'basic_findfile_sequence<C,T>::bool_type > stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_compr > essed(void) const' > 1>d:\libraries\stlsoft\1.9.1- > beta44\include\winstl\filesystem\findfile_sequence.hpp(1198) : error > C2244: > 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_repa > rse_point' : unable to match function definition to an existing > declaration > 1> d:\libraries\stlsoft\1.9.1- > beta44\include\winstl\filesystem\findfile_sequence.hpp(462) : see > declaration of > 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_repa > rse_point' > 1> definition > 1> 'stlsoft::winstl_project::ws_bool_t > stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_repar > se_point(void) const' > 1> existing declarations > 1> 'basic_findfile_sequence<C,T>::bool_type > stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_repar > se_point(void) const' > 1>d:\libraries\stlsoft\1.9.1- > beta44\include\winstl\filesystem\findfile_sequence.hpp(1208) : error > C2244: > 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_read > _only' : unable to match function definition to an existing declaration > 1> d:\libraries\stlsoft\1.9.1- > beta44\include\winstl\filesystem\findfile_sequence.hpp(465) : see > declaration of > 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_read > _only' > 1> definition > 1> 'stlsoft::winstl_project::ws_bool_t > stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_read_ > only(void) const' > 1> existing declarations > 1> 'basic_findfile_sequence<C,T>::bool_type > stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_read_ > only(void) const' > 1>d:\libraries\stlsoft\1.9.1- > beta44\include\winstl\filesystem\findfile_sequence.hpp(1217) : error > C2244: > 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_syst > em' : unable to match function definition to an existing declaration > 1> d:\libraries\stlsoft\1.9.1- > beta44\include\winstl\filesystem\findfile_sequence.hpp(467) : see > declaration of > 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_syst > em' > 1> definition > 1> 'stlsoft::winstl_project::ws_bool_t > stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_syste > m(void) const' > 1> existing declarations > 1> 'basic_findfile_sequence<C,T>::bool_type > stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_syste > m(void) const' > 1>d:\libraries\stlsoft\1.9.1- > beta44\include\winstl\filesystem\findfile_sequence.hpp(1226) : error > C2244: > 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_hidd > en' : unable to match function definition to an existing declaration > 1> d:\libraries\stlsoft\1.9.1- > beta44\include\winstl\filesystem\findfile_sequence.hpp(469) : see > declaration of > 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_hidd > en' > 1> definition > 1> 'stlsoft::winstl_project::ws_bool_t > stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_hidde > n(void) const' > 1> existing declarations > 1> 'basic_findfile_sequence<C,T>::bool_type > stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::is_hidde > n(void) const' > 1>d:\libraries\stlsoft\1.9.1- > beta44\include\winstl\filesystem\findfile_sequence.hpp(1236) : error > C2244: > 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::equal' > : unable to match function definition to an existing declaration > 1> definition > 1> 'stlsoft::winstl_project::ws_bool_t > stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::equal(co > nst C *) const' > 1> existing declarations > 1> 'basic_findfile_sequence<C,T>::bool_type > stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::equal(co > nst stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T> &) > const' > 1> 'basic_findfile_sequence<C,T>::bool_type > stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::equal(co > nst C *) const' > 1>d:\libraries\stlsoft\1.9.1- > beta44\include\winstl\filesystem\findfile_sequence.hpp(1246) : error > C2244: > 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::equal' > : unable to match function definition to an existing declaration > 1> definition > 1> 'stlsoft::winstl_project::ws_bool_t > stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::equal(co > nst stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T> &) > const' > 1> existing declarations > 1> 'basic_findfile_sequence<C,T>::bool_type > stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::equal(co > nst stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T> &) > const' > 1> 'basic_findfile_sequence<C,T>::bool_type > stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::equal(co > nst C *) const' > 1>d:\libraries\stlsoft\1.9.1- > beta44\include\winstl\filesystem\findfile_sequence.hpp(1695) : error > C2244: > 'stlsoft::winstl_project::basic_findfile_sequence_const_input_iterator<C,T > ,V>::equal' : unable to match function definition to an existing > declaration > 1> d:\libraries\stlsoft\1.9.1- > beta44\include\winstl\filesystem\findfile_sequence.hpp(639) : see > declaration of > 'stlsoft::winstl_project::basic_findfile_sequence_const_input_iterator<C,T > ,V>::equal' > 1> definition > 1> 'stlsoft::winstl_project::ws_bool_t > stlsoft::winstl_project::basic_findfile_sequence_const_input_iterator<C,T, > V>::equal(const > stlsoft::winstl_project::basic_findfile_sequence_const_input_iterator<C,T, > V> &) const' > 1> existing declarations > 1> 'basic_findfile_sequence<C,T>::bool_type > stlsoft::winstl_project::basic_findfile_sequence_const_input_iterator<C,T, > V>::equal(const > stlsoft::winstl_project::basic_findfile_sequence_const_input_iterator<C,T, > V> &) const' > 1>Generating Code... > 1>Build log was saved at "file:// > d:\Projects\Local\FindfileSequenceTest\FindfileSequenceTest\Debug\BuildLog > .htm" > 1>FindfileSequenceTest - 11 error(s), 0 warning(s) > ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped > ========== > > > So Long... > > Gabor > |
March 09, 2007 Re: winstl::findfile_sequence does not compile with Visual Studio 2005 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew Wilson | Hello Matthew! > Try this > If there're no problems, this'll be in beta 45, which should be out real soon. Thanks. This fixes the problem with winstl::reg_key and winstl::reg_value. The problem with winstl::findfile_sequence still remains. So Long... Gabor |
March 10, 2007 Re: winstl::findfile_sequence does not compile with Visual Studio 2005 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Gabor Fischer | Gabor Fischer Wrote: > Hi! > > > Has somenone used winstl::findfile_sequence with Microsoft Visual Studio 2005? This simple program > > > #include "stdafx.h" > #include "winstl/filesystem/findfile_sequence.hpp" > > > int _tmain(int argc, _TCHAR* argv[]) > { > return 0; > } > > > leads to several compile errors: > > 1>------ Build started: Project: FindfileSequenceTest, Configuration: > Debug Win32 ------ > 1>Compiling... > 1>stdafx.cpp > 1>FindfileSequenceTest.cpp > 1>d:\libraries\stlsoft\1.9.1- > beta44\include\winstl\filesystem\findfile_sequence.hpp(1147) : error > C2244: > 'stlsoft::winstl_project::basic_findfile_sequence_value_type<C,T>::length' > : unable to match function definition to an existing declaration > 1> d:\libraries\stlsoft\1.9.1- > beta44\include\winstl\filesystem\findfile_sequence.hpp(443) : see > declaration of <snip> > 1>FindfileSequenceTest - 11 error(s), 0 warning(s) > ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped > ========== > > > So Long... > > Gabor > I can't replicate this. It all just works for me. (I did, of course, #define _CRT_SECURE_NO_DEPRECATE to get rid of all the stupid warnings about all the _s blather.) |
March 12, 2007 Re: winstl::findfile_sequence does not compile with Visual Studio 2005 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew Wilson | Hello! >> 1>FindfileSequenceTest - 11 error(s), 0 warning(s) >> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped >> ========== >> >> >> So Long... >> >> Gabor >> > I can't replicate this. It all just works for me. That is strange. > (I did, of course, #define _CRT_SECURE_NO_DEPRECATE to get rid of all the stupid warnings about all the _s blather.) So did I. As you can see above, I got no warnings, just errors. Did you try it with the test project I posted? So Long... Gabor So Long... Gabor |
March 12, 2007 Re: winstl::findfile_sequence does not compile with Visual Studio 2005 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Gabor Fischer | I've just done it again. Here's *exactly* what I did: 1. unzipped your FindfileSequenceTest zip to H:\3Pty\STLSoft\FindfileSequenceTest 2. unzipped the latest STLSoft distro to H:\3Pty\STLSoft\stlsoft-1.9.1.beta46 3. Modified the FindfileSequenceTest include settings to use H:\3Pty\STLSoft\stlsoft-1.9.1.beta46\include, instead of your $(STLSOFT)\1.9.1-beta44\include 4. Did a rebuild all This is what I get: ------ Rebuild All started: Project: FindfileSequenceTest, Configuration: Debug Win32 ------ Deleting intermediate and output files for project 'FindfileSequenceTest', configuration 'Debug|Win32' Compiling... FindfileSequenceTest.cpp h:\3pty\stlsoft\stlsoft-1.9.1.beta46\include\winstl\system\system_traits.hpp(292) : warning C4996: 'strncpy' was declared deprecated p:\program files\microsoft visual studio 8\vc\include\string.h(156) : see declaration of 'strncpy' Message: 'This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' h:\3pty\stlsoft\stlsoft-1.9.1.beta46\include\winstl\system\system_traits.hpp(302) : warning C4996: 'strncat' was declared deprecated p:\program files\microsoft visual studio 8\vc\include\string.h(143) : see declaration of 'strncat' Message: 'This function or variable may be unsafe. Consider using strncat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' h:\3pty\stlsoft\stlsoft-1.9.1.beta46\include\winstl\system\system_traits.hpp(472) : warning C4996: 'wcsncpy' was declared deprecated p:\program files\microsoft visual studio 8\vc\include\wchar.h(1012) : see declaration of 'wcsncpy' Message: 'This function or variable may be unsafe. Consider using wcsncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' h:\3pty\stlsoft\stlsoft-1.9.1.beta46\include\winstl\system\system_traits.hpp(482) : warning C4996: 'wcsncat' was declared deprecated p:\program files\microsoft visual studio 8\vc\include\wchar.h(1006) : see declaration of 'wcsncat' Message: 'This function or variable may be unsafe. Consider using wcsncat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' stdafx.cpp Generating Code... Compiling manifest to resources... Linking... Embedding manifest... Build log was saved at "file://h:\3Pty\STLSoft\FindfileSequenceTest\Debug\BuildLog.htm" FindfileSequenceTest - 0 error(s), 4 warning(s) ========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ========== Clearly, it compiles for me. Two things are strange, however: 1. It compiles FindfileSequenceTest.cpp before stdafx.cpp 2. It does not suppress the CRT safe stuff (which you'd indicated that you'd done). I really have *no* clue why your setup does not work. Can you try opening a VC++2005 command prompt, and compiling FindfileSequenceTest.cpp on its own, with a command-line similar to the following: "H:\3Pty\STLSoft\FindfileSequenceTest>cl -nologo -EHsc -c -IH:\3Pty\STLSoft\stlsoft-1.9.1.beta46\include -D_CRT_SECURE_NO_DEPRECATE FindfileSequenceTest.cpp FindfileSequenceTest.cpp H:\3Pty\STLSoft\FindfileSequenceTest>" Let me know how it goes... HTH Matthew |
March 12, 2007 Re: winstl::findfile_sequence does not compile with Visual Studio 2005 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew Wilson | Hello! > Clearly, it compiles for me. Two things are strange, however: This is getting really weird. :-/ > 1. It compiles FindfileSequenceTest.cpp before stdafx.cpp Yes, now that you pointed it out, I noticed that too > 2. It does not suppress the CRT safe stuff (which you'd indicated that you'd > done). It is set in the project (you can verify it in the project settings). I don't get those warnings. > Can you try opening a VC++2005 command prompt, and compiling FindfileSequenceTest.cpp on its own, with a command-line similar to the following: > "H:\3Pty\STLSoft\FindfileSequenceTest>cl -nologo -EHsc -c -IH:\3Pty\STLSoft\stlsoft-1.9.1.beta46\include -D_CRT_SECURE_NO_DEPRECATE FindfileSequenceTest.cpp FindfileSequenceTest.cpp > H:\3Pty\STLSoft\FindfileSequenceTest>" > Let me know how it goes... Here is the result: D:\Projects\Local\FindfileSequenceTest>cl -nologo -EHsc -c - ID:\Libraries\STLSof t\1.9.1-beta45\include -D_CRT_SECURE_NO_DEPRECATE FindfileSequenceTest.cpp FindfileSequenceTest.cpp D:\Libraries\STLSoft\1.9.1-beta45\include\winstl/filesystem/findfile_sequence.hp p(1152) : error C2244: 'stlsoft::winstl_project::basic_findfile_sequence_value_t ype<C,T>::length' : unable to match function definition to an existing declarati on D:\Libraries\STLSoft\1.9.1-beta45\include\winstl/filesystem/findfile_seq uence.hpp(443) : see declaration of 'stlsoft::winstl_project::basic_findfile_seq uence_value_type<C,T>::length' definition 'stlsoft::ss_size_t stlsoft::winstl_project::basic_findfile_sequence_val ue_type<C,T>::length(void) const' existing declarations 'basic_findfile_sequence<C,T>::size_type stlsoft::winstl_project::basic_ findfile_sequence_value_type<C,T>::length(void) const' D:\Libraries\STLSoft\1.9.1-beta45\include\winstl/filesystem/findfile_sequence.hp p(1174) : error C2244: 'stlsoft::winstl_project::basic_findfile_sequence_value_t ype<C,T>::is_directory' : unable to match function definition to an existing dec laration D:\Libraries\STLSoft\1.9.1-beta45\include\winstl/filesystem/findfile_seq uence.hpp(455) : see declaration of 'stlsoft::winstl_project::basic_findfile_seq uence_value_type<C,T>::is_directory' definition 'stlsoft::winstl_project::ws_bool_t stlsoft::winstl_project::basic_findf ile_sequence_value_type<C,T>::is_directory(void) const' existing declarations 'basic_findfile_sequence<C,T>::bool_type stlsoft::winstl_project::basic_ findfile_sequence_value_type<C,T>::is_directory(void) const' D:\Libraries\STLSoft\1.9.1-beta45\include\winstl/filesystem/findfile_sequence.hp p(1184) : error C2244: 'stlsoft::winstl_project::basic_findfile_sequence_value_t ype<C,T>::is_file' : unable to match function definition to an existing declarat ion D:\Libraries\STLSoft\1.9.1-beta45\include\winstl/filesystem/findfile_seq uence.hpp(457) : see declaration of 'stlsoft::winstl_project::basic_findfile_seq uence_value_type<C,T>::is_file' definition 'stlsoft::winstl_project::ws_bool_t stlsoft::winstl_project::basic_findf ile_sequence_value_type<C,T>::is_file(void) const' existing declarations 'basic_findfile_sequence<C,T>::bool_type stlsoft::winstl_project::basic_ findfile_sequence_value_type<C,T>::is_file(void) const' D:\Libraries\STLSoft\1.9.1-beta45\include\winstl/filesystem/findfile_sequence.hp p(1193) : error C2244: 'stlsoft::winstl_project::basic_findfile_sequence_value_t ype<C,T>::is_compressed' : unable to match function definition to an existing de claration D:\Libraries\STLSoft\1.9.1-beta45\include\winstl/filesystem/findfile_seq uence.hpp(459) : see declaration of 'stlsoft::winstl_project::basic_findfile_seq uence_value_type<C,T>::is_compressed' definition 'stlsoft::winstl_project::ws_bool_t stlsoft::winstl_project::basic_findf ile_sequence_value_type<C,T>::is_compressed(void) const' existing declarations 'basic_findfile_sequence<C,T>::bool_type stlsoft::winstl_project::basic_ findfile_sequence_value_type<C,T>::is_compressed(void) const' D:\Libraries\STLSoft\1.9.1-beta45\include\winstl/filesystem/findfile_sequence.hp p(1203) : error C2244: 'stlsoft::winstl_project::basic_findfile_sequence_value_t ype<C,T>::is_reparse_point' : unable to match function definition to an existing declaration D:\Libraries\STLSoft\1.9.1-beta45\include\winstl/filesystem/findfile_seq uence.hpp(462) : see declaration of 'stlsoft::winstl_project::basic_findfile_seq uence_value_type<C,T>::is_reparse_point' definition 'stlsoft::winstl_project::ws_bool_t stlsoft::winstl_project::basic_findf ile_sequence_value_type<C,T>::is_reparse_point(void) const' existing declarations 'basic_findfile_sequence<C,T>::bool_type stlsoft::winstl_project::basic_ findfile_sequence_value_type<C,T>::is_reparse_point(void) const' D:\Libraries\STLSoft\1.9.1-beta45\include\winstl/filesystem/findfile_sequence.hp p(1213) : error C2244: 'stlsoft::winstl_project::basic_findfile_sequence_value_t ype<C,T>::is_read_only' : unable to match function definition to an existing dec laration D:\Libraries\STLSoft\1.9.1-beta45\include\winstl/filesystem/findfile_seq uence.hpp(465) : see declaration of 'stlsoft::winstl_project::basic_findfile_seq uence_value_type<C,T>::is_read_only' definition 'stlsoft::winstl_project::ws_bool_t stlsoft::winstl_project::basic_findf ile_sequence_value_type<C,T>::is_read_only(void) const' existing declarations 'basic_findfile_sequence<C,T>::bool_type stlsoft::winstl_project::basic_ findfile_sequence_value_type<C,T>::is_read_only(void) const' D:\Libraries\STLSoft\1.9.1-beta45\include\winstl/filesystem/findfile_sequence.hp p(1222) : error C2244: 'stlsoft::winstl_project::basic_findfile_sequence_value_t ype<C,T>::is_system' : unable to match function definition to an existing declar ation D:\Libraries\STLSoft\1.9.1-beta45\include\winstl/filesystem/findfile_seq uence.hpp(467) : see declaration of 'stlsoft::winstl_project::basic_findfile_seq uence_value_type<C,T>::is_system' definition 'stlsoft::winstl_project::ws_bool_t stlsoft::winstl_project::basic_findf ile_sequence_value_type<C,T>::is_system(void) const' existing declarations 'basic_findfile_sequence<C,T>::bool_type stlsoft::winstl_project::basic_ findfile_sequence_value_type<C,T>::is_system(void) const' D:\Libraries\STLSoft\1.9.1-beta45\include\winstl/filesystem/findfile_sequence.hp p(1231) : error C2244: 'stlsoft::winstl_project::basic_findfile_sequence_value_t ype<C,T>::is_hidden' : unable to match function definition to an existing declar ation D:\Libraries\STLSoft\1.9.1-beta45\include\winstl/filesystem/findfile_seq uence.hpp(469) : see declaration of 'stlsoft::winstl_project::basic_findfile_seq uence_value_type<C,T>::is_hidden' definition 'stlsoft::winstl_project::ws_bool_t stlsoft::winstl_project::basic_findf ile_sequence_value_type<C,T>::is_hidden(void) const' existing declarations 'basic_findfile_sequence<C,T>::bool_type stlsoft::winstl_project::basic_ findfile_sequence_value_type<C,T>::is_hidden(void) const' D:\Libraries\STLSoft\1.9.1-beta45\include\winstl/filesystem/findfile_sequence.hp p(1241) : error C2244: 'stlsoft::winstl_project::basic_findfile_sequence_value_t ype<C,T>::equal' : unable to match function definition to an existing declaratio n definition 'stlsoft::winstl_project::ws_bool_t stlsoft::winstl_project::basic_findf ile_sequence_value_type<C,T>::equal(const C *) const' existing declarations 'basic_findfile_sequence<C,T>::bool_type stlsoft::winstl_project::basic_ findfile_sequence_value_type<C,T>::equal(const stlsoft::winstl_project::basic_fi ndfile_sequence_value_type<C,T> &) const' 'basic_findfile_sequence<C,T>::bool_type stlsoft::winstl_project::basic_ findfile_sequence_value_type<C,T>::equal(const C *) const' D:\Libraries\STLSoft\1.9.1-beta45\include\winstl/filesystem/findfile_sequence.hp p(1251) : error C2244: 'stlsoft::winstl_project::basic_findfile_sequence_value_t ype<C,T>::equal' : unable to match function definition to an existing declaratio n definition 'stlsoft::winstl_project::ws_bool_t stlsoft::winstl_project::basic_findf ile_sequence_value_type<C,T>::equal(const stlsoft::winstl_project::basic_findfil e_sequence_value_type<C,T> &) const' existing declarations 'basic_findfile_sequence<C,T>::bool_type stlsoft::winstl_project::basic_ findfile_sequence_value_type<C,T>::equal(const stlsoft::winstl_project::basic_fi ndfile_sequence_value_type<C,T> &) const' 'basic_findfile_sequence<C,T>::bool_type stlsoft::winstl_project::basic_ findfile_sequence_value_type<C,T>::equal(const C *) const' D:\Libraries\STLSoft\1.9.1-beta45\include\winstl/filesystem/findfile_sequence.hp p(1700) : error C2244: 'stlsoft::winstl_project::basic_findfile_sequence_const_i nput_iterator<C,T,V>::equal' : unable to match function definition to an existin g declaration D:\Libraries\STLSoft\1.9.1-beta45\include\winstl/filesystem/findfile_seq uence.hpp(639) : see declaration of 'stlsoft::winstl_project::basic_findfile_seq uence_const_input_iterator<C,T,V>::equal' definition 'stlsoft::winstl_project::ws_bool_t stlsoft::winstl_project::basic_findf ile_sequence_const_input_iterator<C,T,V>::equal(const stlsoft::winstl_project::b asic_findfile_sequence_const_input_iterator<C,T,V> &) const' existing declarations 'basic_findfile_sequence<C,T>::bool_type stlsoft::winstl_project::basic_ findfile_sequence_const_input_iterator<C,T,V>::equal(const stlsoft::winstl_proje ct::basic_findfile_sequence_const_input_iterator<C,T,V> &) const' D:\Projects\Local\FindfileSequenceTest> Here is the version info of my compiler: D:\Projects\Local\FindfileSequenceTest>cl Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for 80x86 Copyright (C) Microsoft Corporation. All rights reserved. usage: cl [ option... ] filename... [ /link linkoption... ] D:\Projects\Local\FindfileSequenceTest> So Long... Gabor |
March 13, 2007 Re: winstl::findfile_sequence does not compile with Visual Studio 2005 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Gabor Fischer | Ok, I think I've figured out what's going on. My version of VC++ 8 is 14.00.50727.42 (it's the free one). Clearly, the two versions are different in how they handle the specific form of construct that is used in winstl::basic_findfile_sequence (and many other STLSoft components), whereby the method definition is outside the class. Consider the class: template <typename C, typename T> class basic_findfile_sequence { public: typedef size_t size_type; public: size_type length() const; }; Now the implementation. It can either be: template <typename C, typename T> size_t basic_findfile_sequence<C, T>::length() const { . . . } or: template <typename C, typename T> typename basic_findfile_sequence<C, T>::size_type basic_findfile_sequence<C, T>::length() const { . . . } Some compilers like the first way; others the second. I handle this as follows: template <typename C, typename T> #ifdef STLSOFT_CF_FUNCTION_SIGNATURE_FULL_ARG_QUALIFICATION_REQUIRED typename basic_findfile_sequence<C, T>::size_type basic_findfile_sequence<C, T>::length() const #else /* ? STLSOFT_CF_FUNCTION_SIGNATURE_FULL_ARG_QUALIFICATION_REQUIRED */ size_t basic_findfile_sequence<C, T>::length() const #endif /* STLSOFT_CF_FUNCTION_SIGNATURE_FULL_ARG_QUALIFICATION_REQUIRED */ { . . . } The defn (or not) of this for VC++ is in stlsoft/internal/cccap/msvc.h, as follows: #if _MSC_VER >= 1100 && \ _MSC_VER < 1310 # define STLSOFT_CF_FUNCTION_SIGNATURE_FULL_ARG_QUALIFICATION_REQUIRED #endif /* _MSC_VER */ This works for all the following versions of the compiler: 4.2 5.0 6.0 7.0 7.1 8.0 (14.00.50727.42) Now, I strongly suspect that VC++8 (14.00.50727.762) behaves like VC++ 5, 6 and 7.0 in this respect. Consequently, I strongly suspect that you would achieve compilation if you changed the requisite lines in msvc.h to the following: #if ( _MSC_VER >= 1100 && \ _MSC_VER < 1310) || \ _MSC_VER == 1400 # define STLSOFT_CF_FUNCTION_SIGNATURE_FULL_ARG_QUALIFICATION_REQUIRED #endif /* _MSC_VER */ However, while that's good for you, it's not good for me, or for anyone else who is using VC++ 8 (14.00.50727.42). So, I think I shall have to get rid of STLSOFT_CF_FUNCTION_SIGNATURE_FULL_ARG_QUALIFICATION_REQUIRED and the way it works, and find a compiler-independent implementation. <digress> This is part of a general issue regarding the relativity of typedefs, known (in Imperfect C++, anyway <g>) as contextual typedefs. In other words, size_type is the "size type" of basic_findfile_sequence, and it seems appropriate to define the size-related methods' return type and parameters in relative terms. But it's also the case that size_type should be the same for all STL-related types. Further, size_t is the degenerate size-related type for all C/C++ programming. It's not a black-and-white issue, and one I'm still wrestling after many years of faffing around with contextual typedefs. ;=/ </digress> |
March 13, 2007 Re: winstl::findfile_sequence does not compile with Visual Studio 2005 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew Wilson | Can you do me a favour, and try each of the following (separately) with the original msvc.h file, and with the modified one, and send me the full set of compilation errors/warnings? Thanks inetstl\filesystem\findfile_sequence.hpp stlsoft\containers\pod_vector.hpp winstl\filesystem\findfile_sequence.hpp winstl\filesystem\findvolume_sequence.hpp |
Copyright © 1999-2021 by the D Language Foundation