Thread: Header files and multiple definitions

  1. #16
    Registered User
    Join Date
    Sep 2004
    I don't see anything there that would cause your problem. Maybe you are attempting to link to the test_support.o module multiple times? This can be verified if you post the complete output from your compiler.

    As an unrelated note, you are including stdlib twice (once as cstdlib, and once as stdlib.h). You should get rid of the stdlib.h and change stdio.h to cstdio.

  2. #17
    Registered User
    Join Date
    Jul 2009
    Sorry everyone. Turned out I had some funky stuff in my Makefile. It was stuff that other people in this lab made, and I didnt know enough about Makefiles to know that it was causing a problem.

    Thanks for your patience with me though!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. header files and multiple files
    By Dedalus in forum C Programming
    Replies: 5
    Last Post: 06-16-2009, 09:21 AM
  2. Multiple header files , cout undelcared probem
    By rainmanddw in forum C++ Programming
    Replies: 6
    Last Post: 11-22-2005, 10:15 PM
  3. Multiple Cpp Files
    By w4ck0z in forum C++ Programming
    Replies: 5
    Last Post: 11-14-2005, 02:41 PM
  4. Linker errors - Multiple Source files
    By nkhambal in forum C Programming
    Replies: 3
    Last Post: 04-24-2005, 02:41 AM
  5. Conflicting Header Files
    By X PaYnE X in forum Windows Programming
    Replies: 17
    Last Post: 01-08-2004, 11:28 AM