Search notes:

gcc -x

Force the compiler to compile in the specified language. Without this flag, gcc determines the language by the source file's suffex.
In the following example, foo.cpp is treated as a c file rather than a c++ file, although its suffix is .cpp:
$ gcc -x c foo.cpp
Possible values for the language are:

See also

GCC options
This stackoverflow answer
The Visual C Compiler equivalent is cl /T….

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...', 1745938934, '18.219.93.1', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/C-C-plus-plus/GCC/options/x/index(70): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78