Search notes:

gcc -Wp

gcc -Wp: pass options to the preprocessor.

prog.c

The following program uses printf, yet without including stdio.h. Additionally, the macro FOO is not defined in the translation unit:
int main() {
    printf(FOO);
}
Github repository about-gcc, path: /options/Wp/prog.c

Makefile

When the following makefile invokes gcc, it uses the -Wp option to pass the -D and -include options to the preprocessor so that FOO is defined and stdio.h included.
a.out: prog.c
	gcc -Wp,-DFOO='"Hello world\n"' -Wp,-include,stdio.h $< -o $@
Github repository about-gcc, path: /options/Wp/Makefile

See also

GCC options

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759390314, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/C-C-plus-plus/GCC/options/Wp/index(56): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78