Thread: Cannot Execute a C++ Program

  1. #1
    Registered User
    Join Date
    Oct 2001

    Cannot Execute a C++ Program

    I am a beginner and I am using TCC. I have this code which i managed to compile. But when I try to run it it gives me the following errors:

    Files: Tcdef.dpr cannot be created
    Files Tcdef.dsk cannot be created.

    Can somebody please help.
    Thank you very much


  2. #2
    Registered User
    Join Date
    Aug 2001
    I've never heard of tcc, but in any case you'll have to be more specific. Post some code. There's any number of reasons files can't be created. If you have successfully compiled, the program should run, generally speaking, although not necessarily correctly. Sounds more like compile or linking errors.

  3. #3
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    From memory, and I'm going back a bit here, Turbo C writes the project settings to the .dpr file and your desktop settings to the .dsk file. These are not files you create or modify, rather the IDE looks after them. ISTR it writes them when you exit the IDE.

    If the IDE cannot write these files, I would have a look at your installation/IDE settings and make sure you are not trying to write to somewhere that doesn't exist, or that you have no access to.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. a program that will call an execute but with arguments
    By what3v3r in forum C++ Programming
    Replies: 3
    Last Post: 01-19-2006, 09:44 PM
  2. Need help on code to execute the program
    By hibmem10 in forum C++ Programming
    Replies: 6
    Last Post: 12-24-2005, 01:42 PM
  3. Can't execute my program
    By bahruddina in forum C Programming
    Replies: 4
    Last Post: 07-13-2004, 10:19 PM
  4. simple frontend program problem
    By gandalf_bar in forum Linux Programming
    Replies: 16
    Last Post: 04-22-2004, 06:33 AM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM