DaanDeMeyer / reproc

A cross-platform (C99/C++11) process library
MIT License
552 stars 65 forks source link

error: expected '}' #46

Closed yurivict closed 4 years ago

yurivict commented 4 years ago

I tried the example from README, but it turns out that there is an unclosed brace in the installed header:

$ cc -o proc proc.cpp `pkg-config --cflags --libs reproc++`
proc.cpp:8:2: error: expected '}'
}
 ^
/usr/local/include/reproc/drain.h:6:12: note: to match this '{'
extern "C" {
           ^
1 error generated.

reproc-14.1.0 FreeBSD 12.2 clang-10

yurivict commented 4 years ago

Apparently, it is broken as a C++ code, but works as a C code. The C++ ifdef in the header is broken.

DaanDeMeyer commented 4 years ago

That's pretty embarassing, let me quickly fix that and put out a new release.

DaanDeMeyer commented 4 years ago

Released a new version with the fix. Thanks for reporting!