alcaro branch: compilation errors

Issue #51 resolved
skaluzka created an issue

hi,

I faced below compilation error during compilation code on alcaro branch (commit 40e63e62). could you please have a look? thank you in advance

[kaluzka@archbang build]$ cmake ..
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- 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
-- Found Tclsh: /bin/tclsh (found version "8.6") 
-- Found TCL: /usr/lib/libtcl.so  
-- Found TCLTK: /usr/lib/libtcl.so  
-- Found TK: /usr/lib/libtk.so  
-- Boost version: 1.55.0
-- Found the following Boost libraries:
--   filesystem
--   program_options
--   system
--   thread
--   wave
CMake Warning at doc/CMakeLists.txt:4 (message):
  The documentation won't be built because pandoc was not found.


-- Configuring done
-- Generating done
-- Build files have been written to: /home/kaluzka/tmp/vera/build
[kaluzka@archbang build]$ make 
Scanning dependencies of target vera
[  1%] Building CXX object src/CMakeFiles/vera.dir/structures/StatementOfCatch.cpp.o
[  3%] Building CXX object src/CMakeFiles/vera.dir/structures/StatementOfClass.cpp.o
[  5%] Building CXX object src/CMakeFiles/vera.dir/structures/StatementOfDefine.cpp.o
[  6%] Building CXX object src/CMakeFiles/vera.dir/structures/StatementOfAssign.cpp.o
[  8%] Building CXX object src/CMakeFiles/vera.dir/structures/SourceLines.cpp.o
[ 10%] Building CXX object src/CMakeFiles/vera.dir/structures/StatementOfSwitch.cpp.o
[ 12%] Building CXX object src/CMakeFiles/vera.dir/structures/StatementOfParensArguments.cpp.o
[ 13%] Building CXX object src/CMakeFiles/vera.dir/structures/StatementOfElse.cpp.o
[ 15%] Building CXX object src/CMakeFiles/vera.dir/structures/StatementOfExtern.cpp.o
[ 17%] Building CXX object src/CMakeFiles/vera.dir/structures/StatementOfIdentifier.cpp.o
[ 18%] Building CXX object src/CMakeFiles/vera.dir/structures/StatementOfAccessModifiers.cpp.o
[ 20%] Building CXX object src/CMakeFiles/vera.dir/structures/StatementOfTemplate.cpp.o
[ 22%] Building CXX object src/CMakeFiles/vera.dir/structures/SourceFiles.cpp.o
[ 24%] Building CXX object src/CMakeFiles/vera.dir/structures/StatementOfUnion.cpp.o
[ 25%] Building CXX object src/CMakeFiles/vera.dir/structures/Document.cpp.o
[ 27%] Building CXX object src/CMakeFiles/vera.dir/structures/StatementOfIf.cpp.o
[ 29%] Building CXX object src/CMakeFiles/vera.dir/structures/StatementOfEnum.cpp.o
[ 31%] Building CXX object src/CMakeFiles/vera.dir/structures/StatementOfPreprocessorLine.cpp.o
[ 32%] Building CXX object src/CMakeFiles/vera.dir/structures/StatementOfBracketsArguments.cpp.o
[ 34%] Building CXX object src/CMakeFiles/vera.dir/structures/StatementOfDoWhileLoop.cpp.o
[ 36%] Building CXX object src/CMakeFiles/vera.dir/structures/Tokens.cpp.o
[ 37%] Building CXX object src/CMakeFiles/vera.dir/structures/StatementOfTryCatches.cpp.o
[ 39%] Building CXX object src/CMakeFiles/vera.dir/structures/StatementOfDefault.cpp.o
[ 41%] Building CXX object src/CMakeFiles/vera.dir/structures/Statements.cpp.o
[ 43%] Building CXX object src/CMakeFiles/vera.dir/structures/StatementOfStruct.cpp.o
[ 44%] Building CXX object src/CMakeFiles/vera.dir/structures/StatementOfForLoop.cpp.o
[ 46%] Building CXX object src/CMakeFiles/vera.dir/structures/StatementOfTypedef.cpp.o
[ 48%] Building CXX object src/CMakeFiles/vera.dir/structures/StatementOfFriend.cpp.o
/home/kaluzka/tmp/vera/src/structures/StatementOfFriend.cpp: In constructor ‘Vera::Structures::StatementOfFriend::StatementOfFriend(Vera::Structures::Statement&, std::vector<Vera::Structures::Token>::const_iterator&, std::vector<Vera::Structures::Token>::const_iterator&)’:
/home/kaluzka/tmp/vera/src/structures/StatementOfFriend.cpp:59:21: error: ‘TYPE_ITEM_STATEMENT_OF_FRIEND’ is not a member of ‘Vera::Structures::Statement’
   statement.type_ = Statement::TYPE_ITEM_STATEMENT_OF_FRIEND;
                     ^
src/CMakeFiles/vera.dir/build.make:678: recipe for target 'src/CMakeFiles/vera.dir/structures/StatementOfFriend.cpp.o' failed
make[2]: *** [src/CMakeFiles/vera.dir/structures/StatementOfFriend.cpp.o] Error 1
CMakeFiles/Makefile2:1015: recipe for target 'src/CMakeFiles/vera.dir/all' failed
make[1]: *** [src/CMakeFiles/vera.dir/all] Error 2
Makefile:146: recipe for target 'all' failed
make: *** [all] Error 2
[kaluzka@archbang build]$

Comments (4)

  1. ThArGos

    Hi,

    I confirm the error here. This branch does not build. alcaro could you have a look please?

    Thanks in advance

  2. skaluzka reporter

    it looks that commit 061b5157 contains missing TYPE_ITEM_STATEMENT_OF_FRIEND (at least I don't see above compilation errors any more). issue is solved from my pov

  3. Log in to comment