Try adding the -pthread and -lpthread options to your compilation command line
-- Manoj Mani Chandra wrote: > Hi! > After resolving the eps() issue the pthread thing cropped up > again!...Initially I thought it was because I commented out some lines > but this time it's appearing even when I try to compile the full program... > > #include <meep.hpp> > using namespace meep; > double eps(const vec &p); > int main(int argc,char **argv) > { > initialize mpi(argc,argv); > double resolution=20; > volume v = vol2d(5,10,resolution); > structure s(v,eps,pml(1.0)); > fields f(&s); > > f.output_hdf5(Dielectric,v.surroundings()); > > double freq = 0.3,fwidth=0.1; > gaussian_src_time src(freq,fwidth); > f.add_point_source(Ey,src,vec(1.1,2.3)); > while (f.time() < f.last_source_time()) > { > f.step(); > } > > f.output_hdf5(Hz,v.surroundings()); > > return 0; > } > > double eps(const vec &p) > { > if (p.x() < 2 && p.y() < 3) > return 12.0; > return 1.0; > } > > [EMAIL PROTECTED] /usr/home/mc/MEEP files]# g++ `pkg-config --cflags meep` > test1.cpp -o test1 `pkg-config --libs meep` > /usr/local/lib/libhdf5.so: undefined reference to `pthread_equal' > /usr/local/lib/libhdf5.so: undefined reference to `pthread_setcancelstate' > > Thanks for all the help:) > Mani chandra > Physics sophomore > IIT Kanpur > > > ------------------------------------------------------------------------ > Save all your chat conversations. Find them online. > <http://in.rd.yahoo.com/tagline_webmessenger_3/*http://in.messenger.yahoo.com/webmessengerpromo.php> > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > meep-discuss mailing list > meep-discuss@ab-initio.mit.edu > http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss _______________________________________________ meep-discuss mailing list meep-discuss@ab-initio.mit.edu http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss