Code Monkey home page Code Monkey logo

Comments (3)

kylemcdonald avatar kylemcdonald commented on June 17, 2024

was this an error or a warning?

(we use long long in some of the timing code, but i don't think "long long" is a standard.)

from facetracker.

timur-almaev avatar timur-almaev commented on June 17, 2024

Error. As far as I know long long is only supported by C++11, which might be an issue for some systems. Below is the complete trace:

g++ -MM -MT src/lib/IO.o -MF src/lib/IO.d -Wextra -Wall -pedantic-errors -arch x86_64 -O3 -I/Users/timur/Developer/Libraries/include -Iinclude/ src/lib/IO.cc
g++ -Wextra -Wall -pedantic-errors -arch x86_64 -O3 -I/Users/timur/Developer/Libraries/include -Iinclude/ -c -o src/lib/IO.o src/lib/IO.cc
In file included from /Users/timur/Developer/Libraries/include/opencv2/flann/dynamic_bitset.h:49,
from /Users/timur/Developer/Libraries/include/opencv2/flann/kdtree_index.h:41,
from /Users/timur/Developer/Libraries/include/opencv2/flann/all_indices.h:36,
from /Users/timur/Developer/Libraries/include/opencv2/flann/flann_base.hpp:44,
from /Users/timur/Developer/Libraries/include/opencv2/flann/flann.hpp:50,
from /Users/timur/Developer/Libraries/include/opencv/cv.h:69,
from include/FaceTracker/IO.h:42,
from src/lib/IO.cc:40:
/Users/timur/Developer/Libraries/include/opencv2/flann/dist.h: In member function ‘int cvflann::Hamming::operator()(Iterator1, Iterator2, size_t, int) const’:
/Users/timur/Developer/Libraries/include/opencv2/flann/dist.h:478: error: ISO C++ does not support ‘long long’
make: *** [src/lib/IO.o] Error 1

from facetracker.

kylemcdonald avatar kylemcdonald commented on June 17, 2024

oh, sorry -- i thought this was an issue on another repo when i responded initially.

it looks like opencv is using long long in dist.h, maybe that wasn't there in a previous version of opencv. i added it to the CFLAGS as you suggested. thanks!

from facetracker.

Related Issues (20)

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.