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
memset gnu compiler
Forum rules
You must be a registered user to post in this forum. Registered users may also post new topics if they consider that their subject do not correspond to any topic already present on the forum.
You must be a registered user to post in this forum. Registered users may also post new topics if they consider that their subject do not correspond to any topic already present on the forum.
-
- Site Admin
- Posts: 167
- Joined: Tue Jun 17, 2008 7:03 pm
Re: memset gnu compiler
Thanks Alfredo. This will be included in the next release.