Home » Community » Coffee corner » Compile to 32 bit on Linux 64 bit  
	
		
		
			| Re: Compile to 32 bit on Linux 64 bit [message #49204 is a reply to message #49185] | 
			Sun, 07 January 2018 14:20    | 
		 
		
			
				
				
				  | 
					
						  
						forlano
						 Messages: 1215 Registered: March 2006  Location: Italy
						
					 | 
					Senior Contributor  | 
					 | 
		 
		 
	 | 
 
	
		Zbych wrote on Wed, 03 January 2018 22:03forlano wrote on Sat, 30 December 2017 17:12 
has anybody tried to compile a U++ program for 32 bit from a 64 bit machine? 
What package should I install?
  
 
I did - just simple console app (no GUI) and all I had to install was some multilib package. 
I found in my notes for ubuntu 14.04: 
sudo apt-get install gcc-multilib 
sudo apt-get install gcc-4.9-multilib g++-4.9-multilib 
sudo apt-get install gcc-5-multilib g++-5-multilib 
 
And don't forget to add -m32 to compiler options. 
  
 
Hello Zbych, 
 
thanks for the answer. Can you post the .bm file you have used to compile the U++ package? 
I have installed multilib and used -m32 option but still getting complain from the compiler. 
Perhaps even the .h and lib used should be addressed properly. 
 
thanks, 
Luigi
		
		
		[Updated on: Sun, 07 January 2018 14:21] Report message to a moderator  
 |  
	| 
		
	 | 
 
 
 |  
  
 
Goto Forum:
 
 Current Time: Tue Nov 04 03:33:24 CET 2025 
 Total time taken to generate the page: 0.05079 seconds 
 |