O
OtagoHarbour
I am using NetBeans IDE 7.0.1 to build a C++ application on Ubuntu
11.08.
I have code written in C++ and it builds fine in Debug mode. However,
when I try to build it in Release mode I get the following errors.
/usr/include/i386-linux-gnu/bits/fcntl2.h:51:26 error: call to ' open
missing mode' declared with attribute error: open with O_CREAT in
second argument needs 3 arguments.
I have the following definition files included.
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
I duplicated the properties for the Debug build and renamed the
duplicate Release so it built perfectly just like the Debug version.
Then I went to the C++ compiler and changed
Basic Options: Development Mode from Debug to Release. That was what
caused the problem with fcntl.h
Any assistance with fixing this problem would be greatly appreciated.
Thanks.
Peter
11.08.
I have code written in C++ and it builds fine in Debug mode. However,
when I try to build it in Release mode I get the following errors.
/usr/include/i386-linux-gnu/bits/fcntl2.h:51:26 error: call to ' open
missing mode' declared with attribute error: open with O_CREAT in
second argument needs 3 arguments.
I have the following definition files included.
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
I duplicated the properties for the Debug build and renamed the
duplicate Release so it built perfectly just like the Debug version.
Then I went to the C++ compiler and changed
Basic Options: Development Mode from Debug to Release. That was what
caused the problem with fcntl.h
Any assistance with fixing this problem would be greatly appreciated.
Thanks.
Peter