|
From: John H. <jho...@ya...> - 2009-03-20 15:31:27
|
Hello,
It seems that the PIC (Position Independent Code) option of gcc is not supported on Windows. I understand that Windows does not need this functionality since it uses relocation table in dll, but I was wondering why is this option not available? Is it only because it is useless? Or is there any real problem that makes it unavailable?
It tried with gcc from cygwin and mingw, with option fPIC, fpic, fPIE and fpie:
C:\>gcc.exe main.c -o main -fpic
main.c:1: warning: -fpic ignored for target (all code is position independent)
Thanks.
|