Farid Zaripov wrote:
-----Original Message-----
From: Martin Sebor [mailto:[EMAIL PROTECTED] On Behalf Of Martin Sebor
Sent: Monday, July 09, 2007 7:44 AM
To: stdcxx-dev@incubator.apache.org
Subject: Re: Intel C++ build issues on Windows
We'll also need a solution for those executables (but we can worry
about that once we're done enhancing the test driver).
We can install the similar handlers in each example, but I don't
see any 2) of 3) popups in examples at the moment.
But that could change. I'd like to come up with a reliable
mechanism that would let us prevent these popups in both
tests and examples, just in case. Perhaps a good place for it
would be the <examples.h> header, although preferably without
relying on the coupling between the header and the example sources:
https://issues.apache.org/jira/browse/STDCXX-425
I can make the function i.e. init_example() in which all needed hooks
are installed, but this function should be invoked from main() in all
examples.
I was hoping to do it in a non-intrusive way. For instance, on UNIX
we could link with (or preload) a shared library that would in its
startup code run the function. Or we could use a command line option
to the preprocessor (such as gcc -include <file>) to include a header
containing the definition of such a function:
http://gcc.gnu.org/onlinedocs/gcc-4.2.0/gcc/Preprocessor-Options.html#index-include-634
Does MSVC have something similar?
Martin