LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How to use 32 bit C libraries on 64 bit Arch Linux (https://www.linuxquestions.org/questions/programming-9/how-to-use-32-bit-c-libraries-on-64-bit-arch-linux-801349/)

Sergei Steshenko 04-11-2010 02:35 PM

Quote:

Originally Posted by MTK358 (Post 3931706)
...
I can work in a 32-bit VirtualBox VM, but it's very inconvenient
...

What exactly is inconvenient ?

VirtualBox allows file sharing, so all the editing you can do in your physical (not virtual) machine. I.e. your source files may reside in your physical machine.

QEMU for that matter allows running in text mode (as well as file sharing), so with QEMU you can have just another terminal window/tab.

Sergei Steshenko 04-11-2010 02:44 PM

And VirtualBox also has seamless mode.

Sergei Steshenko 04-11-2010 02:48 PM

Dealing with VirtualBox through 'ssh':

http://www.fridu.org/hosting/81-virt...-remote-access

- if you do it, you will run your VirtualBox session from a terminal in your ohysical machine.

MTK358 04-11-2010 02:57 PM

@Sergei Steshenko

Those might be really good ideas.

But I don't know how to do Seamless Mode and File Sharing, and I have also never used SSH before.

And some recent updates caused VirtualBox to break, but I am hoping to fix it:

http://www.linuxquestions.org/questi...terday-801364/

smeezekitty 04-11-2010 03:35 PM

VBox file sharing does not work! and in the latest build, i can not even mount cds/floppies.
VBox quaility over time:
Code:

|            __                    |
|    ___-----/  \                  |
|---/            \                  |
|                \                |
|__________________\________________|


Sergei Steshenko 04-11-2010 04:08 PM

Quote:

Originally Posted by MTK358 (Post 3932009)
...
But I don't know how to do ... File Sharing
...

RTFM.

MTK358 04-13-2010 08:40 AM

Anyone?

About the original question?

damgar 04-13-2010 04:01 PM

Googling "multilib arch Linux" looks like it gets you going in the proper direction.

eothred 09-22-2011 02:19 AM

gcc-multilib
 
This thread comes out as a top hit on Google, so I provide the answer for completness:

In order to build C/C++ code on Arch, you need the "gcc-multilib" package. After installing that you will be able to compile with "gcc -m32 main.o". I guess the reason the normal gcc doesn't provide this is because Arch originally wanted to be a pure 64bit system..?

Hope that helps.


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