[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-stdcxx-dev
Subject:    [jira] Commented: (STDCXX-57) [gcc 4.0.2] explicit instantiation/extern template unsats on symbols d
From:       "Martin Sebor (JIRA)" <jira () apache ! org>
Date:       2005-10-25 0:20:59
Message-ID: 25997996.1130199659805.JavaMail.jira () ajax ! apache ! org
[Download RAW message or body]

    [ http://issues.apache.org/jira/browse/STDCXX-57?page=comments#action_12355677 ] 

Martin Sebor commented on STDCXX-57:
------------------------------------

This is caused by the following gcc bug:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24511

> [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
> Assignee: 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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic