Starter proj errors

14 views
Skip to first unread message

R4nd0mcr4ck3r

unread,
Jun 28, 2009, 1:16:39 PM6/28/09
to G3D Users
Hello I get the following error's when trying to debug the starter
project g3d(app.cpp, app.h)

Error 1 error C2039: 'min' : is not a member of 'std' c:\g3d\include
\g3d\g3dmath.h 263
Error 2 error C2275: 'T' : illegal use of this type as an expression c:
\g3d\include\g3d\g3dmath.h 263
Error 3 error C2039: 'max' : is not a member of 'std' c:\g3d\include
\g3d\g3dmath.h 278
Error 4 error C2275: 'T' : illegal use of this type as an expression c:
\g3d\include\g3d\g3dmath.h 278
Error 5 error C2039: 'max' : is not a member of 'std' c:\g3d\include
\g3d\g3dmath.h 278
Error 6 error C2275: 'T' : illegal use of this type as an expression c:
\g3d\include\g3d\g3dmath.h 278
Error 7 error C2039: 'min' : is not a member of 'std' c:\g3d\include
\g3d\g3dmath.h 263
Error 8 error C2275: 'T' : illegal use of this type as an expression c:
\g3d\include\g3d\g3dmath.h 263

I'm not that great with c++ and I can't recognize errors so I need
some help with this.

corey taylor

unread,
Jun 28, 2009, 6:32:10 PM6/28/09
to g3d-...@googlegroups.com
Can you tell us more about your build/development environment?

corey

R4nd0mcr4ck3r

unread,
Jun 29, 2009, 5:29:34 PM6/29/09
to G3D Users
Yeah, it's visual c++ express ed. 08. I've got it set up with g3d lib
and include directories. the only changes I've made else is adding
directx to lib, include, bin, and source directories. Hope that's
enough.

R4nd0mcr4ck3r

unread,
Jun 29, 2009, 5:34:06 PM6/29/09
to G3D Users

And I'm using vista if that's important.

corey taylor

unread,
Jun 29, 2009, 7:51:04 PM6/29/09
to g3d-...@googlegroups.com
Interesting. I guess we're missing:

#include <algorithm>

at the top of that file?

We've never had that build error though.

corey

R4nd0mcr4ck3r

unread,
Jun 30, 2009, 7:59:15 PM6/30/09
to G3D Users
Ok, well that's just great, including algorithm doesn't change
anything. Thanks for trying to help though. I appreciate it. Any other
thoughts of what the cause of this could be?

corey taylor

unread,
Jul 2, 2009, 12:22:07 AM7/2/09
to g3d-...@googlegroups.com
Are you able to build a test program that uses std::min and std::max?

corey

R4nd0mcr4ck3r

unread,
Jul 2, 2009, 10:36:01 AM7/2/09
to G3D Users
No, there`s still an error. min is not a member of std.

corey taylor

unread,
Jul 2, 2009, 12:37:26 PM7/2/09
to g3d-...@googlegroups.com

Odd. Sounds like a setup problem.

I would redo the installation and platform sdk if proper code wouldn't compile outside of g3d.

corey

On Jul 2, 2009 10:36 AM, "R4nd0mcr4ck3r" <will...@hotmail.com> wrote:


No, there`s still an error. min is not a member of std.

--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subs...

Reply all
Reply to author
Forward
0 new messages