Whats wrong with my command? I want to compile x64 ld_preload on x86 g++, command:
g++ -fPIC -m64 -shared -Wl,-soname,test.so -ldl -o test.so test.cpp
error
In file included from /usr/include/c++/4.4/bits/stl_tree.h:62, from /usr/include/c++/4.4/set:60, from test.cpp:17: /usr/include/c++/4.4/bits/stl_algobase.h:60: fatal error: bits/c++config.h: No such file or directory compilation terminated. make: * [test.so] Error 1
17 line test.cpp
#include <set>
Package g++-multilib installed.
upd
File search:
#include <...> search starts here:
/usr/include/c++/4.4
/usr/include/c++/4.4/backward
/usr/local/include
/usr/lib/gcc/i686-linux-gnu/4.4.5/include
/usr/lib/gcc/i686-linux-gnu/4.4.5/include-fixed
/usr/include/x86_64-linux-gnu
/usr/include
Thanks!