[NTLUG:Discuss] OT - compiling 64 bit on Solaris 10 question
Kenneth Loafman
kenneth at loafman.com
Mon Sep 29 19:51:14 CDT 2008
Fred James wrote:
> All
> Currently using ...
> to compile ...
> cc -c filename.c
> to link
> ld -G -o filename.so filename
> ... and getting a 32 bit result, when I need a 64 bit result.
> Thank you in advance for any pointers you may be able to offer
Take a look at 'cc -v'. It will tell you what the target platform will
be. As I recall, its 'i486-linux-gnu' even on 64-bit systems unless you
specify '-m64'.
...Ken
More information about the Discuss
mailing list