memset gnu compiler
Posted: Tue Mar 01, 2011 9:44 am
In order to avoid these 'memset' and 'strlen' errors during compilation with GNU compiler:
$; make
/opt/mvapich-gnu-gen2-0.9.9/bin/mpiCC -g -Wunused -DLinux_x8664 -I/opt/mvapich-gnu-gen2-0.9.9//include -I/usr/lib64 -I/g/g91/correaa/usr/include -DIA32 -DUSE_FFTW -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_MPI -DSCALAPACK -DADD_ -DAPP_NO_THREADS -DXML_USE_NO_THREADS -DUSE_XERCES -DTARGET='"hera-mpichgcc"' -c -o StructureFactor.o StructureFactor.C
StructureFactor.C: In member function 'void StructureFactor::update(const std::vector<std::vector<double, std::allocator<double> >, std::allocator<std::vector<double, std::allocator<double> > > >&, const Basis&)':
StructureFactor.C:90: error: 'memset' was not declared in this scope
make: *** [StructureFactor.o] Error 1
I suggest to
#include<cstring>
at the top of StructureFactor.C and SampleWriter.C
I suggest this based on gcc 4.4 and qbox 1.53.2. -- Thanks
$; make
/opt/mvapich-gnu-gen2-0.9.9/bin/mpiCC -g -Wunused -DLinux_x8664 -I/opt/mvapich-gnu-gen2-0.9.9//include -I/usr/lib64 -I/g/g91/correaa/usr/include -DIA32 -DUSE_FFTW -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_MPI -DSCALAPACK -DADD_ -DAPP_NO_THREADS -DXML_USE_NO_THREADS -DUSE_XERCES -DTARGET='"hera-mpichgcc"' -c -o StructureFactor.o StructureFactor.C
StructureFactor.C: In member function 'void StructureFactor::update(const std::vector<std::vector<double, std::allocator<double> >, std::allocator<std::vector<double, std::allocator<double> > > >&, const Basis&)':
StructureFactor.C:90: error: 'memset' was not declared in this scope
make: *** [StructureFactor.o] Error 1
I suggest to
#include<cstring>
at the top of StructureFactor.C and SampleWriter.C
I suggest this based on gcc 4.4 and qbox 1.53.2. -- Thanks