Compiling 64-bit code in Ubuntu

Compiling, and in particular linking, 64-bit code in Linux is always a bit of a pain due to the coƫxistence of 32-bit libraries. In Ubuntu 11.04 Natty Narwhal (and possibly previous versions), the 64-bit libraries are in two directories:
  • /lib/x86_64-linux-gnu
  • /usr/lib/x86_64-linux-gnu 
UPDATE: There are symbolic links in the places the Fedora/RedHat expects them: /lib64 and /usr/lib64

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.