Unresolves External Links

This is a discussion on Unresolves External Links within the C++ Programming forums, part of the General Programming Boards category; hey, im doing this C++ program and it consists of 3 files, the .h file, the .cpp file, and the ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    18

    Unresolves External Links

    hey, im doing this C++ program and it consists of 3 files, the .h file, the .cpp file, and the main client program. When i compile the program, i get 0 errors and 0 warnings. But then when i try to execute the program, i get 4 unresolved external errors, and it will not execute. Funny thing is that on Microsoft Visual it only does this. But on UNIX it compiles and runs smoothly. This is due in a couple days and i was hoping someone could find out how to fix that problem. Thanx. To email me, email me at. DRFUNKENSTINE@aol.com

    here is a link to my program, i posted it up so that someone can copy and paste the entire program and then compile and see what's wrong with it. Thanx a lot :-)


    http://sourcepost.sytes.net/source/s...source_id=1661

  2. #2
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,801
    Compiles and links fine for me, although my compiler did return one warning you should have seen as well:

    Code:
        newPtr->next=new ListNode;
        if(newPtr ->next ==NULL);
        {
            cout << "Cannot Allocate Memory!" << endl;
        }
    Spot the problem? (HINT: At the end of the if statement)

    What are the exact errors you are getting? We need more than just "I get errors please help me".
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  3. #3
    Registered User
    Join Date
    Jan 2002
    Posts
    18
    ok i took out the ";" but i still get the same errors.
    here they are:

    --------------------Configuration: LinkedListt - Win32 Debug--------------------
    Linking...
    LinkedListt.obj : error LNK2001: unresolved external symbol "public: __thiscall List::~List(void)" (??1List@@QAE@XZ)
    LinkedListt.obj : error LNK2001: unresolved external symbol "public: void __thiscall List:isplay(void)" (?Display@List@@QAEXXZ)
    LinkedListt.obj : error LNK2001: unresolved external symbol "public: void __thiscall List::insert(int)" (?insert@List@@QAEXH@Z)
    LinkedListt.obj : error LNK2001: unresolved external symbol "public: __thiscall List::List(void)" (??0List@@QAE@XZ)
    Debug/LinkedListt.exe : fatal error LNK1120: 4 unresolved externals
    Error executing link.exe.

    LinkedListt.exe - 5 error(s), 0 warning(s)

  4. #4
    Registered User
    Join Date
    Jan 2002
    Posts
    18
    when u try to execute it wont work

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 02:07 AM
  2. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  3. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 01:28 PM
  4. debug to release modes
    By DavidP in forum Game Programming
    Replies: 5
    Last Post: 03-20-2003, 02:01 PM
  5. Unresolved external symbols in OGL
    By Shadow12345 in forum Game Programming
    Replies: 4
    Last Post: 08-04-2002, 09:46 PM

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