Thread: error in executable file!

  1. #1
    Registered User
    Join Date
    Sep 2012
    Posts
    1

    error in executable file!

    i got a exectuable file from my friend and it does not work in my pc ..
    it shows a error as follows
    BGI ERROR:GRAPHICS NOT INITIALIZED (USE 'initgraph')

    how do i correct the error?
    thanks

  2. #2
    Registered User ledow's Avatar
    Join Date
    Dec 2011
    Posts
    435
    You get him to initialise the graphics properly using initgraph.

    If he made the program, only he can change it.

    - Compiler warnings are like "Bridge Out Ahead" warnings. DON'T just ignore them.
    - A compiler error is something SO stupid that the compiler genuinely can't carry on with its job. A compiler warning is the compiler saying "Well, that's bloody stupid but if you WANT to ignore me..." and carrying on.
    - The best debugging tool in the world is a bunch of printf()'s for everything important around the bits you think might be wrong.

  3. #3
    Registered User
    Join Date
    May 2010
    Posts
    4,632
    Actually he will either need to provide you with the Borland Graphics Interface (BGI) files or statically compile these libraries into the executable.

    Jim

  4. #4
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    I see your friend is writing code for ENIAC...
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Executable file not working
    By jdmarsh2005 in forum C Programming
    Replies: 4
    Last Post: 03-27-2009, 02:04 PM
  2. Executable file
    By Mak in forum Linux Programming
    Replies: 2
    Last Post: 03-27-2004, 03:16 AM
  3. Executable File
    By Drew in forum C++ Programming
    Replies: 5
    Last Post: 08-29-2003, 06:08 PM
  4. EXEcutable file
    By planet_abhi in forum C Programming
    Replies: 2
    Last Post: 11-06-2002, 03:50 PM
  5. error in executable
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 07-06-2002, 08:52 PM

Tags for this Thread