Error to define data type File* ????

This is a discussion on Error to define data type File* ???? within the C Programming forums, part of the General Programming Boards category; Hi... I prgoram unix sokcet programming , and part of my code is ti open file from server and open ...

  1. #1
    Registered User
    Join Date
    Feb 2013
    Posts
    20

    Exclamation Error to define data type File* ????

    Hi...

    I prgoram unix sokcet programming , and part of my code is ti open file from server and open it , but i surrpised with this wierd error i dont have any reason for it ?

    Code:
    #include <errno.h>
    #include <stdio.h>
    #include <sys/types.h>          
    #include <sys/socket.h>
    #include <netinet/in.h>
    #include <arpa/inet.h>
    #include <stdlib.h>
    #include <string.h>
    #include <unistd.h>
    #include <stdarg.h>        /* ANSI C header file */
    #include <syslog.h>        /* for syslog() */
    #include <sys/types.h>
    #include <sys/stat.h>
    #include <fcntl.h>
    
    File *fp;


    File name is : myHeader.h
    myHeader.h:24:1: error: unknown type name ‘File’
    ???

  2. #2
    Registered User
    Join Date
    May 2009
    Posts
    2,582
    Quit spamming the board. I answered this in your last thread!!!

    Quote Originally Posted by stahta01 View Post
    C is Case Sensitive, "File" is NOT "FILE".

    Tim S.
    "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the Universe is winning." Rick Cook

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 02-16-2013, 08:44 PM
  2. Make a program define a file type?
    By azjherben in forum Tech Board
    Replies: 3
    Last Post: 08-31-2009, 10:47 AM
  3. Data type mismatch in criteria expression ERROR
    By Aga^^ in forum C# Programming
    Replies: 2
    Last Post: 02-11-2009, 12:21 AM
  4. Dev-Cpp doesn't understand the data type FILE
    By KidMan in forum C Programming
    Replies: 3
    Last Post: 12-31-2005, 07:59 PM
  5. How to define "Date" data type?
    By gogo in forum C++ Programming
    Replies: 2
    Last Post: 11-27-2001, 01:33 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21