I have code that works perfectly when compiling for 32 bit on a 64 bit Linux machine. (I am using Wine 1.6.2 on a 64 bit Linux box) The code also compiles fine when building 64 bits. However, when I attempt to link my 64 bit version I get:
Code: Select all
winegcc -g -o main main.o main.res ../../lib/wds.a ../../lib/dynace.a -lkernel -luser -lgdi -lcomdlg -lcomctl -ladvapi -lshell -lmpr -lwine -lmsvcrt -lmsimg -lm
/usr/bin/ld: ../../lib/dynace.a(Object.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
../../lib/dynace.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
winegcc: gcc failed
Not sure what to do.
Thanks!
Blake McBride