Results 1 to 3 of 3
  1. #1

    Member Since
    Oct 04, 2009
    Problem in types.h
    I am trying to compile a C++ code I am doing for my university, using g++. However, I see two problems that I just can`t find out the reason. The first one is "empty character constant", pointing to a line where I define 3 pointers to char.

    The second and most incredible one is: "/usr/include/sys/types.h:84: error: expected ';' before 'typedef'"...

    I've never done anything in this types.h file... And I`ve never had problems compiling other codes...

    Does anyone has any idea of how to fix these mistakes????

  2. #2

    Raz0rEdge's Avatar
    Member Since
    Jul 17, 2009
    27" i7 iMac, 15" Macbook Pro TB, 13" Macbook Air, iPhone 6S, iPod Nano 7th Gen
    Show us the line of code with the 3 pointers and char.

    Line 84 in types.h is:
    #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
    typedef unsigned char u_char;

  3. #3

    Member Since
    Oct 04, 2009
    I've already fixed the first problem, with the char declaration. Now I only have to fix the types.h problem. I've checked in my types.h file, and it looks just like yours...

    I can't find out why this problem is happening...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. S:now L:eopa;rd; types; on its; own in G:ma;il;;;;;;;;;;;;;;;;;
    By vasuzie in forum macOS - Operating System
    Replies: 9
    Last Post: 01-09-2014, 02:22 PM
  2. file types
    By libbyj in forum Switcher Hangout
    Replies: 1
    Last Post: 10-13-2012, 03:06 AM
  3. About file types
    By Xi0N in forum macOS - Apps and Games
    Replies: 1
    Last Post: 04-16-2009, 06:18 PM
  4. File Types
    By Ruke in forum Images, Graphic Design, and Digital Photography
    Replies: 21
    Last Post: 03-01-2007, 09:42 PM
  5. Memory types
    By yaworski in forum Other Hardware and Peripherals
    Replies: 1
    Last Post: 03-03-2004, 04:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts