GNU C compiler: Adding #include statements

recently, g++ has stopped to include some standard headers automatically. To make old code compile again, just include those headers manually. But: which ones do we need?

NOTE: <header> is usually different from <header.h> !

#include <string.h>    // strcmp(), strstr(), strlen(),  memcpy(), memset()
#include <stdint.h>    // uint32_t, uint16_t, uint8_t
#include <stdlib.h>    // malloc(), free(), abort(),     atoi(), atol()

#include <sys/types.h> // uint, ulong
 
fastdev/gcc.txt · Last modified: 2010/05/11 08:46 by kresse · [Old revisions]
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki