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

FILE *fin error

Any one know the solution, please reply.

After declaration,

FILE *fin;

and implementation,

fin = fopen ("test.txt","r");

The error message results
when compiling:

Build target 'ADuC7020'
assembling Startup.s...
compiling ADC.c...
ADC.C(30):error C67:'FILE': undefined identifier
ADC.C(31):error C67:'fin': undefined identifier

I already include the header file 'rtl.h'
in my program.

Parents
  • Thanks much your reply.

    All I have is the evaluation version Keil uVision3 from CD-ROM.

    I understand your point having read on this page,

    http://www.keil.com/rl-arm/

    at the bottom 'Note Box',

    'The RealView MDK-ARM includes
    the RTX Real-Time Kernel but not
    the RTX Real-Time Kernel Source Code,
    Flash File System, TCP/IP Protocol Suite,
    or USB/CAN Drivers.'

    Is this meaning that those programs
    in folder C:\Keil\ARM\RV30\RTL\Kernel\Examples\ cannot be run ?

    But there are some source codes in path
    C:\Keil\ARM\RV30\RTL\Kernel\Examples\SRC\ ?

    Hope you reply

Reply
  • Thanks much your reply.

    All I have is the evaluation version Keil uVision3 from CD-ROM.

    I understand your point having read on this page,

    http://www.keil.com/rl-arm/

    at the bottom 'Note Box',

    'The RealView MDK-ARM includes
    the RTX Real-Time Kernel but not
    the RTX Real-Time Kernel Source Code,
    Flash File System, TCP/IP Protocol Suite,
    or USB/CAN Drivers.'

    Is this meaning that those programs
    in folder C:\Keil\ARM\RV30\RTL\Kernel\Examples\ cannot be run ?

    But there are some source codes in path
    C:\Keil\ARM\RV30\RTL\Kernel\Examples\SRC\ ?

    Hope you reply

Children