Ho aggiunto
codice:
#include<glut/glut.h>
ai miei include e ora mi riconosce GLUquadric e varie. Però la compilazione continua ad avere un sacco di warnings e fallisce nella fase di linkaggio...
codice:
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o exerciceP13.o exerciceP13.cc
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o GUI.o GUI.cc
In file included from /opt/local/include/wx-2.8/wx/mac/glcanvas.h:4:0,
from /opt/local/include/wx-2.8/wx/glcanvas.h:60,
from Fenetre.h:5,
from GUI.cc:2:
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:49:37: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:47) [-Wdeprecated-declarations]
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:53:21: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:47) [-Wdeprecated-declarations]
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o Fenetre.o Fenetre.cc
In file included from /opt/local/include/wx-2.8/wx/mac/glcanvas.h:4:0,
from /opt/local/include/wx-2.8/wx/glcanvas.h:60,
from Fenetre.h:5,
from Fenetre.cc:1:
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:49:37: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:47) [-Wdeprecated-declarations]
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:53:21: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:47) [-Wdeprecated-declarations]
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o Vue_OpenGL.o Vue_OpenGL.cc
In file included from /opt/local/include/wx-2.8/wx/mac/glcanvas.h:4:0,
from /opt/local/include/wx-2.8/wx/glcanvas.h:60,
from Vue_OpenGL.h:5,
from Vue_OpenGL.cc:1:
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:49:37: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:47) [-Wdeprecated-declarations]
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:53:21: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:47) [-Wdeprecated-declarations]
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o Balle.o Balle.cc
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o ChampForces.o ChampForces.cc
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o Dessinable.o Dessinable.cc
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o Exception.o Exception.cc
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o Ressort.o Ressort.cc
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o Integrateur.o Integrateur.cc
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o IntegrateurEuler.o IntegrateurEuler.cc
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o ObjetMobile.o ObjetMobile.cc
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o Obstacle.o Obstacle.cc
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o Pendule.o Pendule.cc
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o PendulePlan.o PendulePlan.cc
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o PlanInfini.o PlanInfini.cc
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o Vecteur.o Vecteur.cc
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o Systeme.o Systeme.cc
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o Balle3D.o Balle3D.cc
In file included from /opt/local/include/wx-2.8/wx/mac/glcanvas.h:4:0,
from /opt/local/include/wx-2.8/wx/glcanvas.h:60,
from Balle3D.h:13,
from Balle3D.cc:1:
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:49:37: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:47) [-Wdeprecated-declarations]
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:53:21: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:47) [-Wdeprecated-declarations]
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o PendulePlan3D.o PendulePlan3D.cc
In file included from /opt/local/include/wx-2.8/wx/mac/glcanvas.h:4:0,
from /opt/local/include/wx-2.8/wx/glcanvas.h:60,
from PendulePlan3D.h:10,
from PendulePlan3D.cc:1:
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:49:37: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:47) [-Wdeprecated-declarations]
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:53:21: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:47) [-Wdeprecated-declarations]
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o Brique3D.o Brique3D.cc
In file included from /opt/local/include/wx-2.8/wx/mac/glcanvas.h:4:0,
from /opt/local/include/wx-2.8/wx/glcanvas.h:60,
from Brique3D.cc:7:
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:49:37: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:47) [-Wdeprecated-declarations]
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:53:21: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:47) [-Wdeprecated-declarations]
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o Brique.o Brique.cc
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o PlanInfini3D.o PlanInfini3D.cc
In file included from /opt/local/include/wx-2.8/wx/mac/glcanvas.h:4:0,
from /opt/local/include/wx-2.8/wx/glcanvas.h:60,
from PlanInfini3D.cc:7:
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:49:37: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:47) [-Wdeprecated-declarations]
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:53:21: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:47) [-Wdeprecated-declarations]
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o Ressort3D.o Ressort3D.cc
In file included from /opt/local/include/wx-2.8/wx/mac/glcanvas.h:4:0,
from /opt/local/include/wx-2.8/wx/glcanvas.h:60,
from Ressort3D.h:9,
from Ressort3D.cc:1:
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:49:37: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:47) [-Wdeprecated-declarations]
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:53:21: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:47) [-Wdeprecated-declarations]
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o Couleur.o Couleur.cc
In file included from /opt/local/include/wx-2.8/wx/mac/glcanvas.h:4:0,
from /opt/local/include/wx-2.8/wx/glcanvas.h:60,
from Couleur.cc:7:
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:49:37: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:47) [-Wdeprecated-declarations]
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:53:21: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:47) [-Wdeprecated-declarations]
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o IntegrateurNewmark.o IntegrateurNewmark.cc
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o Vent.o Vent.cc
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o Ventilateur3D.o Ventilateur3D.cc
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o Trampoline3D.o Trampoline3D.cc
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o IntRungKut.o IntRungKut.cc
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o ChampVitesse.o ChampVitesse.cc
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o TapisRoulant3D.o TapisRoulant3D.cc
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o PenduleSpherique.o PenduleSpherique.cc
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o Cylindre.o Cylindre.cc
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o Cylindre3D.o Cylindre3D.cc
In file included from /opt/local/include/wx-2.8/wx/mac/glcanvas.h:4:0,
from /opt/local/include/wx-2.8/wx/glcanvas.h:60,
from Cylindre3D.h:8,
from Cylindre3D.cc:1:
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:49:37: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:47) [-Wdeprecated-declarations]
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:53:21: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:47) [-Wdeprecated-declarations]
g++gcc-4.6.x exerciceP13.o GUI.o Fenetre.o Vue_OpenGL.o Balle.o ChampForces.o Dessinable.o Exception.o Ressort.o Integrateur.o IntegrateurEuler.o ObjetMobile.o Obstacle.o Pendule.o PendulePlan.o PlanInfini.o Vecteur.o Systeme.o Balle3D.o PendulePlan3D.o Brique3D.o Brique.o PlanInfini3D.o Ressort3D.o Couleur.o IntegrateurNewmark.o Vent.o Ventilateur3D.o Trampoline3D.o IntRungKut.o ChampVitesse.o TapisRoulant3D.o PenduleSpherique.o Cylindre.o Cylindre3D.o `wx-config --libs gl,core,base` -o exerciceP13
g++gcc-4.6.x: error: i386: No such file or directory
g++gcc-4.6.x: error: unrecognized option ‘-arch’
make: *** [exerciceP13] Error 1
Qualche idea in merito?