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

  • Home
  • SEARCH
  • 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 8097909
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:54:37+00:00 2026-06-05T21:54:37+00:00

In a 64 bits systems, it fails if I try to compile a configure

  • 0

In a 64 bits systems, it fails if I try to compile a configure test with:

$ gcc -m32 -o conftest -L/usr/lib/i386-linux-gnu/ conftest.c -lfreetype
/usr/bin/ld: cannot find -lfreetype
collect2: ld returned 1 exit status

but it is successful if I do:

$ gcc -m32 -o conftest conftest.c /usr/lib/i386-linux-gnu/libfreetype.so.6

Why can’t ld find 32bit libfreetype.so.6 in the first case?

  • 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-05T21:54:39+00:00Added an answer on June 5, 2026 at 9:54 pm

    There’s a difference between the runtime and development system. The linker is looking for libfreetype.so and is not finding it. The program at runtime is looking for libfreetype.so.6 and finds it.

    You should install the FreeType development package.

    Before going to that much effort, though, you can validate this hypothesis by first checking that libfreetype.so does not exist in /usr/lib/i386-linux-gnu, and then by using root privileges to do:

    cd /usr/lib/i386-linux-gnu
    ln -s libfreetype.so.6 libfreetype.so
    

    and then retrying the first command line.

    If that works, then remove the symlink just created and then install the FreeType development package.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The following code works as expected for me under 64-bits, but fails under 32-bit
Assume that you're working a x86 32-bits system. Your task is to implement the
How can I write bits to a stream (System.IO.Stream) or read in C#? thanks.
How can i iterate bits in a byte array?
Html can contain little bits of Javascript embedded in it (e.g. defined in onclick
I know the bits just came out today, but one of the first things
(Approximately) how many more bits of data must be transferred over the network during
I have bits of horrible code I have to deal with ... <div class=container>
Possible Duplicate: C printing bits Lets say I have a uint16_t number something like:
I have 16 bits. In each bit I can set some property and send

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.