This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ERROR C318

Hi,
This is srikanth daggumati.Could u pls help how to
compile (example Text1.c) from command prompt.I
checked the Help but error C318 is coming.
And also i want to see the output of the Text1.c in
simulator it self.Could u pls help me in this....
Iam attaching the FILE(Text1.c) in this mail pls go
through it and let me knew..

regard's
srikanth

/* Text1.c */
#include<stdio.h>
main()
{
printf("sri");
}

Parents
  • You need to remember that two things are needed to find a file:
    1. Its name (eg, Text1.c), and
    2. Its location, or "path" (eg, C:\Keil\C51\BIN)

    If you run the compiler from within uVision, the IDE takes care of this for you.
    Is there any particular reason why you're not using uVision?

Reply
  • You need to remember that two things are needed to find a file:
    1. Its name (eg, Text1.c), and
    2. Its location, or "path" (eg, C:\Keil\C51\BIN)

    If you run the compiler from within uVision, the IDE takes care of this for you.
    Is there any particular reason why you're not using uVision?

Children
  • HI,
    There is NO special reason why iam not using uVision.Just to knew how to Compile and Debugg through Prompt.
    In IDE uVision i can't able to find the printf statements.In Output Window after DEBUGGING I Can See only as follows

    Running with Code Size Limit: 2K
    Load "C:\\Keil\\C51\\Examples\\project1"

  • Stop.

    Read the uVision Getting Started Guide, and work through the example projects in it.

    This will give you a proper introductions to the tools, how they work, and how to use them - rather than just jumping-in blindly at the deep-end!