c++ - How can i use libboost1.54-all-dev:amd64 and I386 together? -


i have c++ program needs program_options library libboost package.

i installed boost sudo apt-get install libboost1.54-all-dev , compiled program with

g++ program.cpp -m64 -static -lboost_program_options -o compiled/program.out.

everything worked fine.

then wanted compile 32bit used -m32 instead of -m64.

it said:

/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../libboost_program_options.a when searching -lboost_program_options /usr/bin/ld: skipping incompatible /usr/lib/libboost_program_options.a when searching -lboost_program_options /usr/bin/ld: cannot find -lboost_program_options collect2: error: ld returned 1 exit status 

then used google , found, have install boost i386 package compiling i386 applications. seems, cant install amd64 , i386 same time. when try install i386 apt-get want remove amd64 packages , when try amd64 i386 removed.

i can compile apps in i386, have install i386 , reinstall amd64...

hope can me this! thankyou!


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -