Create a header file, test.h, for template class with constructor and single no
args function return void.
Create an implementation file, test.cpp, with constructor and implementation
for the class constructor and no args function.
Create an application, main.cpp, which create the template class and call no
args function.

Problem linker error on main, unable to find constructor and no args function.

This problem only occur with multiple source file.  If all the code is place in
one file, main.cpp, that is, I cut and paste test.h, test.cpp in main.cpp and
the program then compiles and builds.


-- 
           Summary: Template Name lookup linker problem
           Product: gcc
           Version: 4.2.1
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sheldon dot robinson at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39370

Reply via email to