LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-04-2006, 03:40 AM   #1
sniff
Member
 
Registered: Jan 2003
Location: Durham UK
Distribution: openSUSE/Debian
Posts: 336

Rep: Reputation: 42
Question Using a 32bit library on a 64bit computer


Hello,
I having a little difficultly. I have a C library that I need to use for a summer uni project. It has some functions that are required for the program. Anyway, the library is 32bit but I have 64bit Suse installed on my system and I'm have problems getting the library to link in. I works on another system that is 32bit perfectly but this is not as fast and the program is going to be fairly intensive.

g++ just skips the library, "skipping incompatible". The must be something I can put in the makefile to put it into 32bit compatable mode? They can only give me a 64bit version of the library for sun computers, I guess that will not work under Suse linux.

I tried google, assumed this would provide all the answers but it didn't but that might be down to my query.

Thanks,
Phil
 
Old 07-04-2006, 03:47 AM   #2
sniff
Member
 
Registered: Jan 2003
Location: Durham UK
Distribution: openSUSE/Debian
Posts: 336

Original Poster
Rep: Reputation: 42
Hello,
I knew this would happen, I found the answer one second after posting.

All I needed was -m32 in the makefile, dead simple. My excuse is that I have been using Java to long and its ages since I had to write me own makefile

Thanks,
Phil
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
32Bit or 64bit? astrotrain1 Linux - Hardware 6 06-26-2006 01:27 PM
can 64bit processor run both 64bit and 32bit computers? DJOtaku Linux - General 4 09-08-2005 08:14 PM
64bit or 32bit ginger.fish0 Ubuntu 3 09-01-2005 05:12 PM
32bit on 64bit paralysis Linux From Scratch 2 06-02-2005 03:19 PM
32bit to 64bit kirk1975 Linux - Newbie 1 10-20-2004 05:14 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration