Opened 15 years ago
Last modified 6 years ago
#365 closed defect
Cannot include <lemon/adaptors.h> in any of my application source files — at Version 2
Reported by: | William Ford | Owned by: | Alpar Juttner |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | core | Version: | hg main |
Keywords: | Cc: | wford@… | |
Revision id: |
Description (last modified by )
I am using the Gnu 4.4 compiler under MinGW with Codeblocks on Windows to build a large application. I cannot include <lemon/adaptors.h> or <lemon/connectivity.h> in my application without getting a stream of error messages I cannot figure out. My application must use these included file. I have placed error messages below.
Thanks for any help you can provide.
C:\usr\include\lemon\adaptors.h|3459|error: expected nested-name-specifier before 'Value'| C:\usr\include\lemon\adaptors.h|3459|error: expected ';' before 'Value'| C:\usr\include\lemon\adaptors.h|3461|error: wrong number of template arguments (0, should be 2)| C:\usr\include\lemon\bits\traits.h|155|error: provided for 'template<class Map, class Enable> struct lemon::MapTraits'| C:\usr\include\lemon\adaptors.h|3462|error: wrong number of template arguments (0, should be 2)| C:\usr\include\lemon\bits\traits.h|155|error: provided for 'template<class Map, class Enable> struct lemon::MapTraits'| C:\usr\include\lemon\adaptors.h|3463|error: wrong number of template arguments (0, should be 2)| C:\usr\include\lemon\bits\traits.h|155|error: provided for 'template<class Map, class Enable> struct lemon::MapTraits'| C:\usr\include\lemon\adaptors.h|3464|error: wrong number of template arguments (0, should be 2)| C:\usr\include\lemon\bits\traits.h|155|error: provided for 'template<class Map, class Enable> struct lemon::MapTraits'| C:\usr\include\lemon\adaptors.h|3465|error: wrong number of template arguments (0, should be 2)| C:\usr\include\lemon\bits\traits.h|155|error: provided for 'template<class Map, class Enable> struct lemon::MapTraits'| C:\usr\include\lemon\adaptors.h|3468|error: expected ')' before ',' token| C:\usr\include\lemon\adaptors.h|3472|error: ISO C++ forbids declaration of 'Value' with no type| C:\usr\include\lemon\adaptors.h|3472|error: expected ';' before 'operator'| C:\A+MyPrograms\CombinatoricsCalculator\src\graphs\algorithms\GraphAlgorithmCanvas.cpp|698|error: expected ';' at end of input| C:\A+MyPrograms\CombinatoricsCalculator\src\graphs\algorithms\GraphAlgorithmCanvas.cpp|698|error: expected '}' at end of input| C:\A+MyPrograms\CombinatoricsCalculator\src\graphs\algorithms\GraphAlgorithmCanvas.cpp|698|error: expected unqualified-id at end of input| C:\A+MyPrograms\CombinatoricsCalculator\src\graphs\algorithms\GraphAlgorithmCanvas.cpp|698|error: expected '}' at end of input| C:\usr\include\lemon\adaptors.h|3443|error: expected unqualified-id at end of input| C:\usr\include\lemon\adaptors.h|3443|error: expected '}' at end of input| ||=== Build finished: 21 errors, 0 warnings ===|
Change History (2)
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
Description: | modified (diff) |
---|
Note: See
TracTickets for help on using
tickets.
Just some questions:
make check
properly?windows.h
in any of your source files? As far as I remember, it caused some compliation problems if this header was included _before_ lemon headers, so it should be included after includeing all lemon headers.