gcc 4 compatible problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux