Re: Zerolink error
Re: Zerolink error
- Subject: Re: Zerolink error
- From: Nick Kledzik <email@hidden>
- Date: Mon, 29 Dec 2003 20:26:37 -0800
This is an unfortunate limitation of our current C++ compiler's
implementation of templates and ZeroLink. We are working on a
solution.
It is fall out from the fact that C++ has no concept of shared
libraries. If you create a C++ application and a C++ shared library,
you will find that the application and library each have their own C++
world. For instance, if you had a common singleton class, the app and
the library would each have their own singleton! This is a general
problem with C++, not specific to Mac OS X or ZeroLink.
ZeroLink works by treating each .o file as a shared library and linking
them at runtime. Our C++ compiler helps enforce that the separate
worlds by implicitly marking many compiler generated methods
private_extern and private_extern is incompatible with ZeroLink.
Nick Kledzik
Developer Tools
Apple Computer, Inc.
On Dec 29, 2003, at 6:03 PM, Patrick A. Klein wrote:
After some fiddling, it boils down to the following. For some reason,
this code won't run with ZeroLink enabled:
#include <fstream>
class ofstreamT: public std::ofstream
{
public:
ofstreamT(void) {};
};
int main (int argc, char * const argv[]) {
ofstreamT out;
return 0;
}
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.