Header files and multiple definitions

This is a discussion on Header files and multiple definitions within the C++ Programming forums, part of the General Programming Boards category; I don't see anything there that would cause your problem. Maybe you are attempting to link to the test_support.o module ...

  1. #16
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,246
    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
    Posts
    12
    OKAY!
    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!

Page 2 of 2 FirstFirst 12
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, 09:15 PM
  3. Multiple Cpp Files
    By w4ck0z in forum C++ Programming
    Replies: 5
    Last Post: 11-14-2005, 01: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, 10:28 AM

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