Thread: Linker error

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    450

    Linker error

    Can anyone figure out why the following program will not link.
    assignment3.tar
    It is fairly large directory of a kdevelop project the source is in the src directory along with makefile.

    I am simply getting error exit status 2 on linking.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Good grief man, what have you put in there - its 4MB in size

    Edit
    No idea, I just did
    g++ *.cpp
    in the src directory and it compiled just fine, except for one warning
    grade.cpp:106:3: warning: no newline at end of file

    I'd say your makefiles are broken - try recreating them.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Jul 2003
    Posts
    450
    Well thanks that sounds like the problem. There is a lot of overhead with kdevelop, the idea is to make each program able to distribute.
    I really do appreciate you taking a look. I was at school/work and my setup is newly installed so I may be having some issues with some of the tools like automake. Now it's the weekend and for fun I am going to do homework and code some more.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    I'm sure there is a clean option which could have gotten rid of the cache, object files and backup files.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Errors including <windows.h>
    By jw232 in forum Windows Programming
    Replies: 4
    Last Post: 07-29-2008, 01:29 PM
  2. Crazy errors caused by class, never seen before..
    By Shamino in forum C++ Programming
    Replies: 2
    Last Post: 06-10-2007, 11:54 AM
  3. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM
  4. pointer to array of objects of struct
    By undisputed007 in forum C++ Programming
    Replies: 12
    Last Post: 03-02-2004, 04:49 AM
  5. Linking error
    By DockyD in forum C++ Programming
    Replies: 10
    Last Post: 01-20-2003, 05:27 AM