Thread: Error to define data type File* ????

  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
    4,183
    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.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 02-16-2013, 09: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, 01: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, 08:59 PM
  5. How to define "Date" data type?
    By gogo in forum C++ Programming
    Replies: 2
    Last Post: 11-27-2001, 02:33 AM

Tags for this Thread