NIlesh Srivastava
NIlesh Srivastava

Reputation: 71

generating 64 bit code on 32bit debian system

Could you please describe that how have you installed gcc-multilib and g++-multilib on 32bit debian machine to generate 64 bit code?

I installed gcc-4.7.2 on my 32bit debian system(and also installed binutils-2.23). When i try to compile a simple hello world program with -m64 flag as

# gcc -m64 hello.c

I am getting following error message:

"hello.c:1:0: sorry, unimplemented: 64-bit mode not compiled in" .

Please tell me the steps to generate the 64bit code on 32bit debian system.

Upvotes: 2

Views: 293

Answers (1)

RSFalcon7
RSFalcon7

Reputation: 2311

You need to re-install gcc with this option in the configure.

Upvotes: 1

Related Questions