Larry Finger wrote:
> For the first time, I am trying to build FLTK 1.1 with shared libraries. When 
> I do so, I get the followint error message:
> 
> g++ -L/usr/lib64 -Wl,-soname,libfltk.so.1.1 -ldl -lm -lXext -lX11 -shared 
> -fPIC -o libfltk.so.1.1 ...
> /usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: 
> Fl.o: relocation R_X86_64_32 against `a local symbol' can not be used when 
> making a shared object; recompile with -fPIC
> Fl.o: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> 
> I am using g++ (GCC) 4.2.1 (SUSE Linux) on x86_64. Is this a problem with g++ 
> 4.2.1, an x86_64 problem, or something else?

Which version of FLTK? If it's 1.1.7 or earlier, you should try a
1.1.8 snapshot or the svn version. IIRC, there have been fixes for
x86_64 (and building the shared libraries), but I may also be wrong.

Snapshot: http://www.fltk.org/software.php?VERSION=1.1.x-r5940

(this is also the newest svn revision).

Albrecht
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to