Thread: external errors on project files? Know what they are but why are they happening here.

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    55

    external errors on project files? Know what they are but why are they happening here.

    Hi all,

    I have created a template linked list thingy and it works perfectly. However, when i split the file up to only leave the list functionalty in the list.cpp and the main stuff in a main.cpp i get external erros on all calls to the functions in list.cpp. This should really be basic stuff, as it is all in a project and i include the appropriate header files etc.

    I have attached the files if anyone could try it on there compiler?? Maybe i have stared myself blind on something.

    Thanks in advanced.

    G'n'R

  2. #2
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    Unless your compiler supports the export keyword, you'll have to include all the template implementation in the header.
    zen

  3. #3
    Registered User
    Join Date
    Aug 2001
    Posts
    55
    hmm..i am using Visual Studio 6.0 so it should do it. But i will check it out.

    Cheers
    G'n'R

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 04-27-2006, 10:39 AM
  2. Question About External Files (Beginner)
    By jamez05 in forum C Programming
    Replies: 0
    Last Post: 08-11-2005, 07:05 AM
  3. Music in C++ and external files
    By yucaplan in forum C++ Programming
    Replies: 1
    Last Post: 05-20-2005, 11:00 AM
  4. newbie q: include files outside the project dir?
    By BrianK in forum Windows Programming
    Replies: 3
    Last Post: 06-29-2004, 03:45 PM
  5. Last 2 errors in project
    By Intimd8r in forum C Programming
    Replies: 1
    Last Post: 12-10-2001, 06:09 PM