Thread: Data type File * not supported in c under linux ??????

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

    Data type File * not supported in c under linux ??????

    Hi...
    i am working on socket network programming ,and part of code is to open file from server and download it , but i surrpised with this wired error ,but keep in mind i had include the Header <stdio.h>
    like this :

    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;
    My file name is :myHeader.h
    but it give me error :myHeader.h:24:1: error: unknown type name ‘File’?????

  2. #2
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    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

  3. #3
    Registered User
    Join Date
    Feb 2013
    Posts
    20
    really sorry ,but while im writing the browser crashed,so i repeat the post again , i dont think the post was upload .

    Sorry again.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 05-14-2011, 09:26 PM
  2. Determine file type (Linux)
    By cnewbie1 in forum C Programming
    Replies: 12
    Last Post: 12-29-2010, 01:24 PM
  3. The project type is not supported by this installation
    By puk284 in forum C# Programming
    Replies: 8
    Last Post: 11-19-2008, 09:27 AM
  4. [Large file][Value too large for defined data type]
    By salsan in forum Linux Programming
    Replies: 11
    Last Post: 02-05-2008, 04:18 AM
  5. 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

Tags for this Thread