I am a first time meep user and am trying to use the following program
#include <stdio.h>
#include <meep.hpp>
using namespace meep;

double eps(const vec &p);

int main(int argc, char **argv)
{
initialize mpi(argc, argv); // do this even for non-MPI Meep
  double resolution = 20; // pixels per distance
  volume v = vol2d(5,10, resolution); // 5x10 2d cell
  structure s(v, eps, pml(1.0));
  fields f(&s);*/
return 0;
}

double eps(const vec &p) {
  //if (p.x() < 2 && p.y() < 3)
  //  return 12.0;
  return 1.0;
}

I can compile it using
"gcc -Wall -I/usr/local/include -c main.cpp"
But when i try to link it using
gcc -L/usr/local/lib main.o -lstdc++ -lmeep -lm

I get the error
/usr/bin/ld: Undefined symbols:
__Unwind_Resume

Can anybody please tell me what is wrong here?

Cheers,
Ram

------------------------------------------------------------------------ --------
Ram Somaraju, PhD Student
Department of Information Engineering
Research School of Information Sciences and Engineering
The Australian National University
Canberra ACT 0200
--
Tele : +61 2 61258639
Mob : +61 424 943136
Fax  : +61 2 61258660
e-mail: [EMAIL PROTECTED]
Web: http://users.rsise.anu.edu.au/~somaraju/


_______________________________________________
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to