------------------------------------------ 由 RicarDog 在 2008/1/5 22:47 发送 Disable the incremental build option (/Gm), then do a full rebuild. It worked for me. 由 Shiv S.Kushwaha 在 2008/2/27 22:16 发送 I have found an alternate way for the time beging to avoid C2471 error but it works only in the case of successful release build. for this click Build menu than Configuration manager than create a new setting from release settings. Change following things in your project settings as : C\C++ | General | Debug Information format | C7 Compatible (/Z7) C\C++ | Code Generation | Enable String Pooling | Yes (/GF) Linker | General Debug Info | Yes (/DEBUG) after these settings. Rebuild your application. I''m sure you will be able to resolve the pdb updation issue if it is really not hampering your other settings. Hope it will be helpful to you. regards 由 ThisIsARequiredField 在 2009/1/8 21:55 发送 Sometimes full clean and rebuild fixes issue. 由 inigo 在 2009/11/13 8:00 发送 This worked for me: Project properties|C/C++|General|Debug Information format->Disabled --MinGW------------------------------------------- cstdlib:230:11: error: '::strtoull' has not been declared{ C:\MinGW\lib\gcc\mingw32\4.9.3\include\c++\cstdlib #if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC +#define strtoull strtoul using ::atoll; using ::strtoll; using ::strtoull; } c:\mingw\include\stdio.h:523:32: error: 'locale_t' has not been declared{ |--- stdlib.h.bak 2016-12-15 22:33:38 +0900 |+++ stdlib.h 2016-12-15 22:16:08 +0900 |@@ -705,11 +705,13 @@ | * they may actually be unusable without MSVCR80.DLL onwards, because of | * the difficulty in acquiring a reference to a _locale_t object). | */ |+ #if 0 | _CRTIMP __cdecl __MINGW_NOTHROW | __int64 _strtoi64_l(const char *, char **, int, _locale_t); | | _CRTIMP __cdecl __MINGW_NOTHROW | unsigned __int64 _strtoui64_l(const char *, char **, int, _locale_t); |+#endif | #endif /* Win-Vista || MSVCR80.DLL || later */ | | /* Type long long analogues for MSVCRT.DLL specific type long functions; |--- stdio.h.bak 2016-12-15 22:32:20 +0900 |+++ stdio.h 2016-12-15 22:16:20 +0900 |@@ -518,6 +518,7 @@ | * explanation in , as to why you may be unable to create, | * or otherwise acquire a reference to, a locale_t object. | */ |+ #if 0 | _CRTIMP __cdecl __MINGW_NOTHROW | int _printf_p_l (const char *, locale_t, ...); | |@@ -535,6 +536,7 @@ | | _CRTIMP __cdecl __MINGW_NOTHROW | int _vsprintf_p_l (char *, size_t, const char *, locale_t, __VALIST); |+#endif | #endif /* included in its own right */ | #endif /* MSVCR80.DLL and descendants, or MSVCRT.DLL since Vista */ | } raise_error in mingw64{ ------------------------------------------ error 2022-04-24 20:07:55.666 RT_D_DEBUG [iface_function_helper ] iface_function_helper---0 (../src/LuaExtension.log.cxx:1038) 2022-04-24 20:07:55.666 RT_D_DEBUG [check_pane_object ] curBufferIndex(5) (../src/LuaExtension.log.cxx:368) 2022-04-24 20:07:57.166 RT_D_DEBUG [push_iface_function ] name(MarkerDelete) =i(193) (../src/LuaExtension.log.cxx:1195) 2022-04-24 20:07:57.166 RT_D_DEBUG [cf_pane_iface_function ] func->name(MarkerDelete) =funcidx(-1001001) (../src/LuaExtension.log.cxx:1185) 2022-04-24 20:07:57.166 RT_D_DEBUG [iface_function_helper ] iface_function_helper---0 (../src/LuaExtension.log.cxx:1038) 2022-04-24 20:07:57.166 RT_D_DEBUG [check_pane_object ] curBufferIndex(-1) (../src/LuaExtension.log.cxx:368) 2022-04-24 20:07:57.166 RT_D_DEBUG [raise_error ] errMsg(Editor pane is not accessible at this time.) (../src/LuaExtension.log.cxx:143) 2022-04-24 20:07:57.166 RT_D_DEBUG [raise_error ] lua_error(0) (../src/LuaExtension.log.cxx:149) ------------------------------------------ normal 2022-04-24 21:01:18.159 RT_D_DEBUG [iface_function_helper ] iface_function_helper---0 (../src/LuaExtension.log.cxx:1038) 2022-04-24 21:01:18.159 RT_D_DEBUG [check_pane_object ] curBufferIndex(5) (../src/LuaExtension.log.cxx:368) 2022-04-24 21:03:42.222 RT_D_DEBUG [push_iface_function ] name(MarkerDelete) =i(193) (../src/LuaExtension.log.cxx:1195) 2022-04-24 21:03:42.222 RT_D_DEBUG [cf_pane_iface_function ] func->name(MarkerDelete) =funcidx(-1001001) (../src/LuaExtension.log.cxx:1185) 2022-04-24 21:03:42.222 RT_D_DEBUG [iface_function_helper ] iface_function_helper---0 (../src/LuaExtension.log.cxx:1038) 2022-04-24 21:03:42.222 RT_D_DEBUG [check_pane_object ] curBufferIndex(-1) (../src/LuaExtension.log.cxx:368) 2022-04-24 21:03:42.222 RT_D_DEBUG [raise_error ] errMsg(Editor pane is not accessible at this time.) (../src/LuaExtension.log.cxx:143) 2022-04-24 21:03:42.222 RT_D_DEBUG [raise_error ] lua_error(0) (../src/LuaExtension.log.cxx:149) 2022-04-24 21:03:42.253 RT_D_DEBUG [push_iface_function ] name(EOLMode) =i(-1) (../src/LuaExtension.log.cxx:1195) 2022-04-24 21:03:42.253 RT_D_DEBUG [iface_function_helper ] iface_function_helper---0 (../src/LuaExtension.log.cxx:1038) 2022-04-24 21:03:42.253 RT_D_DEBUG [check_pane_object ] curBufferIndex(4) (../src/LuaExtension.log.cxx:368) 2022-04-24 21:03:42.253 RT_D_DEBUG [push_iface_function ] name(GetLine) =i(121) (../src/LuaExtension.log.cxx:1195) 2022-04-24 21:03:42.253 RT_D_DEBUG [cf_pane_iface_function ] func->name(GetLine) =funcidx(-1001001) (../src/LuaExtension.log.cxx:1185) ------------------------------------------ source #if !defined(LUAI_THROW) /* { */ #if defined(__cplusplus) && !defined(LUA_USE_LONGJMP) /* { */ /* C++ exceptions */ #define LUAI_THROW(L,c) throw(c) #define LUAI_TRY(L,c,a) \ try { a } catch(...) { if ((c)->status == 0) (c)->status = -1; } #define luai_jmpbuf int /* dummy variable */ #elif defined(LUA_USE_POSIX) /* }{ */ /* in POSIX, try _longjmp/_setjmp (more efficient) */ #define LUAI_THROW(L,c) _longjmp((c)->b, 1) #define LUAI_TRY(L,c,a) if (_setjmp((c)->b) == 0) { a } #define luai_jmpbuf jmp_buf #else /* }{ */ /* ISO C handling with long jumps */ #define LUAI_THROW(L,c) longjmp((c)->b, 1) #define LUAI_TRY(L,c,a) if (setjmp((c)->b) == 0) { a } #define luai_jmpbuf jmp_buf #endif /* } */ #endif /* } */ }