I can not compile under Ubuntu with gcc 3.3... (?)

View: New views
2 Messages — Rating Filter:   Alert me  

I can not compile under Ubuntu with gcc 3.3... (?)

by mahmoodn :: Rate this Message:

| View Threaded | Show Only this Message

Hi,
I compile my program in fedora with gcc 3.3 with no problem, but when I want to compile it with the same version under Ubuntu, it says:

mahmood@magma:~/Tools/cgal/VVc_diagram_2/demo/VVc_diagram_2$ make
g++ -I../../include -I../../../Arrangement_2/include -DNDEBUG -Wall -frounding-math          -I/usr/include/qt3            -c MD_demo.cpp
cc1plus: error: unrecognized option `-frounding-math'
make: *** [MD_demo.o] Error 1

what does this error mean? I do not have "-frounding-math" option in makefile. Here is the makefile:

# Created by the script 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/makefile
endif
include $(CGAL_MAKEFILE)



#---------------------------------------------------------------------#

#                    compiler flags

#---------------------------------------------------------------------#



CXXFLAGS = \

           -I../../include \

           -I../../../Arrangement_2/include \

           -DNDEBUG \

           $(CGAL_CXXFLAGS) \

           $(LONG_NAME_PROBLEM_CXXFLAGS)



#---------------------------------------------------------------------#

#                    linker flags

#---------------------------------------------------------------------#



LIBPATH = \

          $(CGAL_LIBPATH)



LDFLAGS = \

          $(LONG_NAME_PROBLEM_LDFLAGS) \

          $(CGAL_QT_LDFLAGS)



#---------------------------------------------------------------------#

#                    target entries

#---------------------------------------------------------------------#



all:            \

                MD_demo$(EXE_EXT) \

                VVc_demo$(EXE_EXT)



MD_demo.moc:  MD_demo.cpp

        $(QT_MOC) -o MD_demo.moc  MD_demo.cpp



MD_demo$(OBJ_EXT): MD_demo.moc



MD_demo$(EXE_EXT): MD_demo$(OBJ_EXT)

        $(CGAL_CXX) $(LIBPATH) $(EXE_OPT)MD_demo MD_demo$(OBJ_EXT) $(LDFLAGS)



VVc_demo.moc:  VVc_demo.cpp

        $(QT_MOC) -o VVc_demo.moc  VVc_demo.cpp



VVc_demo$(OBJ_EXT): VVc_demo.moc



VVc_demo$(EXE_EXT): VVc_demo$(OBJ_EXT)

        $(CGAL_CXX) $(LIBPATH) $(EXE_OPT)VVc_demo VVc_demo$(OBJ_EXT) $(LDFLAGS)



clean: \

                   MD_demo.clean \

                   VVc_demo.clean



#---------------------------------------------------------------------#

#                    suffix rules

#---------------------------------------------------------------------#



.cpp$(OBJ_EXT):

        $(CGAL_CXX) $(CXXFLAGS) $(OBJ_OPT) $<



Thanks,

Re: I can not compile under Ubuntu with gcc 3.3... (?)

by mahmoodn :: Rate this Message:

| View Threaded | Show Only this Message

The problem was BOOST library was not installed! and now it got solved


mahmoodn wrote:
Hi,
I compile my program in fedora with gcc 3.3 with no problem, but when I want to compile it with the same version under Ubuntu, it says:

mahmood@magma:~/Tools/cgal/VVc_diagram_2/demo/VVc_diagram_2$ make
g++ -I../../include -I../../../Arrangement_2/include -DNDEBUG -Wall -frounding-math          -I/usr/include/qt3            -c MD_demo.cpp
cc1plus: error: unrecognized option `-frounding-math'
make: *** [MD_demo.o] Error 1

what does this error mean? I do not have "-frounding-math" option in makefile. Here is the makefile:

# Created by the script 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/makefile
endif
include $(CGAL_MAKEFILE)



#---------------------------------------------------------------------#

#                    compiler flags

#---------------------------------------------------------------------#



CXXFLAGS = \

           -I../../include \

           -I../../../Arrangement_2/include \

           -DNDEBUG \

           $(CGAL_CXXFLAGS) \

           $(LONG_NAME_PROBLEM_CXXFLAGS)



#---------------------------------------------------------------------#

#                    linker flags

#---------------------------------------------------------------------#



LIBPATH = \

          $(CGAL_LIBPATH)



LDFLAGS = \

          $(LONG_NAME_PROBLEM_LDFLAGS) \

          $(CGAL_QT_LDFLAGS)



#---------------------------------------------------------------------#

#                    target entries

#---------------------------------------------------------------------#



all:            \

                MD_demo$(EXE_EXT) \

                VVc_demo$(EXE_EXT)



MD_demo.moc:  MD_demo.cpp

        $(QT_MOC) -o MD_demo.moc  MD_demo.cpp



MD_demo$(OBJ_EXT): MD_demo.moc



MD_demo$(EXE_EXT): MD_demo$(OBJ_EXT)

        $(CGAL_CXX) $(LIBPATH) $(EXE_OPT)MD_demo MD_demo$(OBJ_EXT) $(LDFLAGS)



VVc_demo.moc:  VVc_demo.cpp

        $(QT_MOC) -o VVc_demo.moc  VVc_demo.cpp



VVc_demo$(OBJ_EXT): VVc_demo.moc



VVc_demo$(EXE_EXT): VVc_demo$(OBJ_EXT)

        $(CGAL_CXX) $(LIBPATH) $(EXE_OPT)VVc_demo VVc_demo$(OBJ_EXT) $(LDFLAGS)



clean: \

                   MD_demo.clean \

                   VVc_demo.clean



#---------------------------------------------------------------------#

#                    suffix rules

#---------------------------------------------------------------------#



.cpp$(OBJ_EXT):

        $(CGAL_CXX) $(CXXFLAGS) $(OBJ_OPT) $<



Thanks,