Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8120297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T05:06:33+00:00 2026-06-06T05:06:33+00:00

I have installed the latest libxml2-2.8.0 , as usual: $ ./configure , $ make

  • 0

I have installed the latest libxml2-2.8.0, as usual: $ ./configure, $ make, $ make install.

The $ xml2-config --cflags --libs gives this output:

-I/usr/local/include/libxml2
-L/usr/local/lib -lxml2 -lm

But trying to compile any example…

$ gcc `xml2-config --cflags --libs` xmltest.c

The linker says:

/tmp/cc8ezrPl.o: In function `processNode':
xmltest.c:(.text+0x19): undefined reference to `xmlTextReaderConstName'
xmltest.c:(.text+0x38): undefined reference to `xmlTextReaderConstValue'

...etc.

Anything I’ve googled can be solved by xml2-config --cflags --libs flags, or upgrading to the latest version of libxml2, or something. Unfortunately, neither works for me.

What can be the steps to identify the problem?

Using Ubuntu 12.04 64-bit.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T05:06:37+00:00Added an answer on June 6, 2026 at 5:06 am

    The libraries should be specified only after the source file so that the linker can resolve the undefined references in the source file. Try compiling the example with this

    gcc -I/usr/local/include/libxml2 -L/usr/local/lib xmltest.c -lxml2 -lm
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed the latest embedded binaries from NuGet and am using this code
my eclipse is 3.6,i have installed the latest sdk,but when i install the ADT
How to install apc on centos 5.6. I have already installed the latest lamp
I have installed the latest version of SpringSource Tool Suite and have installed the
I have installed the latest version of netbeans and its working.. I have opened
I have just installed that latest stable release of TortoiseSVN on Windows Server 2003
I have installed Play framework on my Macbook pro. Play 1.2.4 on the latest
I have recently reinstalled my computer, installed latest version of Android SDK and Eclipse.
I have setup a git repository in a linux server, and installed the latest
I have installed latest free version of zend studio and it got expired. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.