[vsipl++] Compile problems with reference implementation and gnu 3.4.5
Stefan Seefeld
stefan at codesourcery.com
Wed Oct 10 17:10:50 UTC 2007
Everett,
Schnetzer, Everett wrote:
> The problem was in the Makefile, in that it did not have the following
> compile def's:
[...]
> They were in the GNUmakefile produced by the configuration script. I
> would have expected these to be in acconfig.hpp. For our port to MinGW,
> I manually put them in acconfig.hpp so application Makefiles/build
> scripts don't have to define them.
Right. By default these macros are put into the build system, but you
can tell configure to store them in acconfig.hpp by using the
--disable-shared-acconfig option. (Sharing in this context refers to
building multiple build variants out of a single development environment
(and thus, set of VSIPL++ header files).
> Another problem was discovered if we include windows.h before the
> vsipl++ include files. This file is part of the MinGW distribution and
> is the main header for the Win32 API. Some other file that windows.h
> includes confuses some of the vsipl++ template instantiations. I didn't
> track down who the culprit was, but defining WIN32_LEAN_AND_MEAN is a
> work-around. Otherwise an application has to make sure all relevant
> vsipl++ .hpp files are brought in before windows.h.
>
> That seems to be it, though. The reference implementation tests now work
> in our MinGW environment.
Great, thanks for letting us know !
Regards,
Stefan
--
Stefan Seefeld
CodeSourcery
stefan at codesourcery.com
(650) 331-3385 x718
More information about the vsipl++
mailing list