Hello,

At the following page:

  https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-C.html

// CC+ should be C++

:main
can be set to "no" to inhibit wrapping of the code block in a main function 
call.
:includes
(C & CC+ only) accepts either a single string name, or a list of names of files 
to #include in the execution of the code block.

// Spelling should be ‘explicitly'

C++ needs to explicitely include either stdio.h or <iostream>

Reply via email to