Programm shows errors.

Discussions related to using VirtualBox on Linux hosts.
Post Reply
vazzdoin
Posts: 15
Joined: 2. Feb 2009, 05:55

Programm shows errors.

Post by vazzdoin »

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.
vazzdoin
Posts: 15
Joined: 2. Feb 2009, 05:55

Post by vazzdoin »

Dear , I am already working on 32 bit base. I think this might be problem in Libraries Included. This code requires more Libraries to be included to recognise all functions and datatypes which are being shown undeclared before.
If there is some other problem ,kindly suggest me the right way to solve it.
thanks. :)
Post Reply