Thread: I'm just starting and I need some help linking

  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    3

    I'm just starting and I need some help linking

    I have got Dev-C++ and I have compiled a few programs into .o files, but now i don't know how to turn them into .exe files. I've just started with C, but I've done quite a few programs in that butchered BASIC found on the TI calcs, and I've worked with python, but now I'm ready to make actal executable programs. Any help is appreciated.

  2. #2
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332
    Does DevC++ have a command line switch for HELP?

    If you are getting .o files now, and you are not specifying an output file name, perhaps there is an output file name switch that you can supply.

    Todd
    Mainframe assembler programmer by trade. C coder when I can.

  3. #3
    Registered User
    Join Date
    Jul 2008
    Posts
    3
    Nope, i can't specify an output name, and it's not giving me an exe file anywhere.i'm clicking on compile or compile ad run but neither produce results, just the o file. C for dummies says i should be able to use the command gcc program.o -o program formula to get DOS to convert them, but my comp says gcc isn't available, even though i know it is. can i not do this with vista?

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    I think the option you want is "build".
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Registered User
    Join Date
    Jul 2008
    Posts
    3
    I've looked around and I can find "Build." Where is it located?

Popular pages Recent additions subscribe to a feed