Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Missing members of CGALi?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Missing members of CGALi?


Chronological Thread 
  • From: Roger House <>
  • To:
  • Subject: Re: [cgal-discuss] Missing members of CGALi?
  • Date: Sat, 27 Sep 2008 13:53:19 -0700

Sylvain:

Attached is a short C++ file which when compiled with the attached makefile produces the error messages found in the attached log.txt file.  --  I am using g++ version 4.2.3.

Thank you for your help.

Roger

Sylvain Pion wrote:
Roger House a écrit :
For some weeks now I have been using CGAL in a C++ program that I
have been compiling with Visual C++.  Today I tried to compile it
on a computer running Ubuntu (8.04) which comes with CGAL 3.3.1-2
already installed, and I got these error messages:

    /usr/include/CGAL/Straight_2.h:268:          error: orientation is not a member of CGAL::CGALi
 
    /usr/include/CGAL/squared_distance_2_1.h:577:          error: parallel is not a member of CGAL::CGALi

Any help will be appreciated.

Probably a missing header, or wrong order.
Can you please sens a small program that reproduces this?

#include <deque>
#include <utility>
#include <boost/iterator/iterator_facade.hpp>
#include <boost/mpl/if.hpp>
#include <boost/mpl/void.hpp>
#include <boost/graph/breadth_first_search.hpp>
#include <CGAL/basic.h>
#include <CGAL/Polygon_set_2.h>

#include <iostream>

using namespace std;

int main()
{

    cout << "Begin tests of my connect_holes" << endl;
    cout << endl;

    cout << "End tests of my connect_holes" << endl;
    cout << endl; 

}   //  end main

g++ -Wall -frounding-math -g -O2 -I/usr/include/qt3 -DCGAL_USE_F2C
-DCGAL_USE_F2C -c bugCGALi.cpp
In file included from /usr/include/CGAL/Point_2_Triangle_2_intersection.h:33,
from /usr/include/CGAL/intersection_2_1.h:39,
from /usr/include/CGAL/intersection_2.h:29,
from /usr/include/CGAL/intersections.h:29,
from /usr/include/CGAL/Arr_segment_traits_2.h:29,
from /usr/include/CGAL/Gps_segment_traits_2.h:24,
from /usr/include/CGAL/Polygon_set_2.h:26,
from bugCGALi.cpp:9:
/usr/include/CGAL/Straight_2.h: In function ‘int
CGAL::CGALi::sign_of_cross(const typename K::Direction_2&, const typename
K::Direction_2&, const K&)’:
/usr/include/CGAL/Straight_2.h:268: error: ‘orientation’ is not a member
of ‘CGAL::CGALi’
In file included from /usr/include/CGAL/Circle_2_Circle_2_intersection.h:30,
from /usr/include/CGAL/intersection_2_3.h:29,
from /usr/include/CGAL/intersection_2.h:31,
from /usr/include/CGAL/intersections.h:29,
from /usr/include/CGAL/Arr_segment_traits_2.h:29,
from /usr/include/CGAL/Gps_segment_traits_2.h:24,
from /usr/include/CGAL/Polygon_set_2.h:26,
from bugCGALi.cpp:9:
/usr/include/CGAL/squared_distance_2_1.h: In function ‘typename K::FT
CGAL::CGALi::squared_distance(const typename K::Line_2&, const typename
K::Line_2&, const K&)’:
/usr/include/CGAL/squared_distance_2_1.h:577: error: ‘parallel’ is not a
member of ‘CGAL::CGALi’
make: *** [bugCGALi.o] Error 1
# Created by the script cgal_create_makefile
# This is the makefile for compiling a CGAL application.

#---------------------------------------------------------------------#
# include platform specific settings
#---------------------------------------------------------------------#
# Choose the right include file from the <cgalroot>/make directory.

# CGAL_MAKEFILE = ENTER_YOUR_INCLUDE_MAKEFILE_HERE
ifndef CGAL_MAKEFILE
CGAL_MAKEFILE = /usr/share/cgal/cgal.mk
endif
include $(CGAL_MAKEFILE)

#---------------------------------------------------------------------#
# compiler flags
#---------------------------------------------------------------------#

CXXFLAGS = \
$(CGAL_CXXFLAGS) \
$(LONG_NAME_PROBLEM_CXXFLAGS)

#---------------------------------------------------------------------#
# linker flags
#---------------------------------------------------------------------#

LIBPATH = \
$(CGAL_LIBPATH)

LDFLAGS = \
$(LONG_NAME_PROBLEM_LDFLAGS) \
$(CGAL_LDFLAGS)

#---------------------------------------------------------------------#
# target entries
#---------------------------------------------------------------------#

all: \
bugCGALi$(EXE_EXT)

bugCGALi$(EXE_EXT): bugCGALi$(OBJ_EXT)
$(CGAL_CXX) $(LIBPATH) $(EXE_OPT)bugCGALi bugCGALi$(OBJ_EXT)
$(LDFLAGS)

clean: \
bugCGALi.clean

#---------------------------------------------------------------------#
# suffix rules
#---------------------------------------------------------------------#

.C$(OBJ_EXT):
$(CGAL_CXX) $(CXXFLAGS) $(OBJ_OPT) $<


.cpp$(OBJ_EXT):
$(CGAL_CXX) $(CXXFLAGS) $(OBJ_OPT) $<




Archive powered by MHonArc 2.6.16.

Top of Page