G
Gary Wessle
Hi
in a header file I have
********************************
#ifndef READ_DATA_H
#define READ_DATA_H
#include <string>
using string::string; <<---- line 6
********************************
but when I $make I get error in reference to using string::string
fred@debian:~/myPrograms/common$ make
g++ -c -o read_data.o read_data.cpp
read_data.h:6: error: 'string' has not been declared
read_data.h:6: error: expected nested-name-specifier before 'string'
read_data.h:6: error: 'string' has not been declared
in a header file I have
********************************
#ifndef READ_DATA_H
#define READ_DATA_H
#include <string>
using string::string; <<---- line 6
********************************
but when I $make I get error in reference to using string::string
fred@debian:~/myPrograms/common$ make
g++ -c -o read_data.o read_data.cpp
read_data.h:6: error: 'string' has not been declared
read_data.h:6: error: expected nested-name-specifier before 'string'
read_data.h:6: error: 'string' has not been declared