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

This is a discussion on external errors on project files? Know what they are but why are they happening here. within the C++ Programming forums, part of the General Programming Boards category; Hi all, I have created a template linked list thingy and it works perfectly. However, when i split the file ...

  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
    Attached Files Attached Files

  2. #2
    zen
    zen is offline
    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, 05:09 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21