Thread: Compiling multiple files

  1. #1
    Registered User
    Join Date
    Nov 2004
    Posts
    1

    Compiling multiple files

    How do you compile your program when it has lots of different files to compile? What I mean by that is the program i want to compile has 'file1.cpp' 'file2.dsw' 'file3.opt' 'file4.dsp' 'file5.h' and i need to compile all those together to make the program, Im useing MinGW compiler what would i type to do this?

    Sorry if I didnt make any sense.

  2. #2
    Registered User
    Join Date
    Jun 2004
    Posts
    722
    dsw, dsp are Microsoft Visual C++ 6.0 project files. To use them you need MS VC++6.
    the file1.cpp IS the source code, the C++. You may easily open it with any text editor, or IDE and edit the code. To compile you may use g++, borland's compilers, or MS compilers, but make sure the code is compatible with those compilers.
    You only need the *.c, *.cpp, *.h, *.hpp files to create your program. Any other files are only auxiliaries, to make you life easier.

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. Compiling Multiple files in a single Project
    By pdwivedi in forum C Programming
    Replies: 2
    Last Post: 10-08-2007, 05:14 AM
  3. Windows shell commands - multiple files
    By Magos in forum Tech Board
    Replies: 3
    Last Post: 02-28-2006, 01:56 AM
  4. Linker errors - Multiple Source files
    By nkhambal in forum C Programming
    Replies: 3
    Last Post: 04-24-2005, 02:41 AM
  5. opening multiple files sequentially
    By moonwalker in forum C Programming
    Replies: 5
    Last Post: 08-20-2002, 09:57 PM