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

Reply via email to