Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Templates - - - (desperate)

Templates - - - (desperate)

Scheduled Pinned Locked Moved C / C++ / MFC
c++wpfsysadminhelp
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    The_Server
    wrote on last edited by
    #1

    Hey all... IT DOESNT LINK **I dont know what to do** I create a template class like this:

    //This filename: myclass.h
    
    //This filename: myclass.cpp
    

    link error: on the func(); and the ctor =-=-=-=-= The Server :rose:

    N M 2 Replies Last reply
    0
    • T The_Server

      Hey all... IT DOESNT LINK **I dont know what to do** I create a template class like this:

      //This filename: myclass.h
      
      //This filename: myclass.cpp
      

      link error: on the func(); and the ctor =-=-=-=-= The Server :rose:

      N Offline
      N Offline
      Nemanja Trifunovic
      wrote on last edited by
      #2

      How to organize template source code[^]

      T 1 Reply Last reply
      0
      • T The_Server

        Hey all... IT DOESNT LINK **I dont know what to do** I create a template class like this:

        //This filename: myclass.h
        
        //This filename: myclass.cpp
        

        link error: on the func(); and the ctor =-=-=-=-= The Server :rose:

        M Offline
        M Offline
        Michael Dunn
        wrote on last edited by
        #3

        Quick answer: All templated code needs to be in the header file. Long answer: See the article posted in the reply above. --Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber Latest art~!@#2rDFA#@(#*%$Rfa39f3fqwf--= NO CARRIER

        1 Reply Last reply
        0
        • N Nemanja Trifunovic

          How to organize template source code[^]

          T Offline
          T Offline
          The_Server
          wrote on last edited by
          #4

          great article helped me alot thank you

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups