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

This is a discussion on Data type File * not supported in c under linux ?????? within the C Programming forums, part of the General Programming Boards category; Hi... i am working on socket network programming ,and part of code is to open file from server and download ...

  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
    2,577
    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

  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, 12: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, 08: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, 03: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, 07:59 PM

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