I tried to compile some code that I've been working with and compiled several time only today I'm getting A LOT of compiler errors. This one in particular is bothering me:
I get
"c:\dev-cpp\fabsim\globalmeta.cpp(71) : error C2064: term does not evaluate to a function"
from VSC 6.0.
the piece its talking about is:
Code:
int VolTableG::bindNext(VolTableG * next)
//Assign volume as next in list
{
if(next()) next->myNext = next();
myNext = next;
return 1;
}
which refers to:
Code:
VolTableG * VolTableG::next()
//get next Volume in list
{
return myNext;
}
renaming the variable did work, defining the namespace didn't, odd that I didn't have this problem compiling the other day...
wanna take a shot at this one:
"c:\dev-cpp\fabsim\datastamp.h(32) : error C2143: syntax error : missing ')' before ';'
c:\dev-cpp\fabsim\datastamp.h(32) : error C2143: syntax error : missing ')' before ';'
c:\dev-cpp\fabsim\datastamp.h(32) : error C2460: 'string' : uses 'DataStamp', which is being defined"
reffering to: DataStamp(tsDBtype db);
in:
Code:
class DataStamp
{
public:
DataStamp();
DataStamp(tsDBtype db);
~DataStamp();
bool add(tsData &ts);
bool update(tsData &ts);
void remove(tsData &ts);
TimeStmp retrieve(tsData &ts);
setDB(tsDBtype db);
cleanup();
private:
tsData objKey1; //Timstamp sample
tsDBtype myDB; //Location of DB
ulong DBSize; //Entries added to DB
ulong activeTScount; //Active Entries
int seekLocation(tsData &ts);
};
BTW definitions.h has "#define tsDBtype string"
I'm interested to know why these files compiled the other day and not today... could adding the string.h to the mix have caused this?
Is "string.h" the standard one that comes with most compilers or a custom one that you wrote yourself? Also, what type of variable is "string" anyway? Presumably it's a class of some sort that you wrote? Finally, what compiler are you using? It looks like Visual C++. Is that right?
"A problem well stated is a problem half solved.” - Charles F. Kettering
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.