*.obj files?

This is a discussion on *.obj files? within the C++ Programming forums, part of the General Programming Boards category; what are these obj files cl.exe puts out when i compile? are they needed?...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    27

    *.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
    Location
    NJ
    Posts
    1,141
    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
    Posts
    279
    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 files.....you 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.........


    Regards,
    matheo917

  4. #4
    Registered User
    Join Date
    Jan 2002
    Posts
    27
    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, 07:55 AM
  2. Working with muliple source files
    By Swarvy in forum C++ Programming
    Replies: 1
    Last Post: 10-02-2008, 09:36 AM
  3. Folding@Home Cboard team?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 398
    Last Post: 10-11-2005, 09:44 AM
  4. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 04:30 PM
  5. .obj files?
    By Goku-ssj in forum Game Programming
    Replies: 3
    Last Post: 09-15-2002, 05:14 AM

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