gcc 4 compatible problem
Tao Ma
tm334@ece.msstate.edu
Sat Oct 14 01:20:00 GMT 2006
Hi, guys:
Our template specification runs well under gcc3.23 but gets "Multiple
Definition" error under gcc3.4 or gcc 4. For some reason, we can't make
the specified methods inline as c++ standard suggests.
Please help to check the attached code sample and give your opinion.
Thank you very much!
test_template.tar.gz
[run "./compile.sh" under gcc3.2.3 will get the correct result.]
[run "./compile.sh" under gcc3.4 and gcc4.* will get "Multiple
Definition" error.]
Kind Regards,
Tao
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_template.tar.gz
Type: application/gzip
Size: 2659 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20061014/856cea91/attachment.gz>
More information about the Gcc-help
mailing list