This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 1.7.9: static const std::string initialization lost in child process when using fork, dlopen


On Sun, 2011-08-21 at 18:19 -0400, Christopher Faylor wrote:
> 're reporting.
> 
> If you don't want to try a snapshot for some reason then you could also
> try setting the base address of the DLL by using the --auto-image-base
> option when linking the DLL.

I used 

g++ -Wall -I. -shared -g -c dll.cpp -o dll.o
g++ -Wall -shared -o libdll.dll dll.o
g++ -Wall -I. -g -c dlltest.cpp -o dlltest.o
g++ -Wall -o dlltest dlltest.o -L. -ldll -Wl,--enable-auto-image-base

I still have the stackdump problem.

I used hd to look at the files I created with emacs and there are no
strange characters.

tomdean


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]