Compiling C++ program with source files and .o files

Discussion in 'OT Technology' started by RabidEvil, May 28, 2005.

  1. RabidEvil

    RabidEvil Guest

    Hello

    If I hae a bunch of .cc files and .h files (source files), as well as some .o files (object files) how can I compile these together into a .exe file? I have tried using Dev-Cpp and also g++. I just get errors about files missing (presumably the files that the .o files were generated from).

    Thanks in advance for any help you guys can offer.
     
  2. turbo91

    turbo91 New Member

    Joined:
    Jun 14, 2002
    Messages:
    2,521
    Likes Received:
    0
    Location:
    San Diego, CA
    g++ -o outputname input1.cc input2.cc input3.cc input4.o input5.o ... etc.
     

Share This Page