public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Liam Fitzpatrick" <liam@iName.com>
To: <gnu-win32@cygnus.com>
Subject: Re: [ANNOUNCE] mingw32 GCC 2.8.0 based toolchain available.
Date: Thu, 22 Jan 1998 09:32:00 -0000	[thread overview]
Message-ID: <004b01bd2736$e85df1b0$0301010f@prqadub3.prqa.ie> (raw)

>I upgraded the tools on my mingw32 page:
>
>  http://agnes.dida.physik.uni-essen.de/~janjaap/mingw32/index.html
>
>to the newly released GCC 2.8.0


I'm having problems with templates and libstdc++ :-{ One example is using
string:
e.g.
  #include <string>
  int main()
  {
    string s("Hello World!");
    return 0;
  }

Using the command "g++ teststring.cpp" gives lots of multiple definitions at
link time (shown below). The same errors result when -fno-implicit-templates
is specified.

Any ideas?

Environment variables include:
PATH=c:\mingw32\bin;C:\WINNT\SYSTEM32;C:\WINNT;C:\PROGRA~1\MICROS~1\Office;c
:\program
files\cvs;C:\gnuwin32\b18\H-i386-cygwin32\bin;C:\gnuwin32\b18\tcl\bin;C:\IBL
OCAL\BIN;C:\IDAPI;
CPLUS_INCLUDE_PATH=C:\MINGW32\include\g++;C:\MINGW32\include
C_INCLUDE_PATH=C:\MINGW32\include
GCC_EXEC_PREFIX=C:\MINGW32\lib\gcc-lib\
GDBTK_LIBRARY=C:/gnuwin32/b18/share/gdbtcl
LIBRARY_PATH=C:\MINGW32\lib
TCL_LIBRARY=C:/gnuwin32/b18/tcl/lib/tcl7.6

g++ -v displays:
Reading specs from C:\MINGW32\lib\gcc-lib\i386-mingw32\2.8.0\specs
gcc version 2.8.0

g++ teststring.cpp displays:
C:\MINGW32\lib/libstdc++.a(cstrmain.o)(.text+0x1ef8):sinst.cc: multiple
definition of `basic_string<char, string_char_traits<char>,
__default_alloc_template<false, 0> >::~basic_string(void)'
C:\TEMP\cc0001851.o(.text$_$_t12basic_string3ZcZt18string_char_traits1ZcZt24
__default_alloc_template2b0i0+0x0):teststring.cc: first defined here
C:\MINGW32\lib/libstdc++.a(cstrmain.o)(.text+0x1ff0):sinst.cc: multiple
definition of `basic_string<char, string_char_traits<char>,
__default_alloc_template<false, 0> >::basic_string(char const *)'
C:\TEMP\cc0001851.o(.text$__t12basic_string3ZcZt18string_char_traits1ZcZt24_
_default_alloc_template2b0i0PCc+0x0):teststring.cc: first defined here
C:\MINGW32\lib/libstdc++.a(cstrmain.o)(.text+0x2050):sinst.cc: multiple
definition of `basic_string<char, string_char_traits<char>,
__default_alloc_template<false, 0> >::assign(char const *)'
C:\TEMP\cc0001851.o(.text$assign__t12basic_string3ZcZt18string_char_traits1Z
cZt24__default_alloc_template2b0i0PCc+0x0):teststring.cc: first defined here
C:\MINGW32\lib/libstdc++.a(cstrmain.o)(.text+0x20c4):sinst.cc: multiple
definition of `basic_string<char, string_char_traits<char>,
__default_alloc_template<false, 0> >::assign(char const *, unsigned int)'
C:\TEMP\cc0001851.o(.text$assign__t12basic_string3ZcZt18string_char_traits1Z
cZt24__default_alloc_template2b0i0PCcUi+0x0):teststring.cc: first defined
here
C:\MINGW32\lib/libstdc++.a(cstrmain.o)(.text+0x22b4):sinst.cc: multiple
definition of
`grab__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp
late2b0i03Rep'
C:\TEMP\cc0001851.o(.text$grab__Q2t12basic_string3ZcZt18string_char_traits1Z
cZt24__default_alloc_template2b0i03Rep+0x0):teststring.cc: first defined
here
C:\MINGW32\lib/libstdc++.a(cstrmain.o)(.text+0x24a4):sinst.cc: multiple
definition of
`data__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp
late2b0i03Rep'
C:\TEMP\cc0001851.o(.text$data__Q2t12basic_string3ZcZt18string_char_traits1Z
cZt24__default_alloc_template2b0i03Rep+0x0):teststring.cc: first defined
here
C:\MINGW32\lib/libstdc++.a(cstrmain.o)(.text+0x24b0):sinst.cc: multiple
definition of
`release__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_t
emplate2b0i03Rep'
C:\TEMP\cc0001851.o(.text$release__Q2t12basic_string3ZcZt18string_char_trait
s1ZcZt24__default_alloc_template2b0i03Rep+0x0):teststring.cc: first defined
here
C:\MINGW32\lib/libstdc++.a(cstrmain.o)(.text+0x2538):sinst.cc: multiple
definition of `basic_string<char, string_char_traits<char>,
__default_alloc_template<false, 0> >::rep(void) const'
C:\TEMP\cc0001851.o(.text$rep__Ct12basic_string3ZcZt18string_char_traits1ZcZ
t24__default_alloc_template2b0i0+0x0):teststring.cc: first defined here

Thanks,
Liam
----
Liam Fitzpatrick <liam@iname.com>
Programming Research Ltd. 14 Clyde Road, Dublin 4
Tel: +353-1-6671088  Fax: +353-1-6671610  http://www.prqa.co.uk



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

             reply	other threads:[~1998-01-22  9:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-22  9:32 Liam Fitzpatrick [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-01-18 16:07 Jan-Jaap van der Heijden
1998-01-20 14:58 ` Paul Garceau
1998-01-24 15:34   ` Jan-Jaap van der Heijden

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='004b01bd2736$e85df1b0$0301010f@prqadub3.prqa.ie' \
    --to=liam@iname.com \
    --cc=gnu-win32@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).