Compile 32 bit program under 64 bit Linux OS
2013-03-04 19:18
441 查看
The compile Option is m32. For example:
g++ -I . -g -m32 -c -o odbcdriver.o odbcdriver.cpp
g++ -m32 -L ./mylibpath/ -l mylibname -ldl -o dbm_driver odbcdriver.o
g++ -I . -g -m32 -c -o odbcdriver.o odbcdriver.cpp
g++ -m32 -L ./mylibpath/ -l mylibname -ldl -o dbm_driver odbcdriver.o
相关文章推荐
- How to tell if you’re running the 32 bit or 64 bit kernel in Mac OS X Snow Leopard
- GCC Intro - Compile 32-bit Application on 64-bit ubuntu
- ia32-libs for gcc from 32bits linux OS to 64bits
- Unzip 6.0 fails to compile under 64-bit systems with the instructions in the book
- Csimsoft Trelis Pro 15.2.1 Win32_64 & MacOSX & Linux32_64 & Linux Debian32_64 7CD
- HOWTO: Cross-compiling a 32-bit (i386) Linux kernel on 64-bit Machine (amd64)
- HowTo Compile a 32-bit Application Using gcc On the 64-bit Linux Version
- File System Redirector and Sysnative - how to call 64 bit program from 32 bit application
- B.7.2 Migrating 32-Bit Linux Database to 64-Bit Linux Database
- 查看Linux 32 or 64 bit及Linux版本命令
- How to Verify a CentOS Linux Server is 32 Bit or 64 Bit
- How to Convert a 32-bit Database to 64-bit Database on Linux (remove olap)
- How to convert a 32-bit database to 64-bit database on Linux
- How to Convert a 32-bit Database to 64-bit Database on Linux (remove olap)
- 3 Ways to Learn Whether a Windows Program is 64-bit or 32-bit
- Linux安装Oracle报错You are attempting to install 64-bit Oracle on a 32-bit operating system. This
- How to Check if Linux (Ubuntu, Fedora Redhat, CentOS) is 32-bit or 64-bit
- Linux Find If Processor / CPU is 64 bit / 32 bit ( long mode ~ lm )
- OS & Oracle is 32-bit or 64-bit?
- How to Convert a 32-bit Database to 64-bit Database on Linux (update olap)