Hello, when I try to compile my C++ program, the compiler says, "error: 'S_Time' does not name a type." However, that struct is defined in a header file that I #include-d in the header file that the compiler cites in the error message.
Other files are using that struct with no problems.
This is the file that it's complaining about (not actual names):
Code: Select all
#ifndef INTEGRATION_H
#define INTEGRATION_H
#include "file.h"
#include "b_sort.h"
#include "p_weeks.h"
#include "s_times.h"
struct Service_B {
S_Time s_time;
int x {0};
sys_days y;
};
vector<Service_B> make_sbs();
#endifCode: Select all
#ifndef S_TIMES_H
#define S_TIMES_H
#include "cs.h"
#include "c_web.h"
#include "c_file.h"
struct S_Time {
Cs cs;
string time;
string id;
};
void print_s_times();
vector<S_Time> get_s_times_from_cm();
#endif

