Showing posts with label linking. Show all posts
Showing posts with label linking. Show all posts

2011-05-10

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