Menu

Source File Not Compiled

2006-02-19
2012-09-26
  • Nobody/Anonymous

    Hi there,

    I am beginner in C++; and I am using Dev. Before, I wrote just simple codes in Dev that they worked but now whatever that I write and then compile them; it says "Warning: Source File Not Compiled!" and I don't know what happens here. Because before such codes are compiled and runned without any problem.
    Anyways, please help me as soon as possible.
    Thanks...

     
    • Anonymous

      Anonymous - 2007-05-24

      Are you using Windows Vista perhaps?

       
    • Nobody/Anonymous

      okay, so what have you changed?

      wayne: post the basic three!

      snork

       
    • Nobody/Anonymous

      Actually, I don't know what has been changed in my Dev, I think there is a problem with the "compiler option". Now I added "-ansi -pedantic -Wall" when calling compiler. However, when I remove this, it cannot compile either.

       
    • Nobody/Anonymous

      Posting your "Basic 3" would do us a LOT more good.

      Wayne

       
      • Shashi Kant

        Shashi Kant - 2007-05-23

        Program:

        include<stdio.h>

        int main()
        {

        printf(&quot;Hello&quot;);
        
        system(&quot;pause&quot;);  
            return 0;
        

        }

        My Compile Log :

        Compiler: Default compiler
        Executing gcc.exe...
        gcc.exe "F:\g\acm\test.c" -o "F:\g\acm\test.exe" -I"E:\Dev-Cpp\App\devcpp\include" -L"E:\Dev-Cpp\App\devcpp\lib"
        gcc.exe: installation problem, cannot exec `cc1': No such file or directory

        Execution terminated
        Compilation successful

        Problem

        On compiling everything goes ok.but when i hit run ... i get "Source file not compiled" ??

         
        • Wayne Keen

          Wayne Keen - 2007-05-23

          Did you ignore this error message????

          Its right there in the log:

          gcc.exe: installation problem, cannot exec `cc1': No such file or directory

          I think if you search on that error message, you will find some suggested solutions.

          Wayne

           
          • Shashi Kant

            Shashi Kant - 2007-05-24

            "gcc.exe: installation problem, cannot exec `cc1': No such file or directory "

            I saw this but I am unable to find any solution to this problem ...(I searched the forums, googled,.. but no use )

            Please help !!

             
            • Wayne Keen

              Wayne Keen - 2007-05-24

              You searched the forum?

              Plug in "cannot exec `cc1'" to the search...

              Note that you were also asked another question - are you using Vista?

              Wayne

               
    • Nobody/Anonymous

      Have found that an errors in a *.rc file can cause the problem and it is not so easily noticeable.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.