Thread: Compile Error

  1. #1
    Registered User
    Join Date
    Jul 2016
    Posts
    1

    Compile Error

    First off, I am new fellas so take it easy please (just started a week ago)

    So I am currently trying to compile this:

    Code:
    #include <stdio.h>
    #include <windows.h>
    int main (void)
    {
    	int num 1 = 32,
    		num 2 = 27,
    		mark = 9999,
    		count = 0;
    	char letterGrade = '?';
    	system ("cls");
    	while (count < 2)
    	{
    		printf ("\nMark = %d",mark);
    		printf ("\nGrade = %c\n\n",letterGrade);
    		mark = num1 + num2;
    		if (mark > 50) letterGrade = 'P';
    		else letterGrade = 'F';
    		count = count + 1;
    	}
    	system ("pause");
    	return 0;
    }
    I am currently using Dev C++ and Im getting when trying to compile:
    [Error] no input files
    Grades.o: No Such files or directory
    [Warning] linker input file unused because linking not done

    Suggestions would be greatly appreciated

    Thank you

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    If this used to work, and you're using the archaic "bloodshed" version of dev-c++, then I'm afraid you've been hit by one of the many bugs in bloodshed dev-c++.
    One of these bugs was to randomly trash the project file so it no longer builds.
    Bloodshed dev-c++ was last updated over 10 years ago, and the project has been long abandoned.

    I suggest you download a more up to date compiler.
    Visual Studio Express
    smorgasbordet - Pelles C
    Code::Blocks
    Dev-C++ download | SourceForge.net
    Orwell dev-c++ is the natural replacement for the bloodshed suite, if you otherwise like how it works.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compile error? Logic error? Syntax Error? Please help
    By Khody Afkhami in forum C Programming
    Replies: 4
    Last Post: 10-11-2014, 01:36 AM
  2. Replies: 15
    Last Post: 11-28-2011, 11:48 AM
  3. compile time error or runtime error?
    By George2 in forum C# Programming
    Replies: 3
    Last Post: 05-07-2008, 07:08 AM
  4. Compile error... Resource error to :/.
    By Blackroot in forum Windows Programming
    Replies: 3
    Last Post: 08-23-2006, 05:09 PM
  5. compile once, compile twice ...error
    By Benzakhar in forum Windows Programming
    Replies: 6
    Last Post: 12-28-2003, 06:00 AM

Tags for this Thread