windows - uses undefined struct compile error - C -


संकलक नहीं जानता है where stat.h है?

त्रुटि: c: \ Projects \ ADC_HCI \ mongoose.c (745): त्रुटि C2079: 'st' अपरिभाषित स्ट्रेट '_stat64' का उपयोग करता है

  #include & lt; sys /types.h> # शामिल करें & lt; sys / stat.h & gt; स्थिर इंट एमजी_स्टेट (कॉन्स्ट चार * पथ, स्ट्रेट mgstat * stp) {struct _stat64 st; // & lt; - त्रुटि ठीक है; Wchar_t wbuf [FILENAME_MAX]; To_unicode (पथ, wbuf, ARRAY_SIZE (wbuf)); अगर (_wstat64 (wbuf, & amp; सेंट) == 0) {ok = 0; Stp- & gt; आकार = st.st_size; Stp- & gt; mtime = st.st_mtime; Stp- & gt; is_directory = S_ISDIR (st.st_mode); } और {ठीक = -1; } वापसी (ठीक है); }  

... फ़ाइलें सीधे से डाउनलोड की गईं

देखें: _wstat64 का एक पैरामीटर लेता है struct __stat64 ( दो अंडरस्कोर के साथ)। अपने वैरिएबल st को struct __stat64 के रूप में पुनः करें।


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -