Dear MEEP users,

 

I am trying to move from Scheme to C as I am at least a little bit familiar
with the latter. Unfortunately I cannot compile even the simplest of
examples given in the C++ tutorial (using method 2 or 3), as I get
(installed on Ubuntu using the software center):

 

g++ `pkg-config --cflags meep` foo.cpp -o foo `pkg-config --libs meep`

/tmp/ccsnL66Y.o: In function `main':

foo.cpp:(.text+0xed): undefined reference to `meep::pml(double, double,
double)'

foo.cpp:(.text+0x198): undefined reference to
`meep::fields::fields(meep::structure*, double, double, bool)'

collect2: ld returned 1 exit status

 

Has anyone encountered this problem before?

 

Kind regards,

Chris

 

_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to