[Bug c++/51665] undefined reference when passing static const int member to template method
gcc-bugzilla at bluespirit dot la
gcc-bugzilla@gcc.gnu.org
Fri Dec 23 13:41:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51665
--- Comment #1 from Karl Krach <gcc-bugzilla at bluespirit dot la> 2011-12-23 13:38:22 UTC ---
g++ *.cpp --save-temps
MyClass.o:MyClass.cpp:function MyClass::doSomething(): error: undefined
reference to 'MyClass::M_SOME_CONSTANT'
collect2: ld returned 1 exit status
More information about the Gcc-bugs
mailing list