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

[Bug c++/51665] undefined reference when passing static const int member to template method


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


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