delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/02/18/18:07:15

From: kris AT wren DOT rpms DOT ac DOT uk (Kris Thielemans)
Subject: problems with linking templates using gcc
18 Feb 1998 18:07:15 -0800 :
Message-ID: <006901bd3c78$05eef390$1d40b392.cygnus.gnu-win32@petnt1.rpms.ac.uk>
Mime-Version: 1.0
To: <gnu-win32 AT cygnus DOT com>

Hi,

I'm trying to port my (working) C++ programs from Unix to my PC using
cygwin32. When I link, I get the following error messages:

/home/kris/PPhead/buildblock/libbuildblock.a(sinodata.o)(.data+0x0):sinodata
..cc:
 multiple definition of `__default_alloc_template<false, 0>::start_free'
c:\TEMP\cc0016191.o(.data+0x0):testPSOV.cc: first defined here
/home/kris/PPhead/buildblock/libbuildblock.a(sinodata.o)(.data+0x4):sinodata
..cc:
 multiple definition of `__default_alloc_template<false, 0>::end_free'
c:\TEMP\cc0016191.o(.data+0x4):testPSOV.cc: first defined here
/home/kris/PPhead/buildblock/libbuildblock.a(sinodata.o)(.data+0x8):sinodata
..cc:
 multiple definition of `__default_alloc_template<false, 0>::heap_size'
c:\TEMP\cc0016191.o(.data+0x8):testPSOV.cc: first defined here
/home/kris/PPhead/buildblock/libbuildblock.a(sinodata.o)(.data+0xc):sinodata
..cc:
 multiple definition of `__default_alloc_template<false, 0>::free_list'
c:\TEMP\cc0016191.o(.data+0xc):testPSOV.cc: first defined here

Is there a way out ?

One suggestion is to use egcs, which does not have the above problem.
However, I just stumbled on another bug there such that my things don't
compile with egcs...

Kris

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019