[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: R_X86_64_32S error building a shared library

From: Adam Nielsen
Subject: Re: R_X86_64_32S error building a shared library
Date: Tue, 27 Jan 2009 08:33:07 +1000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv: Gecko/20081215 Thunderbird/ Mnenhy/

$ g++ -fPIC -c -o main.o main.cpp -I/usr/include/boost-1_37/ && g++ -o main.o -shared

This works since main.cpp is being compiled to main.o with PIC. However, Boost is not involved here so it proves nothing about Boost.

It does prove something about Boost to me - as soon as I add the Boost libraries to the above program I get the error, which implies that something isn't compiled with -fPIC. Since Boost was the only thing added, Boost must have been compiled without -fPIC.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]