![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Compilation error : Please help | jagan_kalluri | High Level Programming | 1 | 05-20-2008 01:48 PM |
| Kernel compilation | mankrish | UNIX for Dummies Questions & Answers | 3 | 07-05-2007 10:05 PM |
| compilation error | smanu | High Level Programming | 2 | 12-29-2006 07:11 AM |
| Regarding compilation error. | sweta | High Level Programming | 1 | 12-10-2006 08:30 AM |
| gcc compilation | collins | High Level Programming | 3 | 01-19-2005 09:51 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
64-Bit gcc Compilation
Hi All
I have a question on the compilation Assume i am working on 64 bit Linux OS. i am making shared objects and libraries required for our project. Can i compile 32 bit libraries using gcc of 64 -bit OS? Or Is there any restriction in the 32-bit or 64-bit compilers when trying to link 32-bit libraries. Let me know if i am not clear. Regards Dhana |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
it depends on M/c Arch.
|
|
#3
|
|||
|
|||
|
Yes. -m32.
But let linker know a location of 32-bits libraries (you even might not have them installed yet). |
|
#4
|
||||
|
||||
|
I doubt how will you run a 32 bit file in 64 bit arch ?
or is this just compiling ? |
|
#5
|
|||
|
|||
|
Once you have all required 32-bit libraries you can run 32-bits executable on 64-bit OS.
Well-know example is skype. |
|
#6
|
||||
|
||||
|
How to dynamically modify the Library path in that case ?
|
|
#7
|
|||
|
|||
|
Depends on your OS.
For Linux the simplests way is to set LD_LIBRARY_PATH. For example export LD_LIBRARY_PATH=/lib32:/usr/lib32 |
|||
| Google The UNIX and Linux Forums |