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

Build error due to cout #1

Closed
IshankGulati opened this issue Feb 27, 2016 · 1 comment
Closed

Build error due to cout #1

IshankGulati opened this issue Feb 27, 2016 · 1 comment

Comments

@IshankGulati
Copy link
Contributor

In file included from /home/ishank/Workspace/opendetection/common/utils/utils.cpp:4:0:
/home/ishank/Workspace/opendetection/common/utils/utils.h: In function ‘void od::printListIn(std::vector<_Tp>, int)’:
/home/ishank/Workspace/opendetection/common/utils/utils.h:169:7: error: ‘cout’ is not a member of ‘std’
       std::cout << (Ptype) list[i] << " ";
       ^
/home/ishank/Workspace/opendetection/common/utils/utils.h:170:5: error: ‘cout’ is not a member of ‘std’
     std::cout << std::endl;
     ^
/home/ishank/Workspace/opendetection/common/utils/utils.h: In function ‘void od::printList(std::vector<_Tp>)’:
/home/ishank/Workspace/opendetection/common/utils/utils.h:177:7: error: ‘cout’ is not a member of ‘std’
       std::cout << list[i] << " ";
       ^
/home/ishank/Workspace/opendetection/common/utils/utils.h:178:5: error: ‘cout’ is not a member of ‘std’
     std::cout << std::endl;
     ^
/home/ishank/Workspace/opendetection/common/utils/utils.h: In static member function ‘static std::string od::FileUtils::getFirstFile(std::string, std::string)’:
/home/ishank/Workspace/opendetection/common/utils/utils.h:200:9: error: ‘cout’ is not a member of ‘std’
         std::cout << "No file with extension " << extension << " present!\nReturning NULL";

I am getting these errors while building opendetection on Ubuntu 14.04. I think utils.h is probably missing iostream. If this is the problem I can raise a PR?

@krips89
Copy link
Owner

krips89 commented Feb 27, 2016

Hi,
Didn't see this before. Probably because some other header was including
iostream before utils.h

Utils has its own independent dependency on iosream. Surely go ahead and
make a PR.
On Feb 27, 2016 3:55 AM, "Ishank Gulati" notifications@github.com wrote:

In file included from /home/ishank/Workspace/opendetection/common/utils/utils.cpp:4:0:
/home/ishank/Workspace/opendetection/common/utils/utils.h: In function ‘void od::printListIn(std::vector<_Tp>, int)’:
/home/ishank/Workspace/opendetection/common/utils/utils.h:169:7: error: ‘cout’ is not a member of ‘std’
std::cout << (Ptype) list[i] << " ";
^
/home/ishank/Workspace/opendetection/common/utils/utils.h:170:5: error: ‘cout’ is not a member of ‘std’
std::cout << std::endl;
^
/home/ishank/Workspace/opendetection/common/utils/utils.h: In function ‘void od::printList(std::vector<_Tp>)’:
/home/ishank/Workspace/opendetection/common/utils/utils.h:177:7: error: ‘cout’ is not a member of ‘std’
std::cout << list[i] << " ";
^
/home/ishank/Workspace/opendetection/common/utils/utils.h:178:5: error: ‘cout’ is not a member of ‘std’
std::cout << std::endl;
^
/home/ishank/Workspace/opendetection/common/utils/utils.h: In static member function ‘static std::string od::FileUtils::getFirstFile(std::string, std::string)’:
/home/ishank/Workspace/opendetection/common/utils/utils.h:200:9: error: ‘cout’ is not a member of ‘std’
std::cout << "No file with extension " << extension << " present!\nReturning NULL";

I am getting these errors while building opendetection on Ubuntu 14.04. I
think utils.h is probably missing iostream. If this is the problem I can
raise a PR?


Reply to this email directly or view it on GitHub
#1.

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

2 participants