![]() |
Blitz Support : |
From: Julian Cummings (cummings_at_[hidden])
Date: 2003-10-29 12:13:59
mctimes,
You are right that there is very little to be compiled into the blitz
library.
In fact, the only source file you need to compile is src/globals.cpp. I
don't
know anything about devcpp, but you should be able to create a project file
that compiles globals.cpp into globals.o and then archives it as blitz.lib.
When you compile this file, you need to add the base directory of the blitz
distribution to the include file search path, using a -I flag or the
equivalent
in devcpp. That way, the compiler can find include files in the "blitz"
subdirectory. Also, you need to make sure you have a config.h file in this
"blitz" subdirectory. The config.h file defines a bunch of macros to
indicate
what capabilities your compiler does or does not support. This file is
normally
generated by our blitz configure script, but you will have to do this by
hand.
Fortunately, there are several sample config-foo.h files in the "blitz"
subdirectory
already. Take the one that most closely matches your compiler (try
config-g++2.7.2.h)
and copy it to config.h. You may have to edit it by hand to correctly
match your
compiler's capabilities. Then try to compile globals.cpp and create
blitz.lib.
Once you have done this, you should try to create a project file that
will compile
one of the blitz test codes in the testsuite subdirectory and link it
against blitz.lib
to create an executable. If you can get this far, then you are in
business.
Regards, Julian C.
mctimes wrote:
>I am sorry. I don't know how to post a reply under a thread. So I post a
>new one.
>
>As the document tells, blitz++ support gcc compiler. Now I am working
>with a IDE so called Devcpp which have gcc being the default compiler. I
>have problem to install and use the blitz++. First of all, it's so weird
>to "compile" the blitz++. If I don't misunderstand it, blitz++ is a
>template-based library. How can we compile such template library without
>specification?
>
>Anyway, if compilation is allowed. How can I do that? Should I create a
>project and inclde all the source code and compile it into a static
>library? I try it but still fail.
>_______________________________________________
>Blitz-support mailing list
>Blitz-support_at_[hidden]
>http://www.oonumerics.org/mailman/listinfo.cgi/blitz-support
>
>
-- 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