JuPedSim / jpsreport

Analysis tool
https://www.jupedsim.org/jpsreport_introduction.html
Other
3 stars 9 forks source link

invalid operands to binary expression #17

Closed chraibi closed 5 years ago

chraibi commented 5 years ago

In Gitlab by @chraibi on Nov 20, 2014, 23:48 [origin]

while compiling with 'make -f Makefile.cmake' I got the following response (no executable was built):

mkdir bin mkdir bin/release mkdir bin/debug ( cd bin/release && cmake -DCMAKE_BUILD_TYPE=release ../.. && /Applications/Xcode.app/Contents/Developer/usr/bin/make --no-print-directory && ctest ) -- The C compiler identification is AppleClang 6.0.0.6000054 -- The CXX compiler identification is AppleClang 6.0.0.6000054 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- CMAKE_SOURCE_DIR: /Users/aw/Uni/JuPedSim/jpsreport -- CMAKE_CURRENT_SOURCE_DIR: /Users/aw/Uni/JuPedSim/jpsreport -- JPSREPORT_VERSION: 0.5.0 -- CMAKE_BUILD_TYPE: release -- CMAKE_RUNTIME_OUTPUT_DIRECTORY: /Users/aw/Uni/JuPedSim/jpsreport/bin -- EXECUTABLE_OUTPUT_PATH: /Users/aw/Uni/JuPedSim/jpsreport/bin -- CMAKE_VERBOSE_MAKEFILE: FALSE -- BUILD_TESTING: ON -- PROCESSOR_COUNT 1 -- Using CLANG++ -- Debug flags: -g -- Release flags: -O3 -DNDEBUG -- Checking for C++11 compiler - available -- Boost_INCLUDE_DIR: /Users/aw/Uni/JuPedSim/jpsreport -- Boost_LIBRARY_DIR: /Users/aw/Uni/JuPedSim/jpsreport -- Timeout: 10800 s -- Found PythonInterp: /usr/local/bin/python (found version "2.7.8") -- Found Python: /usr/local/bin/python -- Configuring done -- Generating done -- Build files have been written to: /Users/aw/Uni/JuPedSim/jpsreport/bin/release Scanning dependencies of target core [ 4%] Building CXX object CMakeFiles/core.dir/Analysis.cpp.o In file included from /Users/aw/Uni/JuPedSim/jpsreport/Analysis.cpp:31: In file included from /Users/aw/Uni/JuPedSim/jpsreport/Analysis.h:35: In file included from /Users/aw/Uni/JuPedSim/jpsreport/general/ArgumentParser.h:33: /Users/aw/Uni/JuPedSim/jpsreport/general/Macros.h:40:9: warning: 'M_PI' macro redefined

define M_PI 3.14159265358979323846

    ^

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/math.h:683:9: note: previous definition is here

define M_PI 3.14159265358979323846264338327950288 / pi /

    ^

In file included from /Users/aw/Uni/JuPedSim/jpsreport/Analysis.cpp:31: In file included from /Users/aw/Uni/JuPedSim/jpsreport/Analysis.h:35: In file included from /Users/aw/Uni/JuPedSim/jpsreport/general/ArgumentParser.h:34: In file included from /Users/aw/Uni/JuPedSim/jpsreport/general/../MeasurementArea.h:32: In file included from /Users/aw/Uni/JuPedSim/jpsreport/boost/geometry/geometry.hpp:35: In file included from /Users/aw/Uni/JuPedSim/jpsreport/boost/geometry/strategies/strategies.hpp:47: /Users/aw/Uni/JuPedSim/jpsreport/boost/geometry/strategies/agnostic/hull_graham_andrew.hpp:322:9: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register std::size_t output_size = output.size(); ^~~~~ /Users/aw/Uni/JuPedSim/jpsreport/Analysis.cpp:322:16: warning: comparison between NULL and non-pointer ('ifstream' (aka 'basic_ifstream') and NULL) [-Wnull-arithmetic] if (fdata == NULL)


/Users/aw/Uni/JuPedSim/jpsreport/Analysis.cpp:322:16: error: invalid operands to
      binary expression ('ifstream' (aka 'basic_ifstream<char>') and 'long')
     if (fdata == NULL)
         ~~~~~ ^  ~~~~
3 warnings and 1 error generated.
make[3]: *** [CMakeFiles/core.dir/Analysis.cpp.o] Error 1
make[2]: *** [CMakeFiles/core.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [release] Error 2
chraibi commented 5 years ago

In Gitlab by @chraibi on Dec 17, 2016, 08:18

closed

chraibi commented 5 years ago

In Gitlab by @chraibi on Dec 17, 2016, 08:18

Original comment by kemloh on 21 Nov 2014, 09:32


mentioned in commit 6e5afd

chraibi commented 5 years ago

In Gitlab by @chraibi on Sep 29, 2017, 21:04

mentioned in commit e0deda7948f8217c6cd5ba65d3332a528edec424