Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: use of undeclared identifier 'getline'; did you mean 'std::getline'? #203

Open
yurivict opened this issue Dec 20, 2020 · 0 comments

Comments

@yurivict
Copy link

yurivict commented Dec 20, 2020

Either #include <stdio.h> or std:: seems to be missing:

/wrkdirs/usr/ports/misc/thrill/work/thrill-12c5b59bca66df93b66628b3829027bd0f110dd9/misc/json2profile.cpp:527:18: error: use of undeclared identifier 'getline'; did you mean 'std::getline'?
    while ((rb = getline(&line, &len, in)) >= 0) {
                 ^~~~~~~
                 std::getline
/usr/include/c++/v1/istream:1507:1: note: 'std::getline' declared here
getline(basic_istream<_CharT, _Traits>& __is,
^
/wrkdirs/usr/ports/misc/thrill/work/thrill-12c5b59bca66df93b66628b3829027bd0f110dd9/misc/json2profile.cpp:527:18: error: no matching function for call to 'getline'
    while ((rb = getline(&line, &len, in)) >= 0) {
                 ^~~~~~~
/usr/include/c++/v1/istream:1507:1: note: candidate template ignored: could not match 'basic_istream<type-parameter-0-0, type-parameter-0-1>' against 'char **'
getline(basic_istream<_CharT, _Traits>& __is,
^
2 errors generated.

FreeBSD 11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant