A string with a newline gives an error.
printf("hello\n");
becomes (in _PyInline_...c)
printf("hello
");
which gives an error from gcc
error: missing terminating "".... etc
so it won't work with cygwin gcc (newest); somehow my
mingw gcc (older version) allows compilation.
Logged In: NO
Hi,
Silly me. I can make it work by just adding a raw prefix in
front
of the triple-quote:
m = PyInline.build(code=r""" ...printf("hello\n"); ...
This may be a good one for a new entry in PyInline's FAQ or
Tips.
Cheeeeeers