Eric Schulte writes: Hi Eric, You will find in attachment three patches + First patch, modify org-babel-eval to load compilation-mode in case of errors + Second patch, modify org-babel-eval to deal with Microsoft visual C++ errors by concatenating the standard output with the standard error + Third patch, add to ob-C the missing function org-babel-expand-body:cpp Best Ernesto