You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2008/03/19 01:50:24 UTC

[jira] Updated: (STDCXX-787) [EDG eccp 3.9] error #1075 in random_shuffle.cpp example

     [ https://issues.apache.org/jira/browse/STDCXX-787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor updated STDCXX-787:
--------------------------------

    Attachment: random_shuffle.log

Attached the complete build log for the example program.

> [EDG eccp 3.9] error #1075 in random_shuffle.cpp example
> --------------------------------------------------------
>
>                 Key: STDCXX-787
>                 URL: https://issues.apache.org/jira/browse/STDCXX-787
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Examples
>    Affects Versions: trunk
>         Environment: EDG eccp 3.9/Linux
>            Reporter: Martin Sebor
>            Priority: Minor
>         Attachments: random_shuffle.log
>
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> The example program [random_shuffle.cpp|http://svn.apache.org/repos/asf/stdcxx/trunk/examples/manual/random_shuffle.cpp] fails to compile with EDG eccp 3.9 with the following error (and many more like it):
> {noformat}
> eccp -c -I/home/sebor/stdcxx/include/ansi -D_RWSTDDEBUG    -I/home/sebor/stdcxx/include -I/build/sebor/stdcxx-eccp-3.9-11s/include -I/home/sebor/stdcxx/examples/include  -A -x --template_directory=/build/sebor/stdcxx-eccp-3.9-11s/lib -g   --display_error_number --remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815   /home/sebor/stdcxx/examples/manual/random_shuffle.cpp
> eccp random_shuffle.o -o random_shuffle --template_directory=/build/sebor/stdcxx-eccp-3.9-11s/lib    -L/build/sebor/stdcxx-eccp-3.9-11s/lib  -lstd11s  -lm 
> C++ prelinker: std::random_shuffle<__rw::__rw_debug_iter<std::basic_string<double, std::char_traits<double>, std::allocator<double>>, double *, double *>, unsigned int (*)(unsigned int)>(T1, T1, T2 &) assigned to file random_shuffle.o
> C++ prelinker: std::basic_string<double, std::char_traits<double>, std::allocator<double>>::basic_string(const double *, const double *, const std::allocator<double>&) assigned to file random_shuffle.o
> C++ prelinker: std::basic_string<double, std::char_traits<double>, std::allocator<double>>::_C_null_ref assigned to file random_shuffle.o
> C++ prelinker: std::basic_string<double, std::char_traits<double>, std::allocator<double>>::_C_get_rep(unsigned int, unsigned int) assigned to file random_shuffle.o
> C++ prelinker: executing: /usr/local/eccp-3.9/bin/eccp -c -I/home/sebor/stdcxx/include/ansi -D_RWSTDDEBUG -I/home/sebor/stdcxx/include -I/build/sebor/stdcxx-eccp-3.9-11s/include -I/home/sebor/stdcxx/examples/include -A -x --template_directory=/build/sebor/stdcxx-eccp-3.9-11s/lib -g --display_error_number --remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815 /home/sebor/stdcxx/examples/manual/random_shuffle.cpp
> "/home/sebor/stdcxx/include/string.cc", line 125: error #1075: function
>           "std::basic_string<_CharT, _Traits, _Allocator>::basic_string(const
>           std::basic_string<_CharT, _Traits, _Allocator> &,
>           _Allocator::size_type, _Allocator::size_type, const _Allocator &)"
>           already defined during compilation of
>           "/home/sebor/stdcxx/src/ti_string.cpp"
>   basic_string (const basic_string &__s, size_type __pos, size_type __n,
>   ^
>           detected during compilation of secondary translation unit
>                     "/home/sebor/stdcxx/src/export.cpp"
> ...
> "/home/sebor/stdcxx/include/string.cc", line 79: error #1075: function
>           "std::basic_string<_CharT, _Traits, _Allocator>::_C_get_rep" already
>           defined during compilation of "/home/sebor/stdcxx/src/ti_string.cpp"
>   _C_get_rep (size_type __cap, size_type __len)
>   ^
>           detected during compilation of secondary translation unit
>                     "/home/sebor/stdcxx/src/export.cpp"
> 22 errors detected in the compilation of "/home/sebor/stdcxx/examples/manual/random_shuffle.cpp".
> gcc: random_shuffle.o: No such file or directory
> make: *** [random_shuffle] Error 2
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.