Issue Details (XML | Word | Printable)

Key: STDCXX-787
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Martin Sebor
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
C++ Standard Library

[EDG eccp 3.9] error #1075 in random_shuffle.cpp example

Created: 19/Mar/08 12:43 AM   Updated: 02/Dec/08 03:05 AM
Return to search
Component/s: Examples
Affects Version/s: 4.2.1
Fix Version/s: 4.2.2

Time Tracking:
Original Estimate: 4h
Original Estimate - 4h
Remaining Estimate: 4h
Remaining Estimate - 4h
Time Spent: Not Specified
Remaining Estimate - 4h

File Attachments:
  Size
Text File Licensed for inclusion in ASF works random_shuffle.log 2008-03-19 12:50 AM Martin Sebor 13 kB
Environment: EDG eccp 3.9/Linux

Severity: Compiler Error


 Description  « Hide
The example program random_shuffle.cpp fails to compile with EDG eccp 3.9 with the following error (and many more like it):
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


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Martin Sebor made changes - 19/Mar/08 12:50 AM
Field Original Value New Value
Attachment random_shuffle.log [ 12378192 ]
Martin Sebor made changes - 02/May/08 01:21 AM
Affects Version/s trunk [ 12312676 ]
Affects Version/s 4.2.1 [ 12312690 ]
Martin Sebor made changes - 20/May/08 06:56 PM
Fix Version/s 4.2.2 [ 12313096 ]
Assignee Martin Sebor [ sebor ]
Martin Sebor made changes - 02/Dec/08 03:05 AM
Assignee Martin Sebor [ sebor ]