Thread overview
module_directory error
Jul 18, 2004
yxh
Jul 18, 2004
yxh
Jul 18, 2004
Matthew Wilson
Jul 18, 2004
yxh
July 18, 2004
Hi, everyone
I cannot compile the following code. I'm using g++ (GCC) 3.3.1 (mingw
special 20030804-1) and stlsoft 1.7.1(release). It compiles ok in stlsoft
1.7.1 beta8.
MSVC 7.1 generates similar error messages.

code:

#include <stlsoft/winstl_module_directory.h>
#include <iostream>

int main(int argc, char * argv[])
{
 winstl::module_directory dir;
 std::cout << dir << std::endl;
 return 0;
}


error:

E:\samples\test_module_directory\test_module_directory>c++
test_module_director
y.cpp -I d:/download
d:/download/stlsoft/winstl_module_directory.h: In constructor `
   stlsoft::winstl_project::basic_module_directory<C,
   T>::basic_module_directory(HINSTANCE__*) [with C = ws_char_a_t, T =
   stlsoft::winstl_project::filesystem_traits<ws_char_a_t>]':
test_module_directory.cpp:9:   instantiated from here
d:/download/stlsoft/winstl_module_directory.h:316: error: no matching
function
   for call to `stlsoft::winstl_project::basic_module_directory<ws_char_a_t,
   stlsoft::winstl_project::filesystem_traits<ws_char_a_t> >::get_path(
   HINSTANCE__*&,
stlsoft::winstl_project::basic_file_path_buffer<ws_char_a_t,
   stlsoft::winstl_project::processheap_allocator<char> >&, ss_size_t)'
d:/download/stlsoft/winstl_module_directory.h:322: error: candidates are:
   static ws_size_t stlsoft::winstl_project::basic_module_directory<C,
   T>::get_path(HINSTANCE__*, ws_char_a_t*, unsigned int) [with C =
   ws_char_a_t, T = stlsoft::winstl_project::filesystem_traits<ws_char_a_t>]
d:/download/stlsoft/winstl_module_directory.h:356: error:
   static ws_size_t stlsoft::winstl_project::basic_module_directory<C,
   T>::get_path(HINSTANCE__*, ws_char_w_t*, unsigned int) [with C =
   ws_char_a_t, T = stlsoft::winstl_project::filesystem_traits<ws_char_a_t>]
d:/download/stlsoft/winstl_module_directory.h:390: error:
const

   C* stlsoft::winstl_project::basic_module_directory<C, T>::get_path()
const
   [with C = ws_char_a_t, T =
   stlsoft::winstl_project::filesystem_traits<ws_char_a_t>]
d:/download/stlsoft/winstl_module_directory.h: In member function `const C*
   stlsoft::winstl_project::basic_module_directory<C, T>::get_path() const
   [with C = ws_char_a_t, T =
   stlsoft::winstl_project::filesystem_traits<ws_char_a_t>]':
d:/download/stlsoft/winstl_module_directory.h:399:   instantiated from
`const C*
 stlsoft::winstl_project::basic_module_directory<C, T>::c_str() const [with
C =
ws_char_a_t, T = stlsoft::winstl_project::filesystem_traits<ws_char_a_t>]'
d:/download/stlsoft/winstl_module_directory.h:267:   instantiated from `S&
stlso
ft::winstl_project::operator<<(S&, const
stlsoft::winstl_project::basic_module_d
irectory<C, T>&) [with S = std::ostream, C = ws_char_a_t, T =
stlsoft::winstl_pr
oject::filesystem_traits<ws_char_a_t>]'
test_module_directory.cpp:10:   instantiated from here
d:/download/stlsoft/winstl_module_directory.h:391: error: cannot convert
`const

   stlsoft::winstl_project::basic_file_path_buffer<ws_char_a_t,
   stlsoft::winstl_project::processheap_allocator<char> >' to `const
   ws_char_a_t*' in return



July 18, 2004
module_filename doesn't compile either.

#include <stlsoft/winstl_module_filename.h>
#include <iostream>

int main(int argc, char * argv[])
{
 winstl::module_filename dir;
 std::cout << dir << std::endl;
 return 0;
}

error:

d:/include/stlsoft/winstl_module_filename.h: In constructor `
   stlsoft::winstl_project::basic_module_filename<C,
   T>::basic_module_filename() [with C = ws_char_a_t, T =
   stlsoft::winstl_project::filesystem_traits<ws_char_a_t>]':
test_module_directory.cpp:9:   instantiated from here
d:/include/stlsoft/winstl_module_filename.h:272: error: no matching function
   for call to `ss_static_array_size(
   stlsoft::winstl_project::basic_file_path_buffer<ws_char_a_t,
   stlsoft::winstl_project::processheap_allocator<char> >&)'
d:/include/stlsoft/winstl_module_filename.h: In member function `const C*
   stlsoft::winstl_project::basic_module_filename<C, T>::get_filename()
const
   [with C = ws_char_a_t, T =
   stlsoft::winstl_project::filesystem_traits<ws_char_a_t>]':
d:/include/stlsoft/winstl_module_filename.h:201:   instantiated from
`stlsoft::w
instl_project::basic_module_filename<C, T>::operator const C*() const [with
C =
ws_char_a_t, T = stlsoft::winstl_project::filesystem_traits<ws_char_a_t>]'
test_module_directory.cpp:10:   instantiated from here
d:/include/stlsoft/winstl_module_filename.h:323: error: cannot convert
`const
   stlsoft::winstl_project::basic_file_path_buffer<ws_char_a_t,
   stlsoft::winstl_project::processheap_allocator<char> >' to `const
   ws_char_a_t*' in return


"yxh" <yangxh98@hotmail.com> дÈëÓʼþ news:cddj8d$27sf$1@digitaldaemon.com...
> Hi, everyone
> I cannot compile the following code. I'm using g++ (GCC) 3.3.1 (mingw
> special 20030804-1) and stlsoft 1.7.1(release). It compiles ok in stlsoft
> 1.7.1 beta8.
> MSVC 7.1 generates similar error messages.
>
> code:
>
> #include <stlsoft/winstl_module_directory.h>
> #include <iostream>
>
> int main(int argc, char * argv[])
> {
>  winstl::module_directory dir;
>  std::cout << dir << std::endl;
>  return 0;
> }
>
>
> error:
>
> E:\samples\test_module_directory\test_module_directory>c++
> test_module_director
> y.cpp -I d:/download
> d:/download/stlsoft/winstl_module_directory.h: In constructor `
>    stlsoft::winstl_project::basic_module_directory<C,
>    T>::basic_module_directory(HINSTANCE__*) [with C = ws_char_a_t, T =
>    stlsoft::winstl_project::filesystem_traits<ws_char_a_t>]':
> test_module_directory.cpp:9:   instantiated from here
> d:/download/stlsoft/winstl_module_directory.h:316: error: no matching
> function
>    for call to
`stlsoft::winstl_project::basic_module_directory<ws_char_a_t,
>    stlsoft::winstl_project::filesystem_traits<ws_char_a_t> >::get_path(
>    HINSTANCE__*&,
> stlsoft::winstl_project::basic_file_path_buffer<ws_char_a_t,
>    stlsoft::winstl_project::processheap_allocator<char> >&, ss_size_t)'
> d:/download/stlsoft/winstl_module_directory.h:322: error: candidates are:
>    static ws_size_t stlsoft::winstl_project::basic_module_directory<C,
>    T>::get_path(HINSTANCE__*, ws_char_a_t*, unsigned int) [with C =
>    ws_char_a_t, T =
stlsoft::winstl_project::filesystem_traits<ws_char_a_t>]
> d:/download/stlsoft/winstl_module_directory.h:356: error:
>    static ws_size_t stlsoft::winstl_project::basic_module_directory<C,
>    T>::get_path(HINSTANCE__*, ws_char_w_t*, unsigned int) [with C =
>    ws_char_a_t, T =
stlsoft::winstl_project::filesystem_traits<ws_char_a_t>]
> d:/download/stlsoft/winstl_module_directory.h:390: error: const
>
>    C* stlsoft::winstl_project::basic_module_directory<C, T>::get_path()
> const
>    [with C = ws_char_a_t, T =
>    stlsoft::winstl_project::filesystem_traits<ws_char_a_t>]
> d:/download/stlsoft/winstl_module_directory.h: In member function `const
C*
>    stlsoft::winstl_project::basic_module_directory<C, T>::get_path() const
>    [with C = ws_char_a_t, T =
>    stlsoft::winstl_project::filesystem_traits<ws_char_a_t>]':
> d:/download/stlsoft/winstl_module_directory.h:399:   instantiated from
> `const C*
>  stlsoft::winstl_project::basic_module_directory<C, T>::c_str() const
[with
> C =
> ws_char_a_t, T = stlsoft::winstl_project::filesystem_traits<ws_char_a_t>]'
> d:/download/stlsoft/winstl_module_directory.h:267:   instantiated from `S&
> stlso
> ft::winstl_project::operator<<(S&, const
> stlsoft::winstl_project::basic_module_d
> irectory<C, T>&) [with S = std::ostream, C = ws_char_a_t, T =
> stlsoft::winstl_pr
> oject::filesystem_traits<ws_char_a_t>]'
> test_module_directory.cpp:10:   instantiated from here
> d:/download/stlsoft/winstl_module_directory.h:391: error: cannot convert
> `const
>
>    stlsoft::winstl_project::basic_file_path_buffer<ws_char_a_t,
>    stlsoft::winstl_project::processheap_allocator<char> >' to `const
>    ws_char_a_t*' in return
>
>
>


July 18, 2004
My fault, I'm afraid.

Pablo A. spotted one of these last month, and I posted an updated file.

I'm just working through all the components, and will release a 1.7.2 zip tomorrow.

Sorry for the hassles.

Matthew

"yxh" <yangxh98@hotmail.com> wrote in message news:cddj8d$27sf$1@digitaldaemon.com...
> Hi, everyone
> I cannot compile the following code. I'm using g++ (GCC) 3.3.1 (mingw
> special 20030804-1) and stlsoft 1.7.1(release). It compiles ok in stlsoft
> 1.7.1 beta8.
> MSVC 7.1 generates similar error messages.
>
> code:
>
> #include <stlsoft/winstl_module_directory.h>
> #include <iostream>
>
> int main(int argc, char * argv[])
> {
>  winstl::module_directory dir;
>  std::cout << dir << std::endl;
>  return 0;
> }
>
>
> error:
>
> E:\samples\test_module_directory\test_module_directory>c++
> test_module_director
> y.cpp -I d:/download
> d:/download/stlsoft/winstl_module_directory.h: In constructor `
>    stlsoft::winstl_project::basic_module_directory<C,
>    T>::basic_module_directory(HINSTANCE__*) [with C = ws_char_a_t, T =
>    stlsoft::winstl_project::filesystem_traits<ws_char_a_t>]':
> test_module_directory.cpp:9:   instantiated from here
> d:/download/stlsoft/winstl_module_directory.h:316: error: no matching
> function
>    for call to
`stlsoft::winstl_project::basic_module_directory<ws_char_a_t,
>    stlsoft::winstl_project::filesystem_traits<ws_char_a_t> >::get_path(
>    HINSTANCE__*&,
> stlsoft::winstl_project::basic_file_path_buffer<ws_char_a_t,
>    stlsoft::winstl_project::processheap_allocator<char> >&, ss_size_t)'
> d:/download/stlsoft/winstl_module_directory.h:322: error: candidates are:
>    static ws_size_t stlsoft::winstl_project::basic_module_directory<C,
>    T>::get_path(HINSTANCE__*, ws_char_a_t*, unsigned int) [with C =
>    ws_char_a_t, T =
stlsoft::winstl_project::filesystem_traits<ws_char_a_t>]
> d:/download/stlsoft/winstl_module_directory.h:356: error:
>    static ws_size_t stlsoft::winstl_project::basic_module_directory<C,
>    T>::get_path(HINSTANCE__*, ws_char_w_t*, unsigned int) [with C =
>    ws_char_a_t, T =
stlsoft::winstl_project::filesystem_traits<ws_char_a_t>]
> d:/download/stlsoft/winstl_module_directory.h:390: error: const
>
>    C* stlsoft::winstl_project::basic_module_directory<C, T>::get_path()
> const
>    [with C = ws_char_a_t, T =
>    stlsoft::winstl_project::filesystem_traits<ws_char_a_t>]
> d:/download/stlsoft/winstl_module_directory.h: In member function `const
C*
>    stlsoft::winstl_project::basic_module_directory<C, T>::get_path() const
>    [with C = ws_char_a_t, T =
>    stlsoft::winstl_project::filesystem_traits<ws_char_a_t>]':
> d:/download/stlsoft/winstl_module_directory.h:399:   instantiated from
> `const C*
>  stlsoft::winstl_project::basic_module_directory<C, T>::c_str() const
[with
> C =
> ws_char_a_t, T = stlsoft::winstl_project::filesystem_traits<ws_char_a_t>]'
> d:/download/stlsoft/winstl_module_directory.h:267:   instantiated from `S&
> stlso
> ft::winstl_project::operator<<(S&, const
> stlsoft::winstl_project::basic_module_d
> irectory<C, T>&) [with S = std::ostream, C = ws_char_a_t, T =
> stlsoft::winstl_pr
> oject::filesystem_traits<ws_char_a_t>]'
> test_module_directory.cpp:10:   instantiated from here
> d:/download/stlsoft/winstl_module_directory.h:391: error: cannot convert
> `const
>
>    stlsoft::winstl_project::basic_file_path_buffer<ws_char_a_t,
>    stlsoft::winstl_project::processheap_allocator<char> >' to `const
>    ws_char_a_t*' in return
>
>
>



July 18, 2004
Thanks a lot!

"Matthew Wilson" <admin.hat@stlsoft.dot.org> дÈëÓʼþ news:cdduf5$2bbe$1@digitaldaemon.com...
> My fault, I'm afraid.
>
> Pablo A. spotted one of these last month, and I posted an updated file.
>
> I'm just working through all the components, and will release a 1.7.2 zip tomorrow.
>
> Sorry for the hassles.
>
> Matthew
>
> "yxh" <yangxh98@hotmail.com> wrote in message news:cddj8d$27sf$1@digitaldaemon.com...
> > Hi, everyone
> > I cannot compile the following code. I'm using g++ (GCC) 3.3.1 (mingw
> > special 20030804-1) and stlsoft 1.7.1(release). It compiles ok in
stlsoft
> > 1.7.1 beta8.
> > MSVC 7.1 generates similar error messages.
> >
> > code:
> >
> > #include <stlsoft/winstl_module_directory.h>
> > #include <iostream>
> >
> > int main(int argc, char * argv[])
> > {
> >  winstl::module_directory dir;
> >  std::cout << dir << std::endl;
> >  return 0;
> > }
> >
> >
> > error:
> >
> > E:\samples\test_module_directory\test_module_directory>c++
> > test_module_director
> > y.cpp -I d:/download
> > d:/download/stlsoft/winstl_module_directory.h: In constructor `
> >    stlsoft::winstl_project::basic_module_directory<C,
> >    T>::basic_module_directory(HINSTANCE__*) [with C = ws_char_a_t, T =
> >    stlsoft::winstl_project::filesystem_traits<ws_char_a_t>]':
> > test_module_directory.cpp:9:   instantiated from here
> > d:/download/stlsoft/winstl_module_directory.h:316: error: no matching
> > function
> >    for call to
> `stlsoft::winstl_project::basic_module_directory<ws_char_a_t,
> >    stlsoft::winstl_project::filesystem_traits<ws_char_a_t> >::get_path(
> >    HINSTANCE__*&,
> > stlsoft::winstl_project::basic_file_path_buffer<ws_char_a_t,
> >    stlsoft::winstl_project::processheap_allocator<char> >&, ss_size_t)'
> > d:/download/stlsoft/winstl_module_directory.h:322: error: candidates
are:
> >    static ws_size_t stlsoft::winstl_project::basic_module_directory<C,
> >    T>::get_path(HINSTANCE__*, ws_char_a_t*, unsigned int) [with C =
> >    ws_char_a_t, T =
> stlsoft::winstl_project::filesystem_traits<ws_char_a_t>]
> > d:/download/stlsoft/winstl_module_directory.h:356: error:
> >    static ws_size_t stlsoft::winstl_project::basic_module_directory<C,
> >    T>::get_path(HINSTANCE__*, ws_char_w_t*, unsigned int) [with C =
> >    ws_char_a_t, T =
> stlsoft::winstl_project::filesystem_traits<ws_char_a_t>]
> > d:/download/stlsoft/winstl_module_directory.h:390: error: const
> >
> >    C* stlsoft::winstl_project::basic_module_directory<C, T>::get_path()
> > const
> >    [with C = ws_char_a_t, T =
> >    stlsoft::winstl_project::filesystem_traits<ws_char_a_t>]
> > d:/download/stlsoft/winstl_module_directory.h: In member function `const
> C*
> >    stlsoft::winstl_project::basic_module_directory<C, T>::get_path()
const
> >    [with C = ws_char_a_t, T =
> >    stlsoft::winstl_project::filesystem_traits<ws_char_a_t>]':
> > d:/download/stlsoft/winstl_module_directory.h:399:   instantiated from
> > `const C*
> >  stlsoft::winstl_project::basic_module_directory<C, T>::c_str() const
> [with
> > C =
> > ws_char_a_t, T =
stlsoft::winstl_project::filesystem_traits<ws_char_a_t>]'
> > d:/download/stlsoft/winstl_module_directory.h:267:   instantiated from
`S&
> > stlso
> > ft::winstl_project::operator<<(S&, const
> > stlsoft::winstl_project::basic_module_d
> > irectory<C, T>&) [with S = std::ostream, C = ws_char_a_t, T =
> > stlsoft::winstl_pr
> > oject::filesystem_traits<ws_char_a_t>]'
> > test_module_directory.cpp:10:   instantiated from here
> > d:/download/stlsoft/winstl_module_directory.h:391: error: cannot convert
> > `const
> >
> >    stlsoft::winstl_project::basic_file_path_buffer<ws_char_a_t,
> >    stlsoft::winstl_project::processheap_allocator<char> >' to `const
> >    ws_char_a_t*' in return
> >
> >
> >
>
>
>