
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