Programm shows errors.
Posted: 11. Feb 2009, 08:49
Hi ,i am working on VirtualBox(OSE) programing and facing the following errors in my program execution. can any one help me to remove the errors.
tstVBoxAPILinux.cpp: In function `nsresult showInfo(nsCOMPtr<IVirtualBox>, nsCOMPtr<IMachine>, nsCOMPtr<IConsole>, VMINFO_DETAILS)':
tstVBoxAPILinux.cpp:108: error: declaration of 'nsCOMPtr<IMachine> machine' shadows a parameter
tstVBoxAPILinux.cpp:110: error: `argv' undeclared (first use this function)
tstVBoxAPILinux.cpp:110: error: (Each undeclared identifier is reported only once for each function it appears in.)
tstVBoxAPILinux.cpp:111: error: 'struct nsID' has no member named 'isEmpty'
tstVBoxAPILinux.cpp:117: error: `Bstr' undeclared (first use this function)
tstVBoxAPILinux.cpp:117: error: 'class nsCOMPtr<IMachine>' has no member named 'asOutParam'
tstVBoxAPILinux.cpp:117: error: `FindMachine' undeclared (first use this function)
tstVBoxAPILinux.cpp:117: error: `CHECK_ERROR' undeclared (first use this function)
tstVBoxAPILinux.cpp:119: error: 'class nsDerivedSafe<IMachine>' has no member named 'COMGETTER'
tstVBoxAPILinux.cpp:119: error: `Id' undeclared (first use this function)
tstVBoxAPILinux.cpp:119: error: 'struct nsID' has no member named 'asOutParam'
tstVBoxAPILinux.cpp:125: error: declaration of 'VMINFO_DETAILS details' shadows a parameter
tstVBoxAPILinux.cpp:129: error: `argc' undeclared (first use this function)
tstVBoxAPILinux.cpp:151: error: declaration of 'nsCOMPtr<IConsole> console' shadows a parameter
tstVBoxAPILinux.cpp:156: error: 'class nsDerivedSafe<ISession>' has no member named 'COMGETTER'
tstVBoxAPILinux.cpp:156: error: 'class nsCOMPtr<IMachine>' has no member named 'asOutParam'
tstVBoxAPILinux.cpp:159: error: 'class nsDerivedSafe<ISession>' has no member named 'COMGETTER'
tstVBoxAPILinux.cpp:159: error: 'class nsCOMPtr<IConsole>' has no member named 'asOutParam'
tstVBoxAPILinux.cpp: In function `int main(int, char**)':
tstVBoxAPILinux.cpp:97: error: too few arguments to function `nsresult showInfo(nsCOMPtr<IVirtualBox>, nsCOMPtr<IMachine>, nsCOMPtr<IConsole>, VMINFO_DETAILS)'
tstVBoxAPILinux.cpp:533: error: at this point in file
make: *** [tstVBoxAPILinux.o] Error 1
thanks.
tstVBoxAPILinux.cpp: In function `nsresult showInfo(nsCOMPtr<IVirtualBox>, nsCOMPtr<IMachine>, nsCOMPtr<IConsole>, VMINFO_DETAILS)':
tstVBoxAPILinux.cpp:108: error: declaration of 'nsCOMPtr<IMachine> machine' shadows a parameter
tstVBoxAPILinux.cpp:110: error: `argv' undeclared (first use this function)
tstVBoxAPILinux.cpp:110: error: (Each undeclared identifier is reported only once for each function it appears in.)
tstVBoxAPILinux.cpp:111: error: 'struct nsID' has no member named 'isEmpty'
tstVBoxAPILinux.cpp:117: error: `Bstr' undeclared (first use this function)
tstVBoxAPILinux.cpp:117: error: 'class nsCOMPtr<IMachine>' has no member named 'asOutParam'
tstVBoxAPILinux.cpp:117: error: `FindMachine' undeclared (first use this function)
tstVBoxAPILinux.cpp:117: error: `CHECK_ERROR' undeclared (first use this function)
tstVBoxAPILinux.cpp:119: error: 'class nsDerivedSafe<IMachine>' has no member named 'COMGETTER'
tstVBoxAPILinux.cpp:119: error: `Id' undeclared (first use this function)
tstVBoxAPILinux.cpp:119: error: 'struct nsID' has no member named 'asOutParam'
tstVBoxAPILinux.cpp:125: error: declaration of 'VMINFO_DETAILS details' shadows a parameter
tstVBoxAPILinux.cpp:129: error: `argc' undeclared (first use this function)
tstVBoxAPILinux.cpp:151: error: declaration of 'nsCOMPtr<IConsole> console' shadows a parameter
tstVBoxAPILinux.cpp:156: error: 'class nsDerivedSafe<ISession>' has no member named 'COMGETTER'
tstVBoxAPILinux.cpp:156: error: 'class nsCOMPtr<IMachine>' has no member named 'asOutParam'
tstVBoxAPILinux.cpp:159: error: 'class nsDerivedSafe<ISession>' has no member named 'COMGETTER'
tstVBoxAPILinux.cpp:159: error: 'class nsCOMPtr<IConsole>' has no member named 'asOutParam'
tstVBoxAPILinux.cpp: In function `int main(int, char**)':
tstVBoxAPILinux.cpp:97: error: too few arguments to function `nsresult showInfo(nsCOMPtr<IVirtualBox>, nsCOMPtr<IMachine>, nsCOMPtr<IConsole>, VMINFO_DETAILS)'
tstVBoxAPILinux.cpp:533: error: at this point in file
make: *** [tstVBoxAPILinux.o] Error 1
thanks.