public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* How do I debug a global object in a DLL??
@ 2001-11-11  8:26 Mark Paulus
  0 siblings, 0 replies; 4+ messages in thread
From: Mark Paulus @ 2001-11-11  8:26 UTC (permalink / raw)
  To: cygwin

Hi,

I have this problem where I am defining a global object
within a dll, but somehow that global definition is not
making it into the main executable.  Everything works
fine if the program is statically bound, but I want to know
how to go about debugging the program initialization
steps, to see where the problem with this global
objects constructor....

Thanks.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How do I debug a global object in a DLL??
       [not found]   ` <200111142253.RAA01640@acestes-fe0.ultra.net>
@ 2001-11-11  8:26     ` Larry Hall (RFK Partners, Inc)
  0 siblings, 0 replies; 4+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2001-11-11  8:26 UTC (permalink / raw)
  To: Mark Paulus, cygwin

OK, that taps me out! ;-)

Larry


At 05:53 PM 11/14/2001, Mark Paulus wrote:
>Yes, it is being exported.  I have put a -Wl,-export-all-symbols in
>the .dll link step, and when I look in the .def file (I have
>also added a -Wl,-output-def=<file> statement).  
>
>
>
>On Wed, 14 Nov 2001 17:36:58 -0500, Larry Hall \(RFK Partners, Inc\) wrote:
>
> >At 05:34 PM 11/14/2001, Mark Paulus wrote:
> >>Hi,
> >>
> >>I have this problem where I am defining a global object
> >>within a dll, but somehow that global definition is not
> >>making it into the main executable.  Everything works
> >>fine if the program is statically bound, but I want to know
> >>how to go about debugging the program initialization
> >>steps, to see where the problem with this global
> >>objects constructor....
> >
> >
> >
> >Did you export the variable from the DLL?
> >
> >
> >
> >Larry Hall                              lhall@rfk.com
> >RFK Partners, Inc.                      http://www.rfk.com
> >838 Washington Street                   (508) 893-9779 - RFK Office
> >Holliston, MA 01746                     (508) 893-9889 - FAX
>
>
>
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting:         http://cygwin.com/bugs.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How do I debug a global object in a DLL??
       [not found] <200111142235.RAA03825@acestes-fe0.ultra.net>
@ 2001-11-11  8:26 ` Larry Hall (RFK Partners, Inc)
  2001-11-11  8:26   ` Mark Paulus
       [not found]   ` <200111142253.RAA01640@acestes-fe0.ultra.net>
  0 siblings, 2 replies; 4+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2001-11-11  8:26 UTC (permalink / raw)
  To: Mark Paulus, cygwin

At 05:34 PM 11/14/2001, Mark Paulus wrote:
>Hi,
>
>I have this problem where I am defining a global object
>within a dll, but somehow that global definition is not
>making it into the main executable.  Everything works
>fine if the program is statically bound, but I want to know
>how to go about debugging the program initialization
>steps, to see where the problem with this global
>objects constructor....



Did you export the variable from the DLL?



Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How do I debug a global object in a DLL??
  2001-11-11  8:26 ` Larry Hall (RFK Partners, Inc)
@ 2001-11-11  8:26   ` Mark Paulus
       [not found]   ` <200111142253.RAA01640@acestes-fe0.ultra.net>
  1 sibling, 0 replies; 4+ messages in thread
From: Mark Paulus @ 2001-11-11  8:26 UTC (permalink / raw)
  To: cygwin

Yes, it is being exported.  I have put a -Wl,-export-all-symbols in
the .dll link step, and when I look in the .def file (I have
also added a -Wl,-output-def=<file> statement).  



On Wed, 14 Nov 2001 17:36:58 -0500, Larry Hall \(RFK Partners, Inc\) wrote:

>At 05:34 PM 11/14/2001, Mark Paulus wrote:
>>Hi,
>>
>>I have this problem where I am defining a global object
>>within a dll, but somehow that global definition is not
>>making it into the main executable.  Everything works
>>fine if the program is statically bound, but I want to know
>>how to go about debugging the program initialization
>>steps, to see where the problem with this global
>>objects constructor....
>
>
>
>Did you export the variable from the DLL?
>
>
>
>Larry Hall                              lhall@rfk.com
>RFK Partners, Inc.                      http://www.rfk.com
>838 Washington Street                   (508) 893-9779 - RFK Office
>Holliston, MA 01746                     (508) 893-9889 - FAX




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-11-14 23:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-11  8:26 How do I debug a global object in a DLL?? Mark Paulus
     [not found] <200111142235.RAA03825@acestes-fe0.ultra.net>
2001-11-11  8:26 ` Larry Hall (RFK Partners, Inc)
2001-11-11  8:26   ` Mark Paulus
     [not found]   ` <200111142253.RAA01640@acestes-fe0.ultra.net>
2001-11-11  8:26     ` Larry Hall (RFK Partners, Inc)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).