Thread: Dev C++ help please!!!

  1. #1
    Registered User caroundw5h's Avatar
    Join Date
    Oct 2003
    Posts
    751

    Dev C++ help please!!!

    I don't know what is wrong. since a couple of days ago my dev C++ compiler wasn't working.

    I was using 4.9.8.0 and i tried to upgrade to 4.9.8.5 and when it downloaded it started giving me all these error messages like these
    Code:
    dev c++ 4.9.8.0 compile log
    
    
    
    
    
    
    Compiler: Default compiler
    Building Makefile: "C:\Documents and Settings\Owner\Desktop\Makefile.win"
    Executing  make...
    make.exe -f "C:\Documents and Settings\Owner\Desktop\Makefile.win" all
    Execution terminated
    
    
    second error:
    
    
    
    
    
    
    
                                  /* Chapter 3 - Program 2 - DOWHILE.C */
    /* This is an example of a do-while loop */
    
    #include <stdio.h>
    
    int main()
    {
    int i;
    
       i = 0;
       do 
       {
          printf("The value of i is now %d\n", i);
          i = i + 1;
       } while (i < 5);
    
       return 0;
    }
    
    
    
    /* Result of execution
    
    The value of i is now 0
    The value of i is now 1
    The value of i is now 2
    The value of i is now 3
    The value of i is now 4 */
    
    /* python code 
    
    for number in range(11):
       print "The value is now %2d: " % (number)
       
    */
    
    
                                  /* Chapter 3 - Program 2 - DOWHILE.C */
    /* This is an example of a do-while loop */
    
    #include <stdio.h>
    
    int main()
    {
    int i;
    
       i = 0;
       do 
       {
          printf("The value of i is now %d\n", i);
          i = i + 1;
       } while (i < 5);
    
       return 0;
    }
    
    
    
    /* Result of execution
    
    The value of i is now 0
    The value of i is now 1
    The value of i is now 2
    The value of i is now 3
    The value of i is now 4 */
    
    /* python code 
    
    for number in range(11):
       print "The value is now %2d: " % (number)
       
    */                              /* Chapter 3 - Program 2 - DOWHILE.C */
    /* This is an example of a do-while loop */
    
    #include <stdio.h>
    
    int main()
    {
    int i;
    
       i = 0;
       do 
       {
          printf("The value of i is now %d\n", i);
          i = i + 1;
       } while (i < 5);
    
       return 0;
    }
    
    
    
    /* Result of execution
    
    The value of i is now 0
    The value of i is now 1
    The value of i is now 2
    The value of i is now 3
    The value of i is now 4 */
    
    /* python code 
    
    for number in range(11):
       print "The value is now %2d: " % (number)
       
    */
    
    
    gives  me: stdio.h: no such file or directory
    i don't understand. I installed and ran 4.0 but when i upgraded to 4.01 it started giving me the same errors as above.

    I seems to compile fine(4.9.8.5) but its like the linker doesn't handle the object code. I also gives me errors like: unable to open bin.


    I am on windows xp and i did a system restore and downloaded it again, but i still go theses errors.

    Please help me i am really frustrated and i need a compiler. I am a biginner in C and i like the UI of Dev. What are my other options and/or what can i do to fix this problem. pleazzzzzze!!!

  2. #2
    Registered User sean345's Avatar
    Join Date
    Mar 2002
    Posts
    346
    The program compiles and runs fine for me using Lcc-Win32 available at http://www.cs.virginia.edu/~lcc-win32/

    Of course it seems like you pasted it several times so I just compiled this much:
    Code:
    #include <stdio.h>
    
    int main()
    {
    int i;
    
       i = 0;
       do
       {
          printf("The value of i is now %d\n", i);
          i = i + 1;
       } while (i < 5);
    
       return 0;
    }
    
    
    
    /* Result of execution
    
    The value of i is now 0
    The value of i is now 1
    The value of i is now 2
    The value of i is now 3
    The value of i is now 4 */
    
    /* python code
    
    for number in range(11):
       print "The value is now %2d: " % (number)
    
    */
    - Sean
    If cities were built like software is built, the first woodpecker to come along would level civilization.
    Black Frog Studios

  3. #3
    Registered User caroundw5h's Avatar
    Join Date
    Oct 2003
    Posts
    751
    I 'm not sure what the problem is sean. I get those error messages still. It is easier my system - winxp - or something with dev c++. I'm thinking its my system. Cause others have said that dev works for them.

    *scratches his head** i really don't know. but thanks for the link. I was just spoilt with the dev c++ IDE.

  4. #4
    Registered User
    Join Date
    Oct 2001
    Posts
    2,934
    Did you uninstall the old version before installing the new version? If not, is there a way to uninstall DevC++? If yes, you might try uninstalling it first, then install the new version.

  5. #5
    Registered User sean345's Avatar
    Join Date
    Mar 2002
    Posts
    346
    I use Win XP and I just compiled and ran using Dev-C++ 4.9.8.5 and it worked just fine. Are you giving it any strange linker settings or commands?

    - Sean
    If cities were built like software is built, the first woodpecker to come along would level civilization.
    Black Frog Studios

  6. #6
    The Defective GRAPE Lurker's Avatar
    Join Date
    Feb 2003
    Posts
    949
    What specific errors are you getting?
    Do not make direct eye contact with me.

  7. #7
    Registered User caroundw5h's Avatar
    Join Date
    Oct 2003
    Posts
    751
    Originally posted by swoopy
    Did you uninstall the old version before installing the new version? If not, is there a way to uninstall DevC++? If yes, you might try uninstalling it first, then install the new version.

    yes i did .

    i went into settings one time and changed editors and compiler options - making it able to only read ansi c - but it still worked fine. I also uninstalled it a couple of times and reinstalled it, and it still gives me error messages. It sounds weird but its like there are remnants from the old code still in memory and its interfering with the new installation. Because it seems to compile fine, but then it just doesn't run.


    These are the errors i get:





    standard error when compiling:

    Compiler: Default compiler
    Compiler: Default compiler
    Executing gcc.exe...
    gcc.exe "C:\Documents and Settings\Owner\My Documents\Code\C source codes\whileloop.c" -o "C:\Documents and Settings\Owner\My Documents\Code\C source codes\whileloop.exe" -ansi -traditional-cpp -lobjc -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
    Execution terminated
    I uninstalled 4.9.85 and put in 4.9.8.0 and tried to update it and these are the error i got
    * errror: your devcpp.cfg file is missing the SSBIN field in its [VUPDATE] section


    So to summerise: had DEVC++ 4.9.8.0
    -UPGRADED it to 4.9.8.5 and it would give me errors

    -downgraded to 4.0 and it worked fine for a while. Then it started giving me a wrong path error when i executed a file. Even the file would still open and be in the IDE - and yet it would still compile

    -uninstalled everything. Tried bcc5 but it just seemed too non user friendly.
    -tried lccwin32 but i had to wade through a manual to just start coding. And it said it was based on c89 and 99
    -tried turbo C and then gave me a DOS interface with an error saying it could not find the appropiate files - even though they were in the same path as the .exe.


    -ARRGHGHGHGHH . I AM READY TO PULL WHAT LITTLE HAIR I HAVE OUT!!! wHAT AM I DOING WRONG GUYS? I HAVE 4 BOOKS FROM THE LIBRARY ON C HERE, A HEAP OF ORGANIZED TUTORIALS AND I CAN'T EVEN CODE!!!!!

  8. #8
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    C:\Documents and Settings\Owner\My Documents\Code\C source codes\whileloop.c
    Might be safer to place your source file in a directory whose path does not contain spaces.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. New to Dev C++/<windows.h>...
    By Cilius in forum C++ Programming
    Replies: 3
    Last Post: 02-23-2005, 01:05 AM
  2. Glut and Dev C++, Programs not Quitting?
    By Zeusbwr in forum Game Programming
    Replies: 13
    Last Post: 11-29-2004, 08:43 PM
  3. openGL programming - From MSVC++ to Dev C++
    By WDT in forum Game Programming
    Replies: 3
    Last Post: 03-08-2004, 08:47 PM
  4. openGL programming - From MSVC++ to Dev C++
    By WDT in forum Game Programming
    Replies: 1
    Last Post: 03-08-2004, 05:19 PM
  5. DEV C++ Limitations?
    By Kirdra in forum Game Programming
    Replies: 3
    Last Post: 09-09-2002, 09:40 PM