help-gplusplus
[Top][All Lists]
Advanced

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

Re: Running initial code when in library


From: Paul Pluzhnikov
Subject: Re: Running initial code when in library
Date: Tue, 23 May 2006 11:59:07 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux)

"Paulo Matos" <address@hidden> writes:

> I have singleton and everything should work fine but it is not:

In that case, two possibilities come to mind:
- you didn't build your exe correctly (always link C++ code with 'g++')
- the code containing global 'proxy p;' objects isn't actually
  linked into the executable at all.

The second explanation is more likely, especially if that code is
supposed to be linked in from an archive library.

Suggested reading:
http://webpages.charter.net/ppluzhnikov/linker.html

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.


reply via email to

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