Thread: How to create executables?

  1. #1
    Registered User
    Join Date
    Dec 2006
    Location
    On Earth
    Posts
    2

    How to create executables?

    Hi

    I have created a program in graphics and have created its executable file. The problem is that file is in the TC folder and it works fine...but if i copy it into some other folder it shows the first screen which is entirely in text mode n then exits without the displaying the graphics screen. I have used only inbuilt functions n header files. Please tell me how to create executables that i can use say on any computer...

    PLESE HELP!!!

  2. #2
    Registered User divineleft's Avatar
    Join Date
    Jul 2006
    Posts
    158
    what compiler are you using?

    there should be an option to compile it statically instead of linking dynamically

  3. #3
    Registered User
    Join Date
    Dec 2006
    Location
    On Earth
    Posts
    2
    ummm....i dun exactly know but i am using Turbo C v 2.01. Does that help?

    How can i find out which compiler I am using anyways?

  4. #4
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,732
    Why use just ancient compiler still???

    ssharish2005

  5. #5
    C 1337 Meshal's Avatar
    Join Date
    Nov 2006
    Posts
    70
    this is a command that will give you the name of your compiler :

    Open DOS prompt

    write
    Code:
    please give me my compiler name
    it will show you something like this
    Code:
    your compiler is ?
    ? = the name and the version of your compiler

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,664
    *shakes head*
    I suppose your host OS is XP as well?

    What is the fascination with this stone-age technology?

    Lemme guess, you used the initgraph() function, and you gave it a relative pathname to some file, and when you move the executable, that file can no longer be found?

    1. Copy the file so it's next to the executable
    2. Put an absolute path to where the file is installed on your machine.
    Neither answer is particularly great.
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can't create child windows
    By OnionKnight in forum Windows Programming
    Replies: 4
    Last Post: 04-10-2011, 04:13 PM
  2. Cannot create shared memory
    By Phoenix_Rebirth in forum C Programming
    Replies: 3
    Last Post: 11-07-2008, 11:32 AM
  3. Create new combo boxes based on items selected in preview combo box
    By RealityFusion in forum Windows Programming
    Replies: 2
    Last Post: 01-10-2007, 09:50 AM
  4. Create a file from c++ program
    By Dan17 in forum C++ Programming
    Replies: 2
    Last Post: 05-08-2006, 04:25 PM
  5. How to Create reference to an array in C++
    By shiv_tech_quest in forum C++ Programming
    Replies: 2
    Last Post: 12-20-2002, 10:01 AM