This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libstdc++/6641: -D__USE_MALLOC doesn't link



>Number:         6641
>Category:       libstdc++
>Synopsis:       -D__USE_MALLOC doesn't link
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 12 17:16:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Sylvain Pion
>Release:        3.1 and 3.2
>Organization:
>Environment:
Reading specs from /u/zosma/0/prisme/spion/gcc/Linux_3.1/lib/gcc-lib/i686-pc-linux-gnu/3.1/specs
Configured with: /u/zosma/0/prisme/spion/gcc/gcc-3.1-branch/configure --disable-shared --enable-languages=c++ --prefix=/u/zosma/0/prisme/spion/gcc/Linux_3.1 --with-gnu-as --with-gnu-ld --with-as=/u/zosma/0/prisme/spion/gcc/Binutils/Linux/bin/as --with-ld=/u/zosma/0/prisme/spion/gcc/Binutils/Linux/bin/ld
Thread model: single
gcc version 3.1 20020509 (prerelease)
>Description:
Compiling the attached program with -D__USE_MALLOC
produces the following error at link.  It's a regression
from 3.0.

/tmp/ccRjeIw2.o: In function `std::__simple_alloc<int, std::__malloc_alloc_template<(int)0> >::allocate(unsigned)':
/tmp/ccRjeIw2.o(.gnu.linkonce.t._ZNSt14__simple_allocIiSt23__malloc_alloc_templateILi0EEE8allocateEj+0x16): undefined reference to `std::__malloc_alloc_template<(int)0>::allocate(unsigned)'
/tmp/ccRjeIw2.o: In function `std::__simple_alloc<int, std::__malloc_alloc_template<(int)0> >::deallocate(int*, unsigned)':
/tmp/ccRjeIw2.o(.gnu.linkonce.t._ZNSt14__simple_allocIiSt23__malloc_alloc_templateILi0EEE10deallocateEPij+0x1d): undefined reference to `std::__malloc_alloc_template<(int)0>::deallocate(void*, unsigned)'
collect2: ld returned 1 exit status
>How-To-Repeat:
// compile and link the following program with
// -D__USE_MALLOC
#include <memory>
#include <vector>

int main()
{
  std::vector<int> V(1);
  return 0;
}
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]