Note that there are some explanatory texts on larger screens.

plurals
  1. POundeclared identifier
    primarykey
    data
    text
    <p>Need a second set of eyes. I am getting the following error:</p> <pre><code>1&gt;c:\users\thom\documents\cworkspace\barnaby\barnaby\timezone.h(15): error C2065: 'TransitionTimeInfo' : undeclared identifier </code></pre> <p>Here is the line of code on which I'm receiving the error:</p> <pre><code>Timezone(std::vector&lt;LeapSecondsInfo&gt; &amp;leapSecondsVector, std::vector&lt;unsigned char&gt; &amp;localTimeTypes, std::vector&lt;P6::UINT8&gt; &amp;stdWallIndicators, &amp;std::vector&lt;unsigned long&gt; &amp;transitionTimes, std::vector&lt;TransitionTimeInfo&gt; &amp;transitionTimesInfo, std::vector&lt;P6::UINT8&gt; &amp;utcLocalIndicators){ </code></pre> <p>This is the line for the constructor for my class. This file has the following include:</p> <pre><code>#include "stdafx.h" </code></pre> <p>And here is the salient part of the stdafx.h:</p> <pre><code>#include "targetver.h" #include "barnaby.h" #include "LeapSecondsInfo.h" #include "p6types.h" #include "Timezone.h" #include "TransitionTimeInfo.h" </code></pre> <p>And here is TransitionTimeInfo.h:</p> <pre><code>class TransitionTimeInfo { public: TransitionTimeInfo(long gmtOffset, bool daylightSavings, unsigned int abbreviationIndex){ setAbbreviationIndex(abbreviationIndex); setDaylightSavings(daylightSavings); setGmtOffset(gmtOffset); } virtual ~TransitionTimeInfo(void) {}; unsigned int getAbbreviationIndex(){ return abbreviationIndex; } void setAbbreviationIndex(unsigned int newVal){ abbreviationIndex = newVal; } bool isDaylightSavings(){ return daylightSavings; } void setDaylightSavings(bool newVal){ daylightSavings = newVal; } long getGmtOffset(){ return gmtOffset; } void setGmtOffset(long newVal){ gmtOffset = newVal; } private: long gmtOffset; bool daylightSavings; unsigned int abbreviationIndex; }; </code></pre> <p>What's more, if I click on the type name and hit F12 (Visual C++) it takes me to this file.</p> <p>Any ideas?</p> <p>Thanks.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload