Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2007-09-14 22:14:44


Vladimir Prus wrote:
> Beman Dawes wrote:
>
>> Compile and test (cygwin)
>> =========================
>>
>> g++ -o static_test caller.cpp callee.cpp
>> static_test
>>
>> g++ -c callee.cpp
>
> You'd better off with:
>
> g++ -c -fPIC callee.cpp

That produce a warning: -fPIC ignored for target (all code is position
independent), and the test still crashes.

>
>> g++ -shared -o callee.dll callee.o
>> g++ -o dll_test caller.cpp -L./ -lcallee
>
> This -L./ sounds strange. What's wrong with:
>
> -L.

Same crash.

The same crash also occurs when I build with bjam.

> ?
>
> I don't think that either of those things should cause a backtrace,
> but everything is possible with cygwin. Does it work with mingw?

The problem isn't just with cygwin. It happens with gcc on some
non-Windows operating systems. I'll try to get some more specifics on that.

--Beman


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk