From: "Leandro Teodoro Costa" Subject: using libxenstat.h with g++ Date: Wed, 21 May 2008 15:30:10 -0300 Message-ID: <64339a0805211130v31515a35x613ac0359134055a@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0100104611==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0100104611== Content-Type: multipart/alternative; boundary="----=_Part_2152_6288383.1211394610215" ------=_Part_2152_6288383.1211394610215 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi!!! Someone knows how I can use the functions of the library libxenstat.h with the compiler g++?? When I used gcc I have not had any problems. some errors with the g++: /tmp/cc2l8kks.o: In function `get_vcpu_online(xenstat_domain*)': tste.c:(.text+0x9f1): undefined reference to `xenstat_domain_num_vcpus(xenstat_domain*)' tste.c:(.text+0xa0f): undefined reference to `xenstat_domain_vcpu(xenstat_domain*, unsigned int)' tste.c:(.text+0xa1d): undefined reference to `xenstat_vcpu_online(xenstat_vcpu*)' /tmp/cc2l8kks.o: In function `print_information(xenstat_domain*, int, int, double, int, int)': tste.c:(.text+0xa82): undefined reference to `xenstat_domain_name(xenstat_domain*)' tste.c:(.text+0xaf3): undefined reference to `xenstat_domain_num_vcpus(xenstat_domain*)' please a need help! atc... Leandro T. Costa ------=_Part_2152_6288383.1211394610215 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi!!!

Someone knows how I can use the functions of the library libxenstat.h
with the compiler g++??

When I used gcc I have not had any problems.

some errors with the g++:

/tmp/cc2l8kks.o: In function `get_vcpu_online(xenstat_domain*)':
tste.c:(.text+0x9f1): undefined reference to `xenstat_domain_num_vcpus(xenstat_domain*)'
tste.c:(.text+0xa0f): undefined reference to `xenstat_domain_vcpu(xenstat_domain*, unsigned int)'
tste.c:(.text+0xa1d): undefined reference to `xenstat_vcpu_online(xenstat_vcpu*)'
/tmp/cc2l8kks.o: In function `print_information(xenstat_domain*, int, int, double, int, int)':
tste.c:(.text+0xa82): undefined reference to `xenstat_domain_name(xenstat_domain*)'
tste.c:(.text+0xaf3): undefined reference to `xenstat_domain_num_vcpus(xenstat_domain*)'

please a need help!

atc...   Leandro T. Costa

------=_Part_2152_6288383.1211394610215-- --===============0100104611== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0100104611==--