Thread: *.obj files?

  1. #1
    Registered User
    Join Date
    Jan 2002

    *.obj files?

    what are these obj files cl.exe puts out when i compile?

    are they needed?

  2. #2
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    They are intermediate files in compilation. They save time in compiling projects. If you delete them, the next time you compile your project, they will be replaced.
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  3. #3
    Registered User matheo917's Avatar
    Join Date
    Sep 2001
    if you are familiar with the process of making an "executable" file in c++ then this explanation will be easy to understand...

    when you finish writing your source code you save it as ...... FileNameGoesHere.cpp........ the next step is to compile it.....your compiler at that time makes an object "FileNameGoesHere.obj" file from the ".cpp" source code file.........Next step is Invoking a Linker, who makes an executable ".exe" file from your object file ".obj".........

    After your executable file ".exe" is created, then you no longer need the object nor source code can run your program by just "double clicking at it" (considering you are in windows"

    The ".obj" file is a intermediate form........kind a like a "temporary file"......

    Hope this helped.........


  4. #4
    Registered User
    Join Date
    Jan 2002
    thx helped out

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Error opening files in a different dir
    By Ozzie in forum C++ Programming
    Replies: 3
    Last Post: 10-09-2008, 06:55 AM
  2. Working with muliple source files
    By Swarvy in forum C++ Programming
    Replies: 1
    Last Post: 10-02-2008, 08:36 AM
  3. Folding@Home Cboard team?
    By jverkoey in forum A Brief History of
    Replies: 398
    Last Post: 10-11-2005, 08:44 AM
  4. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 03:30 PM
  5. .obj files?
    By Goku-ssj in forum Game Programming
    Replies: 3
    Last Post: 09-15-2002, 04:14 AM