This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
"error: there are no arguments to..." in my code
- From: mahmoodn <nt_mahmood at yahoo dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 17 Nov 2007 00:18:56 -0800 (PST)
- Subject: "error: there are no arguments to..." in my code
I use OS: i686_Linux-2.6 and Compiler: GNU 3.4.2
for the code bellow:
typedef Segment_Delaunay_graph_hierarchy_2 <Sdg_traits_2,
CGAL::Tag_true, Sdg_ds_2> Sdg_2;
typename Sdg_2::Finite_edges_iterator eit;
for (eit = finite_edges_begin(); eit != finite_edges_end(); ++eit)
_compute_primal_edge (*eit, edges);
it says:
../../include/CGAL/Polygon_Voronoi_diagram_2.h:331:error: there are no
arguments to `finite_edges_begin' that depend on a template parameter, so a
declaration of `finite_edges_begin' must be available
../../include/CGAL/Polygon_Voronoi_diagram_2.h:331: error: (if you use
`-fpermissive', G++ will accept your code, but allowing the use of an
undeclared name is deprecated)
what should I do to correct it? How can I use -fpermissive?
--
View this message in context: http://www.nabble.com/%22error%3A-there-are-no-arguments-to...%22-in-my-code-tf4825748.html#a13807000
Sent from the gcc - Help mailing list archive at Nabble.com.