From: "Leandro Teodoro Costa" Subject: libxenstat.h with the compiler g++! Date: Tue, 20 May 2008 18:56:10 -0300 Message-ID: <64339a0805201456v79602847xdb6c6db3d735e03c@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1269245691==" 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, leandro.teocosta@gmail.com List-Id: xen-devel@lists.xenproject.org --===============1269245691== Content-Type: multipart/alternative; boundary="----=_Part_1076_31449707.1211320570346" ------=_Part_1076_31449707.1211320570346 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello!!! 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*)' ------=_Part_1076_31449707.1211320570346 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello!!!

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*)'



------=_Part_1076_31449707.1211320570346-- --===============1269245691== 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 --===============1269245691==--