I have a C ++ application that works in real compilers (I will compile it using eclipse). Now I need to compile it on a very old version of the compiler (gcc / C ++ v2.96) on Redhat 7.3 with Kdevelop.
When I compile the application, it gives the following error: swprintf uneclared. It is included in the wchar.h header, but I saw this file in the RH7.3 OS and only declared this function if __USE_UNIX98 __USE_ISOC99 was declared.
How to enable __USE_UNIX98?
GNU libc , , <features.h>. , <features.h> __USE_UNIX98 .
<features.h>
__USE_UNIX98
, , ( ) , -D_GNU_SOURCE . , , , , , , -D_POSIX_C_SOURCE=200112L. , , , /usr/include/features.h.
-D_GNU_SOURCE
-D_POSIX_C_SOURCE=200112L
/usr/include/features.h
<features.h>, _XOPEN_SOURCE 500 , __USE_UNIX98
_XOPEN_SOURCE
Source: https://habr.com/ru/post/1568024/More articles:Как установить правильный часовой пояс в Laravel 4? - timezoneUnable to subclass PFQueryTableViewController - iosEscaping special JavaScript characters from ASP.NET - javascriptDeedle: grouping time series in the top 3 and rest - f #How to determine programmatically in C # if IPv6 is supported? - c #Finding data using Linq for a dataset - c #Where does it come from? - stringLoopback, как настроить вложенные отношения - javascriptDouble click to enlarge image in WP8? - c #https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1568029/spring-data-repository-detached-entity-passed-to-persist&usg=ALkJrhg6F-80io3JHH3lswc5ViutAVn39gAll Articles