Thread: Dev-C++ wont let me compile

  1. #1
    Registered User
    Join Date
    Apr 2006
    Posts
    4

    Dev-C++ wont let me compile

    when i try to compile my stuff, it just says the system cannot find the file specified. Also heres the code for more details:

    Code:
    #include <stdio.h>
    
    int main()
    {
      printf( "I am alive!  Beware.\n" );
      getchar();
      return 0;
    }
    and also when i open Dev-C++, it shows a window, heres a screenie:
    http://img101.imageshack.us/img101/9...zzzzzzz9qv.png

    and BTW i also am trying to learn to make psp homebrew, while learning regular C (coz i need to) so i use CYGWIN to compile my EBOOT.PBPs and i have pspsdk set on it, so im forced to use Dev-C++

    P.S. the code is from a tutorial i am using on this site. You probably know that, but just to make sure.

  2. #2
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    You said that screenshot comes up when you open the IDE or when you try to compile? Maybe it installing improperly. Try reinstalling.
    Sent from my iPadŽ

  3. #3
    Registered User
    Join Date
    Mar 2006
    Posts
    725
    NOT problem with code. Seems to be a gcc install problem. Try using gcc from the command line ("<gcc-path> <input file> -o <output file> -Wall"). If it doesn't work either, reinstall Dev-C++.
    Code:
    #include <stdio.h>
    
    void J(char*a){int f,i=0,c='1';for(;a[i]!='0';++i)if(i==81){
    puts(a);return;}for(;c<='9';++c){for(f=0;f<9;++f)if(a[i-i%27+i%9
    /3*3+f/3*9+f%3]==c||a[i%9+f*9]==c||a[i-i%9+f]==c)goto e;a[i]=c;J(a);a[i]
    ='0';e:;}}int main(int c,char**v){int t=0;if(c>1){for(;v[1][
    t];++t);if(t==81){J(v[1]);return 0;}}puts("sudoku [0-9]{81}");return 1;}

  4. #4
    Registered User
    Join Date
    Apr 2006
    Posts
    4
    yay it works

    i just installed the wrong version (the one w/o compiler)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compile problem on linux
    By cnb in forum C Programming
    Replies: 3
    Last Post: 09-29-2008, 04:14 AM
  2. auto_ptr assignment compile error
    By George2 in forum C++ Programming
    Replies: 7
    Last Post: 04-01-2008, 02:44 AM
  3. Compile as you type
    By Rocketmagnet in forum A Brief History of Cprogramming.com
    Replies: 33
    Last Post: 12-07-2006, 01:36 PM
  4. Dev C++ Won't Compile
    By mburt in forum Windows Programming
    Replies: 8
    Last Post: 08-21-2006, 11:14 PM
  5. Compile crashes certain windows
    By Loduwijk in forum C++ Programming
    Replies: 5
    Last Post: 03-26-2006, 09:05 PM