Author: Gian-Carlo Pascutto
Date: 13:15:30 08/29/05
typedef struct {
int a;
int b;
} data_t;
typedef struct
{
volatile data_t datalist[CONSTANT];
}
bigstruct_t;
data_t get_data(int i)
{
return globalpointer->bigstruct.datalist[i];
}
Apparently GNU C++ refuses to compile this in C++ mode (works fine when
compiling as C code). Any proposed fixes?
a.c: In function `data_s get_data(int)':
a.c:443: error: no matching function for call to `data_s::._47(volatile
data_s&)'
b.h:133: error: candidates are: data_s::._47(const data_s&)
--
GCP
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.