[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] org-babel-C-ensure-main-wrap fails unless I add exit(0)
From: |
Dov Grobgeld |
Subject: |
[O] org-babel-C-ensure-main-wrap fails unless I add exit(0) |
Date: |
Wed, 4 Apr 2012 11:13:51 +0300 |
When running a babel C session under Linux/gcc I do not get any error unless I add exit(0) as part of the C-code snippet. For some to me not understood reason my program exits with error code=4, which is caught by org-babel-eval and the printed output is not inserted into my buffer . I solved this by adding `#include <stdlib.h>` and `exit(0);` as part of org-babel-C-ensure-main-wrap .
Should I prepare this as patch?
Regards,
Dov
- [O] org-babel-C-ensure-main-wrap fails unless I add exit(0),
Dov Grobgeld <=