C++ Tutorial #46/47 Composition

+1 Lovya Vinayak · August 4, 2014

So I did the exact same thing that Bucky did, but I am still getting errors in main.cpp

 BirthDay birthObj (09,23,1994);

the error is "invalid digit "9" in octal constant "

"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory '/cygdrive/c/Users/Vinayak/Documents/NetBeansProjects/Practice'
"/usr/bin/make"  -f nbproject/Makefile-Debug.mk dist/Debug/Cygwin_4.x-Windows/practice.exe
make[2]: Entering directory '/cygdrive/c/Users/Vinayak/Documents/NetBeansProjects/Practice'
mkdir -p build/Debug/Cygwin_4.x-Windows
rm -f "build/Debug/Cygwin_4.x-Windows/main.o.d"
g++    -c -g -MMD -MP -MF "build/Debug/Cygwin_4.x-Windows/main.o.d" -o build/Debug/Cygwin_4.x-Windows/main.o main.cpp
main.cpp:8:24: error: invalid digit "9" in octal constant
     BirthDay birthObj (09,23,1994);
nbproject/Makefile-Debug.mk:78: recipe for target 'build/Debug/Cygwin_4.x-Windows/main.o' failed
make[2]: *** [build/Debug/Cygwin_4.x-Windows/main.o] Error 1
make[2]: Leaving directory '/cygdrive/c/Users/Vinayak/Documents/NetBeansProjects/Practice'
nbproject/Makefile-Debug.mk:61: recipe for target '.build-conf' failed
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory '/cygdrive/c/Users/Vinayak/Documents/NetBeansProjects/Practice'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
make: *** [.build-impl] Error 2

BUILD FAILED (exit value 2, total time: 3s)

NOTE: I use netbeans 

Post a Reply


Oldest  Newest  Rating
0 Lovya Vinayak · August 5, 2014
Thanks for the reply I had a feeling that I had to get rid of the 0 but didnt do that lol 
  • 1



Used in many types of software including music players, video games, and many large scale applications.

Bucky Roberts Administrator