Leandro Teodoro Costa
2008-May-20 21:56 UTC
[Xen-devel] libxenstat.h with the compiler g++!
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*)'' _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Leandro Teodoro Costa writes ("[Xen-devel] libxenstat.h with the compiler g++!"):> Someone knows how I can use the functions of the library libxenstat.h > with the compiler g++??Yes, we do know. The question wasn''t anything to do with the development of Xen so it is off topic for this list, which is no-one answered it. I don''t want to be giving general programming advice here, but to avoid being unfriendly and totally unhelpful, I will say this: The answer you want is in what is for me the second Google hit for C++ include C header which is an entry in the top Google hit for C++ FAQ (Marshall Cline''s document.) No doubt it will be in many other places too. If the above references don''t enable you to find the answer, you should probably consult your programming tutor or a suitable textbook. Ian. PS: Repeating your question after a day isn''t very polite. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel