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

../../src/srtmelevationtile.cpp:188:26: error: ‘floor’ was not declared in this scope #10

Open
roweryan opened this issue May 21, 2017 · 0 comments

Comments

@roweryan
Copy link

Hi. My make is failing, not sure if this is a bug though.

g++ -c -pipe -O2 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQ_HTTP_STATIC_BUILD -DTT_RELEASE -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_XML_LIB -DQT_CORE_LIB -I../../src -I. -I../../qhttpserver/src -I../../quazip/quazip -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtPrintSupport -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtXml -isystem /usr/include/qt5/QtCore -I. -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o srtmelevationtile.o ../../src/srtmelevationtile.cpp
../../src/srtmelevationtile.cpp: In member function ‘virtual bool SRTMElevationTile::elevation(const QPointF&, float&) const’:
../../src/srtmelevationtile.cpp:149:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if ( offset >= 0 && offset < ( m_Filesize / sizeof(qint16)) )
                         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/srtmelevationtile.cpp: In static member function ‘static ElevationSourceList SRTMElevationTile::dataSetURLs(const QPointF&)’:
../../src/srtmelevationtile.cpp:188:26: error: ‘floor’ was not declared in this scope
     int lat = floor(p.y());
                          ^
Makefile.ttwatcher:1351: recipe for target 'srtmelevationtile.o' failed
make[1]: *** [srtmelevationtile.o] Error 1
make[1]: Leaving directory '/home/user/Downloads/ttwatcher/build/src'
Makefile:45: recipe for target 'sub-src-ttwatcher-pro-make_first' failed
make: *** [sub-src-ttwatcher-pro-make_first] Error 2
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