incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Created: (STDCXX-57) [gcc 4.0.2] explicit instantiation/extern template unsats on symbols defined later
Date Tue, 25 Oct 2005 00:20:58 GMT
[gcc 4.0.2] explicit instantiation/extern template unsats on symbols defined later
----------------------------------------------------------------------------------

         Key: STDCXX-57
         URL: http://issues.apache.org/jira/browse/STDCXX-57
     Project: STDCXX
        Type: Bug
  Components: Build  
    Versions: 4.1.2    
 Environment: gcc 4.0.2
    Reporter: Martin Sebor
 Assigned to: Martin Sebor 
    Priority: Critical
     Fix For: 4.1.3


Linking with gcc 4.0.2 gives many unsats for member functions of class templates explicitly
instantiated in the library. For example:

gcc -c -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG   -pthreads -D_RWSTD_USE_CONFIG
-I/build/sebor/gcc-4.0.2-15s/include -I/build/sebor/dev/stdlib/include -I/build/sebor/dev/stdlib/examples/include
 -pedantic -nostdinc++ -g  -Wall -W -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long
 /build/sebor/dev/stdlib/examples/tutorial/alg7.cpp

gcc alg7.o -o alg7 -pthreads -L/build/sebor/gcc-4.0.2-15s/lib -lstd15s  -lsupc++ -lm
Undefined                       first referenced
 symbol                             in file
std::basic_string<char, std::char_traits<char>, std::allocator<char> >::substr(unsigned
int, unsigned int) constalg2.o
ld: fatal: Symbol referencing errors. No output written to alg2
collect2: ld returned 1 exit status
make: *** [alg2] Error 1


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message