Coder Social home page Coder Social logo

Build error due to cout about opendetection HOT 1 CLOSED

krips89 avatar krips89 commented on July 1, 2024
Build error due to cout

from opendetection.

Comments (1)

krips89 avatar krips89 commented on July 1, 2024

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" [email protected] 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.

from opendetection.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.