Skip to content

Instantly share code, notes, and snippets.

@jlsandell
Created February 3, 2011 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlsandell/810137 to your computer and use it in GitHub Desktop.
Save jlsandell/810137 to your computer and use it in GitHub Desktop.
Error when compiling Beastie with g++
voyvf@devbook:~/Desktop/repos/git/beastie$ make > error.out 2>&1
==== Building beastie_example ====
mkdir -p obj/debug
g++ -MMD -D "DEBUG" -D "_DEBUG" -g `pkg-config OGRE --cflags``pkg-config OIS --cflags` -O0 -Wall -o "obj/debug/beastie.example.o" -c "beastie.example.cpp"
In file included from beastie.example.cpp:5:
beastie.h: In static member function ‘static bool beastie::its_a_secret::intersections_t< <template-parameter-1-1> >::line(const beastie::line&, const beastie::plane&, Ogre::Vector3&)’:
beastie.h:392: error: invalid use of incomplete type ‘const struct beastie::its_a_secret::plane_t<void>’
beastie.h:279: error: declaration of ‘const struct beastie::its_a_secret::plane_t<void>’
beastie.h:392: error: invalid use of incomplete type ‘const struct beastie::its_a_secret::line_t<void>’
beastie.h:277: error: declaration of ‘const struct beastie::its_a_secret::line_t<void>’
beastie.h:397: error: invalid use of incomplete type ‘const struct beastie::its_a_secret::plane_t<void>’
beastie.h:279: error: declaration of ‘const struct beastie::its_a_secret::plane_t<void>’
beastie.h:397: error: invalid use of incomplete type ‘const struct beastie::its_a_secret::line_t<void>’
beastie.h:277: error: declaration of ‘const struct beastie::its_a_secret::line_t<void>’
beastie.h:397: error: invalid use of incomplete type ‘const struct beastie::its_a_secret::plane_t<void>’
beastie.h:279: error: declaration of ‘const struct beastie::its_a_secret::plane_t<void>’
beastie.h:400: error: invalid use of incomplete type ‘const struct beastie::its_a_secret::line_t<void>’
beastie.h:277: error: declaration of ‘const struct beastie::its_a_secret::line_t<void>’
beastie.h:402: error: invalid use of incomplete type ‘const struct beastie::its_a_secret::line_t<void>’
beastie.h:277: error: declaration of ‘const struct beastie::its_a_secret::line_t<void>’
beastie.h: In static member function ‘static bool beastie::its_a_secret::intersections_t< <template-parameter-1-1> >::line(const beastie::line&, const beastie::box&, Ogre::Vector3&)’:
beastie.h:436: error: invalid use of incomplete type ‘const struct beastie::its_a_secret::box_t<void>’
beastie.h:278: error: declaration of ‘const struct beastie::its_a_secret::box_t<void>’
beastie.h: In static member function ‘static bool beastie::its_a_secret::intersections_t< <template-parameter-1-1> >::line(const beastie::line&, const Ogre::AxisAlignedBox&, Ogre::Vector3&)’:
beastie.h:451: error: invalid use of incomplete type ‘const struct beastie::its_a_secret::line_t<void>’
beastie.h:277: error: declaration of ‘const struct beastie::its_a_secret::line_t<void>’
beastie.h: In static member function ‘static beastie::its_a_secret::intersections_t< <template-parameter-1-1> >::BoxLineIntersection beastie::its_a_secret::intersections_t< <template-parameter-1-1> >::line(const beastie::line&, const Ogre::AxisAlignedBox&)’:
beastie.h:486: error: invalid use of incomplete type ‘const struct beastie::its_a_secret::line_t<void>’
beastie.h:277: error: declaration of ‘const struct beastie::its_a_secret::line_t<void>’
beastie.h:487: error: invalid use of incomplete type ‘const struct beastie::its_a_secret::line_t<void>’
beastie.h:277: error: declaration of ‘const struct beastie::its_a_secret::line_t<void>’
beastie.h: In static member function ‘static bool beastie::its_a_secret::intersections_t< <template-parameter-1-1> >::line(const beastie::line&, beastie::triangle*, Ogre::Real&)’:
beastie.h:564: error: invalid use of incomplete type ‘const struct beastie::its_a_secret::line_t<void>’
beastie.h:277: error: declaration of ‘const struct beastie::its_a_secret::line_t<void>’
In file included from beastie.example.cpp:5:
beastie.h: In static member function ‘static bool beastie::its_a_secret::intersections_t< <template-parameter-1-1> >::line(const beastie::line&, beastie::triangle*, beastie::triangle*, const Ogre::Matrix4&, Ogre::Real&, int&, Ogre::Vector3&)’:
beastie.h:609: error: invalid use of incomplete type ‘const struct beastie::its_a_secret::line_t<void>’
beastie.h:277: error: declaration of ‘const struct beastie::its_a_secret::line_t<void>’
beastie.h:609: error: invalid use of incomplete type ‘const struct beastie::its_a_secret::line_t<void>’
beastie.h:277: error: declaration of ‘const struct beastie::its_a_secret::line_t<void>’
beastie.h:611: error: invalid use of incomplete type ‘struct beastie::line’
beastie.h:277: error: declaration of ‘struct beastie::line’
beastie.h:624: error: invalid use of incomplete type ‘struct beastie::line’
beastie.h:277: error: declaration of ‘struct beastie::line’
beastie.h:632: error: invalid use of incomplete type ‘struct beastie::line’
beastie.h:277: error: declaration of ‘struct beastie::line’
beastie.h:658: error: invalid use of incomplete type ‘struct beastie::line’
beastie.h:277: error: declaration of ‘struct beastie::line’
beastie.h:658: error: invalid use of incomplete type ‘struct beastie::line’
beastie.h:277: error: declaration of ‘struct beastie::line’
beastie.h:659: error: invalid use of incomplete type ‘struct beastie::line’
beastie.h:277: error: declaration of ‘struct beastie::line’
beastie.h:659: error: invalid use of incomplete type ‘struct beastie::line’
beastie.h:277: error: declaration of ‘struct beastie::line’
beastie.h:763: error: invalid use of incomplete type ‘struct beastie::line’
beastie.h:277: error: declaration of ‘struct beastie::line’
beastie.h:764: error: invalid use of incomplete type ‘const struct beastie::its_a_secret::line_t<void>’
beastie.h:277: error: declaration of ‘const struct beastie::its_a_secret::line_t<void>’
beastie.h: In member function ‘bool beastie::its_a_secret::line_t< <template-parameter-1-1> >::intersects(const beastie::plane&, Ogre::Vector3&)’:
beastie.h:921: warning: no return statement in function returning non-void
beastie.h: In member function ‘bool beastie::its_a_secret::line_t< <template-parameter-1-1> >::intersects(const beastie::box&, Ogre::Vector3&)’:
beastie.h:935: warning: no return statement in function returning non-void
beastie.h: In member function ‘beastie::its_a_secret::intersections_t<void>::BoxLineIntersection beastie::its_a_secret::line_t< <template-parameter-1-1> >::intersects(const Ogre::AxisAlignedBox&)’:
beastie.h:951: warning: no return statement in function returning non-void
beastie.h: In member function ‘void beastie::its_a_secret::mesh_t< <template-parameter-1-1> >::_draw(Ogre::ManualObject*, const Ogre::Matrix4&)’:
beastie.h:1532: error: incomplete type ‘beastie::collision_tree’ used in nested name specifier
beastie.h: In member function ‘void beastie::its_a_secret::node_t< <template-parameter-1-1> >::_update()’:
beastie.h:1836: error: invalid use of incomplete type ‘struct beastie::collision_tree’
beastie.h:284: error: declaration of ‘struct beastie::collision_tree’
beastie.h: In constructor ‘beastie::its_a_secret::octree_t< <template-parameter-1-1> >::octree_t(beastie::its_a_secret::octree_t< <template-parameter-1-1> >*, beastie::collision_tree*)’:
beastie.h:1880: error: invalid use of incomplete type ‘struct beastie::collision_tree’
beastie.h:284: error: declaration of ‘struct beastie::collision_tree’
beastie.h: In destructor ‘beastie::its_a_secret::octree_t< <template-parameter-1-1> >::~octree_t()’:
beastie.h:1891: error: invalid use of incomplete type ‘struct beastie::collision_tree’
beastie.h:284: error: declaration of ‘struct beastie::collision_tree’
beastie.h: In member function ‘void beastie::its_a_secret::collision_tree_t< <template-parameter-1-1> >::destroyNode(const Ogre::String&)’:
beastie.h:2152: error: ‘Exception’ was not declared in this scope
beastie.h:2152: error: template argument 1 is invalid
beastie.h: In member function ‘bool beastie::its_a_secret::collision_tree_t< <template-parameter-1-1> >::canUnloadMesh(const Ogre::String&)’:
beastie.h:2203: error: ‘it’ was not declared in this scope
beastie.h: In member function ‘void beastie::its_a_secret::collision_tree_t< <template-parameter-1-1> >::unloadMesh(const Ogre::MeshPtr&)’:
beastie.h:2219: error: ‘m’ was not declared in this scope
beastie.h: In member function ‘bool beastie::its_a_secret::collision_tree_t< <template-parameter-1-1> >::intersectBounds(const Ogre::Vector3&, const Ogre::Vector3&, const Ogre::Real&, beastie::ray_query&)’:
beastie.h:2320: error: ‘int_result’ was not declared in this scope
beastie.h: In member function ‘bool beastie::its_a_secret::collision_tree_t< <template-parameter-1-1> >::intersectBounds(const beastie::line&, beastie::ray_query&)’:
beastie.h:2340: error: expected ‘;’ before ‘it’
beastie.h:2340: error: ‘it’ was not declared in this scope
beastie.h:2342: error: ‘ln’ is not a member of ‘beastie::intersections’
beastie.h:2342: error: ‘aabbInt’ was not declared in this scope
beastie.h: In member function ‘bool beastie::its_a_secret::collision_tree_t< <template-parameter-1-1> >::intersect(const beastie::line&, beastie::ray_query&)’:
beastie.h:2376: error: expected ‘;’ before ‘it’
beastie.h:2376: error: ‘it’ was not declared in this scope
beastie.h: In member function ‘void beastie::its_a_secret::collision_tree_t< <template-parameter-1-1> >::_addNode(beastie::its_a_secret::node*, beastie::its_a_secret::octree*, int)’:
beastie.h:2571: error: expected initializer before ‘&’ token
beastie.h:2572: error: expected initializer before ‘&’ token
beastie.h:2578: error: ‘octantMin’ was not declared in this scope
beastie.h:2579: error: ‘octantMax’ was not declared in this scope
beastie.h:2583: error: ‘octantMin’ was not declared in this scope
beastie.h:2583: error: ‘octantMax’ was not declared in this scope
beastie.h:2589: error: ‘octantMin’ was not declared in this scope
beastie.h:2590: error: ‘octantMax’ was not declared in this scope
beastie.h:2594: error: ‘octantMin’ was not declared in this scope
beastie.h:2594: error: ‘octantMax’ was not declared in this scope
beastie.h:2600: error: ‘octantMin’ was not declared in this scope
beastie.h:2601: error: ‘octantMax’ was not declared in this scope
beastie.h:2605: error: ‘octantMin’ was not declared in this scope
beastie.h:2605: error: ‘octantMax’ was not declared in this scope
beastie.h: In member function ‘bool beastie::its_a_secret::collision_tree_t< <template-parameter-1-1> >::intersect(const beastie::line&, beastie::ray_query&) [with <template-parameter-1-1> = void]’:
beastie.h:2277: instantiated from ‘bool beastie::its_a_secret::collision_tree_t< <template-parameter-1-1> >::intersect(const Ogre::Ray&, const Ogre::Real&, beastie::ray_query&) [with <template-parameter-1-1> = void]’
beastie.example.cpp:89: instantiated from here
beastie.h:2376: error: dependent-name ‘std::vector::iterator’ is parsed as a non-type, but instantiation yields a type
beastie.h:2376: note: say ‘typename std::vector::iterator’ if a type is meant
beastie.h: In constructor ‘beastie::its_a_secret::node_t< <template-parameter-1-1> >::node_t(const Ogre::String&, beastie::mesh*, beastie::collision_tree*, const Ogre::Vector3&, const Ogre::Quaternion&) [with <template-parameter-1-1> = void]’:
beastie.h:2136: instantiated from ‘beastie::its_a_secret::node* beastie::its_a_secret::collision_tree_t< <template-parameter-1-1> >::createNode(const Ogre::String&, const Ogre::MeshPtr&, const Ogre::Vector3&, const Ogre::Quaternion&) [with <template-parameter-1-1> = void]’
beastie.h:2120: instantiated from ‘beastie::its_a_secret::node* beastie::its_a_secret::collision_tree_t< <template-parameter-1-1> >::createNode(const Ogre::String&, const Ogre::String&, const Ogre::Vector3&, const Ogre::Quaternion&) [with <template-parameter-1-1> = void]’
beastie.h:2086: instantiated from ‘beastie::its_a_secret::node* beastie::its_a_secret::collision_tree_t< <template-parameter-1-1> >::createNode(const Ogre::String&, const Ogre::Vector3&, const Ogre::Quaternion&) [with <template-parameter-1-1> = void]’
beastie.example.cpp:46: instantiated from here
beastie.h:1858: warning: ‘beastie::its_a_secret::node_t<void>::octreeNodeName’ will be initialized after
beastie.h:1856: warning: ‘beastie::collision_tree* beastie::its_a_secret::node_t<void>::octreeNodeCreator’
beastie.h:1616: warning: when initialized here
beastie.h:1856: warning: ‘beastie::its_a_secret::node_t<void>::octreeNodeCreator’ will be initialized after
beastie.h:1848: warning: ‘beastie::mesh* beastie::its_a_secret::node_t<void>::octreeNodeMesh’
beastie.h:1616: warning: when initialized here
In file included from /usr/include/c++/4.4/algorithm:62,
from /usr/local/include/OGRE/OgreStdHeaders.h:57,
from /usr/local/include/OGRE/OgrePrerequisites.h:325,
from /usr/local/include/OGRE/Ogre.h:31,
from beastie.example.cpp:1:
/usr/include/c++/4.4/bits/stl_algo.h: In function ‘const _Tp& std::__median(const _Tp&, const _Tp&, const _Tp&, _Compare) [with _Tp = beastie::its_a_secret::collision_tree_t<void>::sorted_node, _Compare = beastie::its_a_secret::collision_tree_t<void>::ClosestDistanceSortNodeFunction]’:
/usr/include/c++/4.4/bits/stl_algo.h:2301: instantiated from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<beastie::its_a_secret::collision_tree_t<void>::sorted_node*, std::vector<beastie::its_a_secret::collision_tree_t<void>::sorted_node, std::allocator<beastie::its_a_secret::collision_tree_t<void>::sorted_node> > >, _Size = int, _Compare = beastie::its_a_secret::collision_tree_t<void>::ClosestDistanceSortNodeFunction]’
/usr/include/c++/4.4/bits/stl_algo.h:5258: instantiated from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<beastie::its_a_secret::collision_tree_t<void>::sorted_node*, std::vector<beastie::its_a_secret::collision_tree_t<void>::sorted_node, std::allocator<beastie::its_a_secret::collision_tree_t<void>::sorted_node> > >, _Compare = beastie::its_a_secret::collision_tree_t<void>::ClosestDistanceSortNodeFunction]’
beastie.h:2383: instantiated from ‘bool beastie::its_a_secret::collision_tree_t< <template-parameter-1-1> >::intersect(const beastie::line&, beastie::ray_query&) [with <template-parameter-1-1> = void]’
beastie.h:2277: instantiated from ‘bool beastie::its_a_secret::collision_tree_t< <template-parameter-1-1> >::intersect(const Ogre::Ray&, const Ogre::Real&, beastie::ray_query&) [with <template-parameter-1-1> = void]’
beastie.example.cpp:89: instantiated from here
/usr/include/c++/4.4/bits/stl_algo.h:124: error: no match for call to ‘(beastie::its_a_secret::collision_tree_t<void>::ClosestDistanceSortNodeFunction) (const beastie::its_a_secret::collision_tree_t<void>::sorted_node&, const beastie::its_a_secret::collision_tree_t<void>::sorted_node&)’
beastie.h:2017: note: candidates are: bool beastie::its_a_secret::collision_tree_t< <template-parameter-1-1> >::ClosestDistanceSortNodeFunction::operator()(beastie::its_a_secret::collision_tree_t< <template-parameter-1-1> >::sorted_node&, beastie::its_a_secret::collision_tree_t< <template-parameter-1-1> >::sorted_node&) [with <template-parameter-1-1> = void]
/usr/include/c++/4.4/bits/stl_algo.h:125: error: no match for call to ‘(beastie::its_a_secret::collision_tree_t<void>::ClosestDistanceSortNodeFunction) (const beastie::its_a_secret::collision_tree_t<void>::sorted_node&, const beastie::its_a_secret::collision_tree_t<void>::sorted_node&)’
beastie.h:2017: note: candidates are: bool beastie::its_a_secret::collision_tree_t< <template-parameter-1-1> >::ClosestDistanceSortNodeFunction::operator()(beastie::its_a_secret::collision_tree_t< <template-parameter-1-1> >::sorted_node&, beastie::its_a_secret::collision_tree_t< <template-parameter-1-1> >::sorted_node&) [with <template-parameter-1-1> = void]
/usr/include/c++/4.4/bits/stl_algo.h:127: error: no match for call to ‘(beastie::its_a_secret::collision_tree_t<void>::ClosestDistanceSortNodeFunction) (const beastie::its_a_secret::collision_tree_t<void>::sorted_node&, const beastie::its_a_secret::collision_tree_t<void>::sorted_node&)’
beastie.h:2017: note: candidates are: bool beastie::its_a_secret::collision_tree_t< <template-parameter-1-1> >::ClosestDistanceSortNodeFunction::operator()(beastie::its_a_secret::collision_tree_t< <template-parameter-1-1> >::sorted_node&, beastie::its_a_secret::collision_tree_t< <template-parameter-1-1> >::sorted_node&) [with <template-parameter-1-1> = void]
/usr/include/c++/4.4/bits/stl_algo.h:131: error: no match for call to ‘(beastie::its_a_secret::collision_tree_t<void>::ClosestDistanceSortNodeFunction) (const beastie::its_a_secret::collision_tree_t<void>::sorted_node&, const beastie::its_a_secret::collision_tree_t<void>::sorted_node&)’
beastie.h:2017: note: candidates are: bool beastie::its_a_secret::collision_tree_t< <template-parameter-1-1> >::ClosestDistanceSortNodeFunction::operator()(beastie::its_a_secret::collision_tree_t< <template-parameter-1-1> >::sorted_node&, beastie::its_a_secret::collision_tree_t< <template-parameter-1-1> >::sorted_node&) [with <template-parameter-1-1> = void]
/usr/include/c++/4.4/bits/stl_algo.h:133: error: no match for call to ‘(beastie::its_a_secret::collision_tree_t<void>::ClosestDistanceSortNodeFunction) (const beastie::its_a_secret::collision_tree_t<void>::sorted_node&, const beastie::its_a_secret::collision_tree_t<void>::sorted_node&)’
beastie.h:2017: note: candidates are: bool beastie::its_a_secret::collision_tree_t< <template-parameter-1-1> >::ClosestDistanceSortNodeFunction::operator()(beastie::its_a_secret::collision_tree_t< <template-parameter-1-1> >::sorted_node&, beastie::its_a_secret::collision_tree_t< <template-parameter-1-1> >::sorted_node&) [with <template-parameter-1-1> = void]
beastie.h: At global scope:
beastie.h:346: warning: ‘beastie::negativeEpsSquared’ defined but not used
make[1]: *** [obj/debug/beastie.example.o] Error 1
make: *** [beastie_example] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment