Blitz logo

Blitz Support :

From: Julian Cummings (cummings_at_[hidden])
Date: 2004-03-10 14:04:39


Hello Yoann,

Le Farfadet Spatial wrote:

>
> Hello.
>
> Congratulation for the Blitz++ library. It is really hepfull and
> efficient.
>
> I am working on some code for OpenOffice.org. I wanted to use
> Blitz++ but I have to be sure that the library could be compile by :
>
> -- Sun's compiler Forte 5.3 ;
> -- gcc und MacOs X and *BSD (I believe that the answer is yes) ;
> -- Visual C++ 6.0
>
> Could you tell me if this compilers are supported by your library.
>
I'm not familiar with Sun's compiler Forte 5.3. I recall that the old
SunPRO compilers
had very poor support for templates. There is definitely no direct
support for the Sun
compiler in the blitz configure script. The script has an option
--with-cxx=COMPILER,
but there is no setting available for the Sun compiler. What you could
try is to go ahead
and configure with the gcc compiler to produce Makefiles and a
<blitz/config.h> file. Then
try to make the library using the CXX environment variable to override
the name of the
compiler command, changing it from g++ to whatever the Sun compiler is
called. If you
run GNU make with the -e flag, environment variable settings will
override values in the
Makefiles, allowing you to try changing settings without editing the
Makefiles. If the build
of the blitz library or testsuite fails, you may need to edit
<blitz/config.h> to accommodate
the feature set supported by the Sun C++ compiler. I'm not sure I can
get access to a machine
with this compiler, but I can try to answer questions if you run into
trouble with this.

I agree that gcc under MacOS and *BSD should handle blitz OK, although
I've never tried it.
As for VC++ 6.0, I doubt it. I remember this version of VC++ had lots
of issues with missing standard header files and template support. It's
more likely to work with VC++ 7.0
and is definitely supported under VS .NET 2003. If you want to try with
VC++ 6.0, you
will need to create project files for compiling the blitz library and
the testsuite codes, similar to what is in the .zip file for VS .NET
2003. (I don't think these project files are backwards
compatible to VC++ 6.0.) To build the blitz library, just make a
library project with the file
src/globals.cpp as the only source and with the blitz subdirectory on
the include file search
path. To make a project file for building a testsuite application, just
compile the file from
the testsuite subdirectory and link it against blitz.lib. Once again,
you will need an
appropriate <blitz/config.h> file. You can start with the one in the
.zip file for VS .NET
2003. You may have to edit it and make changes for features that were
not supported in
the earlier VC++ 6.0 compiler. This would be the basic approach for
trying to make blitz
work with this compiler. Again, I can try to answer questions as they
arise, but I no longer
have access to this old compiler.

Good luck,
Julian C.

-- 
Dr. Julian C. Cummings                       E-mail: cummings_at_[hidden]
California Institute of Technology           Phone:  626-395-2543
1200 E. California Blvd., Mail Code 158-79   Fax:    626-584-5917
Pasadena, CA 91125