NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Compiler Error on Mac OS Sierra - Netbeans 8.1

 
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users
View previous topic :: View next topic  
Author Message
sss007



Joined: 26 Oct 2016
Posts: 1

PostPosted: Wed Oct 26, 2016 3:16 pm    Post subject: Compiler Error on Mac OS Sierra - Netbeans 8.1 Reply with quote

Created a simple C++ program to get me going. Only included <iostream> to access the stream operators. Trying to compile using "g++" get this error:

Code:

/usr/include/sys/unistd.h:203:44: error: expected function body after function declarator
int     faccessat(int, const char *, int, int) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);


Installed Xcode 8.1.

Please see attachment for my compiler header configuration.

Anyone any ideas about this ? Appreciate any guidance on this.

Thanks.



Screen Shot 2016-10-26 at 16.12.33.png
 Description:
 Filesize:  35.22 KB
 Viewed:  1543 Time(s)

Screen Shot 2016-10-26 at 16.12.33.png


Back to top
soldatov



Joined: 05 Nov 2009
Posts: 585

PostPosted: Wed Oct 26, 2016 8:01 pm    Post subject: Re: Compiler Error on Mac OS Sierra - Netbeans 8.1 Reply with quote

Why you add /usr/include folders? Do you have problems with empty "Include Directories" window?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo