Hi Bin,

I've never done anything wih Code::Block, but your error says that MEEP is
not installed with hfd5 capabilities. This means that your hdf5 libraries
are not in your standard folders and you gave an incorrect folder with the
LDFLAGS and CPPFLAGS variables when configuring the installation
(./configure), If this is the case MEEP will give a warning and install
without HDF5. Maybe this is different for Code::Block?
I'm not sure what you are trying to do, but isn't it just easier to use MEEP
the standard way? Works fine for me.

Arthur


On 20 September 2010 05:45, Bin Huang <[email protected]> wrote:

> Hi guys,
>
> Have anyone tried to put meep source codes in CODE::BLOCK IDE? I am having
> trouble with compiling the program with hdf5 libraries.
>
> If I would like to implement a specific problem at a C++ level, are the
> following steps right?
> 1) put all the code in /src folder in code::Block, ignore the files in
> /libctl folder. Include the header files, configure.h in the project.
> 2) Write a class file that defines the structure, cavity, source etc.
> 3) Write a main function in that new class file to implement the solving
> process flow.
>
> to link hdf5 libraries, i tried the following: ( I am using version 1.6.10)
> 1) settings>compiler and debugger > linker settings
> add all the files in hdf5/lib
> 2) include "H5Cpp.h" in my new class file "test.cpp"
> 3) settings> Global variables
> set "base" as the parent folder for hdf5
> set "include" as hdf5/include
> set "lib" as hdf/lib
>
> After I've done all this, I am still getting
>
> huang...@ubuntu:~/Desktop/Meep_codeblk/bin/Debug$ ./Meep
> time for set_epsilon = 0.064785 s
> creating output file "./eps-000000.00.h5"...
> meep: not compiled with HDF5, required for HDF5 output
>
>
> Please help me if you have done something similar in Code::Block or other
> IDEs. Thanks in advance.
> --
> Bin Huang (Bryan)
> MIT Graduate Student '10
> Computation for Design and Optimization
> (+65)98947649
> _______________________________________________
> meep-discuss mailing list
> [email protected]
> http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss
>
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to