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
  • "ERROR C318 : Can't open the file Text1.c

    I typed C51 Text1.c in the command prompt."


    You are talking about the Windows C:> prompt ("DOS box"), aren't you?

    So what happens if you type "DIR Text1.c"?

    "And second one is how can i see the out put of Text1.c (printf statements) in the uVision IDE?."

    The first step is to build the project.
    If you haven't built the project yet, you will certainly get no output!

    You need to start by reading the uVision Getting Started Guide, and working through the example projects in it.
    The examples include a simple "Hello, world" program that does exactly what you require!

Reply
  • "ERROR C318 : Can't open the file Text1.c

    I typed C51 Text1.c in the command prompt."


    You are talking about the Windows C:> prompt ("DOS box"), aren't you?

    So what happens if you type "DIR Text1.c"?

    "And second one is how can i see the out put of Text1.c (printf statements) in the uVision IDE?."

    The first step is to build the project.
    If you haven't built the project yet, you will certainly get no output!

    You need to start by reading the uVision Getting Started Guide, and working through the example projects in it.
    The examples include a simple "Hello, world" program that does exactly what you require!

Children