OK, there error from my previous post…
It seems that it is not related to glut or Opengl linking, but to my code… But the code has cimpiled ok under VS2002, 2003 and Borland… If someone coudl please look at this (maybe it is a known ‘bug’ in g++) I’d really appreciate it.
Basically, the error I’m getting is this:
Asteroids.cpp: In method Asteroids::Asteroids(const vector<Point,allocator<Point> > &)': Asteroids.cpp:23: warning: assignment to
int’ from double' Asteroids.cpp:31: warning: assignment to
int’ from double' Asteroids.cpp:38: warning: assignment to
int’ from double' AsteroidsComposite.cpp: In method
void
AsteroidsComposite: nHit(int)’:
AsteroidsComposite.cpp:154: no matching function for call to `vector<vector<Point,allocator<Point> > *,allocator<vector<Point,allocator<Point> > *> >::at (int)’
Again, I don’t quite understand what it means It worked 100% well with the above compilers…
Huge thanks,
Luke