Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
fastdev:gcc [2010/03/27 16:09] – created kressefastdev:gcc [2010/05/11 08:46] (current) – added header file for uint/ulong kresse
Line 1: Line 1:
 +====== 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
  
 
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki