Hi there,

the build of meep 0.10.1 fails on openSUSE 11.0 with gcc 4.3.1

---------
/bin/sh ../libtool --tag=CXX   --mode=compile 
g++ -DHAVE_CONFIG_H -I. -I..  -I../src -pthread  -fmessage-length=0 -Wall 
-D_FORTIFY_SOURCE=2 -fstack-protector -O2 -MT 
update_e_from_d.lo -MD -MP -MF .deps/update_e_from_d.Tpo -c -o 
update_e_from_d.lo update_e_from_d.cpp
 
g++ -DHAVE_CONFIG_H -I. -I.. -I../src -pthread -fmessage-length=0 -Wall 
-D_FORTIFY_SOURCE=2 -fstack-protector -O2 -MT 
update_e_from_d.lo -MD -MP -MF .deps/update_e_from_d.Tpo -c 
update_e_from_d.cpp -o update_e_from_d.o
update_e_from_d.cpp: In member function 'void 
meep::fields_chunk::update_e_from_d()':
update_e_from_d.cpp:91: error: 'memcpy' was not declared in this scope
make[3]: *** [update_e_from_d.lo] Error 1
make[3]: Leaving directory `/usr/src/packages/BUILD/meep-0.10.1/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/src/packages/BUILD/meep-0.10.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/packages/BUILD/meep-0.10.1'
make: *** [all] Error 2
---------


Meep builds with the following patch:
---------------------
diff --git a/src/meep.hpp b/src/meep.hpp
index dbd23d2..71b8589 100644
--- a/src/meep.hpp
+++ b/src/meep.hpp
@@ -17,9 +17,10 @@
 #ifndef MEEP_H
 #define MEEP_H
 
-#include <stdio.h>
-#include <math.h>
+#include <cstdio>
+#include <cmath>
+#include <cstring>
 
 #include "meep/vec.hpp"
 #include "meep/mympi.hpp"
---------------------

Regards
Werner
PS: Is there a bug tracker for meep?

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

Reply via email to