g++ - error related to static linking of glibcxx and glibc -



g++ - error related to static linking of glibcxx and glibc -

i am trying cross-compile x86 programme alpha using g++. that, tried both "-static-libgcc" , "--static" options when linking object file libraries generate binaries. cross compilation successful, got next errors when ran binaries on alpha machine:

./word_count: /lib/libc.so.6.1: version glibc_2.4' not found (required ./word_count) ./word_count: /usr/lib/libstdc++.so.6: versionglibcxx_3.4.10' not found (required ./word_

these errors shouldn't happen, since using static linking! so, cannot figure out why getting these errors! help appreciated.

you need link against both, standard c , c++ libraries. (source)

g++

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

r - url in CRAN extension manual -

asp.net - .NET Control.ID property inconsistency -