- What's New
- Documentation
- Setting up KKoncepts Email on Thunderbird 2
- Setting up KKoncepts Email on Thunderbird 3
- Setting up KKoncepts Email on Outlook XP (version 2002)
- Setting up KKoncepts email on Outlook 2007
- Setting up KKoncepts Email on Apple Mail
- Setting up KKoncepts Email on Outlook Express
- Sharing your Calendar in Thunderbird
- Secure FTP Access to your KKoncepts Website
- Staff Blogs
- Contact Us

All of our systems are 64-bit, but today I needed to compile a simple executable for a 32-bit system. Fortunately gcc makes that easy; just add the "-m32" switch to the command line. Unfortunately, it didn't work!
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libgcc.a when searching for -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status
I've got the various "lib32" files installed so I can run 32-bit apps on my 64-bit system, but it turns out you need a couple more to actually compile 32-bit apps.
Here's what you need to do on Ubuntu Hardy. (It's probably the same package names on most recent debian or debian-based systems)
sudo apt-get install gcc-multilib libc6-i386
That will pull in the necessary files and the "-m32" switch works. Voila!
Navigation
Search
Recent blog posts
- Upgrading the "filesystem" rpm in a Redhat/CentOS vserver guest
- Preforking Servers and Zombies in Perl
- Bandwidth usage in IPCop
- Flashing kubuntu startup screen
- Lightning issue in Thunderbird 3 in Ubuntu Lucid
- Windows 7 64-bit (pro) update problems
- Perl, magic open, and gzip
- Virtual Box Ubuntu Network eth0 becomes eth1
- Missing host CD drive in VirtualBox
- Custom OpenVPN Installer
