New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Problem in types.h


Post Reply New Thread Subscribe

 
Thread Tools
jp.navarini

 
Member Since: Oct 04, 2009
Posts: 2
jp.navarini is on a distinguished road

jp.navarini is offline
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????
QUOTE Thanks
Raz0rEdge

 
Raz0rEdge's Avatar
 
Member Since: Jul 17, 2009
Location: MA
Posts: 7,411
Raz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant future
Mac Specs: 27" i7 iMac, 24" iMac, 13" Macbook Air, iPhone 5 & 5S, iPod Nano 7th Gen, iPad 2 16GB WiFi, iPad 3

Raz0rEdge is offline
Show us the line of code with the 3 pointers and char.

Line 84 in types.h is:
Quote:
#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
typedef unsigned char u_char;
Regards
QUOTE Thanks
jp.navarini

 
Member Since: Oct 04, 2009
Posts: 2
jp.navarini is on a distinguished road

jp.navarini is offline
Thanks...
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...
QUOTE Thanks

Post Reply New Thread Subscribe


« Snow Leopard and Cox WebMail | C++ Beginner simple fstream question »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
diagnosing kernel task/CPU problem on Macbook Air nick_harambee Apple Notebooks 9 08-20-2011 07:20 AM
Problem With Keyboard...... mmcltd OS X - Operating System 4 02-02-2010 06:47 PM
Possible faulty CPU thermometer, common problem? dyaballikl Apple Notebooks 6 11-16-2008 12:21 AM
Microsoft Messenger Problem millenium_spike OS X - Apps and Games 4 09-16-2008 01:11 AM
Problem Darwin Server + VLC nanaki Web Design and Hosting 0 03-13-2008 07:27 AM

All times are GMT -4. The time now is 01:37 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?