Problem linking on 64 bit Linux

Questions about Wine on Linux
Locked
blake1024
Level 1
Level 1
Posts: 5
Joined: Thu Nov 26, 2015 12:37 am

Problem linking on 64 bit Linux

Post by blake1024 »

Hi,

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
I checked and checked. Everything is compiled for 64 bit and not 32 bit.

Not sure what to do.

Thanks!

Blake McBride
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Re: Problem linking on 64 bit Linux

Post by dimesio »

Your Wine version is obsolete; retest in 1.8-rc2 and if the problem is still present, file a bug.
Locked