64bit or 32bit

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

64bit or 32bit

Postby petertohen » Sep 16th, '17, 16:29

I installed the 64 bit version of Mageia 5. Is it possible to compile and run a program as 32 bits? (dosbox-x only has dynamic x86 core implemented for 32 bits, it does not work with 64 bits.) There's a /usr/lib and /usr/lib64 directory for libraries and -m32 is a compiler flag for 32 bit, but how do the includes work? There's only one include directory.
http://www.mageia.org/en/5/
petertohen
 
Posts: 1
Joined: Sep 16th, '17, 16:27

Re: 64bit or 32bit

Postby jiml8 » Sep 16th, '17, 22:27

It is certainly possible to do what you want to do. I, personally, don't know how to set it up, I just know it can be done. I think you have to treat it as a cross-compile and set up a cross-compile environment.

For myself, I just build a virtual machine that matches the profile that I wish to compile for, then compile on that VM. Ultimately, I find this to be a much simpler route and a great deal more flexible because I don't have to keep track of what target environment I am building for in my host environment.
jiml8
 
Posts: 1254
Joined: Jul 7th, '13, 18:09


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron