Thread: Compiler problem

  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    13

    Compiler problem

    Hi,
    Having a problem when I compile my C program, my compiler outputs a .obj file instead of a .exe file? how do I run my program?
    Thanks

  2. #2
    Madly in anger with you
    Join Date
    Nov 2005
    Posts
    211
    run a linker on the .obj to produce a .exe.

    Intel Core 2 Quad Q6600 @ 2.40 GHz
    3072 MB PC2-5300 DDR2
    2 x 320 GB SATA (640 GB)
    NVIDIA GeForce 8400GS 256 MB PCI-E

  3. #3
    Registered User
    Join Date
    Apr 2006
    Posts
    2,149
    What compiler are you using and how are you compiling your program?
    It is too clear and so it is hard to see.
    A dunce once searched for fire with a lighted lantern.
    Had he known what fire was,
    He could have cooked his rice much sooner.

  4. #4
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Damn beaten to the punch. Thank you bogged down network... I know masm does that, though I would hope he isn't compiling C with an assembler. Are you using an IDE as a front end to your compiler? It may be easily fixed with one check box.

  5. #5
    Registered User
    Join Date
    Apr 2008
    Posts
    13
    Hi, I am using Borland C++ version 5.02

  6. #6
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Hah! If I were taking bets I would have put my money on a Borland compiler. Its been a while for me, but I think there are two buttons, one for compiling the other for building. Compiling does just that. Building links the files into an exe. Hopefully someone who uses this exact IDE will read your thread to give you exact instructions.

  7. #7
    Registered User
    Join Date
    Apr 2008
    Posts
    13
    Quote Originally Posted by master5001 View Post
    Hah! If I were taking bets I would have put my money on a Borland compiler. Its been a while for me, but I think there are two buttons, one for compiling the other for building. Compiling does just that. Building links the files into an exe. Hopefully someone who uses this exact IDE will read your thread to give you exact instructions.
    Thanks buddy!

  8. #8
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    No problem at all.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Dev-C++ compiler problem
    By GrasshopperEsq in forum C++ Programming
    Replies: 19
    Last Post: 05-08-2008, 02:35 AM
  2. Compiler Problem
    By sitestem in forum C++ Programming
    Replies: 2
    Last Post: 04-11-2004, 03:48 PM
  3. Replies: 5
    Last Post: 12-03-2003, 05:47 PM
  4. Problem with compiler
    By knight543 in forum C++ Programming
    Replies: 4
    Last Post: 02-09-2002, 09:16 PM
  5. Please help me with this compiler problem
    By incognito in forum C++ Programming
    Replies: 1
    Last Post: 01-05-2002, 05:14 PM