This is the mail archive of the gcc-help@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]

gcc 4 compatible problem


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

Attachment: test_template.tar.gz
Description: application/gzip


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