‘strcmp’ was not declared in this scope

When I try to complier a program, there are some errors happened.


main.cpp: In function ‘std::vector<std::basic_string<char> > getCmdLineParamString(std::string, int, int, const char**)’:
main.cpp:47:34: error: ‘strcmp’ was not declared in this scope
In file included from main.cpp:7:0:
BFSCfourier.h: In copy constructor ‘fft<N, rT, FT>::fft(const fft<N, rT, FT>&) [with int N = 2, rT = double, FT = std::complex<double>]’:
main.cpp:198:22: instantiated from here
BFSCfourier.h:155:3: error: ‘memcpy’ was not declared in this scope

However I have added the header files like that
#include <algorithm>
#include <iostream>
#include <fstream>
#include <sstream>
#include "BFSCfourier.h"
#include "BFSCVector1.3.hpp"

So what happened? Who can tell me?

Thanks
strcmp is in <string> and memcpy is in <string.h> (IIRC)

They are both in <string.h>

#include <cstring>
Last edited on
Topic archived. No new replies allowed.