Templates and Linking
Mike Legg
etlmllg@etlxdmx.ericsson.se
Fri Aug 29 04:08:00 GMT 1997
Hi,
Does anyone know how to get around this error which is reported during
linking when using the STL:
Table.o(.data+0xc):Table.cc: multiple definition of
`__default_alloc_template<false, 0>::free_list'
Main.o(.data+0x0):Main.cc: first defined here
The exact same code compiles fine on gcc2.7.2 with djgpp. Is there any
reason why template intansiation is different?
Attached is a trivial example.
regards,
Mike.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Main.cc
Type: text/x-c
Size: 187 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/19970829/9547647f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Table.cc
Type: text/x-c
Size: 365 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/19970829/9547647f/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Table.h
Type: text/x-c++
Size: 306 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/19970829/9547647f/attachment-0002.bin>
More information about the Cygwin
mailing list