Skip to main content
gamedev.net
🔒 Locked

VC++ std

Started by daniel_i_l 1 reply 2.9k views
Original Post
daniel_i_l
daniel_i_l
I just installed VC++ Express and now when I try to do this: if (vector_length > std::numeric_limits<double>::epsilon()) I get tons off errors like: c:\documents and settings\daniel lowengrub\my documents\visual studio 2005\projects\nehegl\nehegl\vector2d.h(248) : error C2039: 'numeric_limits' : is not a member of 'std' c:\documents and settings\daniel lowengrub\my documents\visual studio 2005\projects\nehegl\nehegl\vector2d.h(248) : error C2065: 'numeric_limits' : undeclared identifier c:\documents and settings\daniel lowengrub\my documents\visual studio 2005\projects\nehegl\nehegl\vector2d.h(248) : error C2062: type 'double' unexpected c:\documents and settings\daniel lowengrub\my documents\visual studio 2005\projects\nehegl\nehegl\vector2d.h(248) : error C2039: 'epsilon' : is not a member of '`global namespace'' But in dev this works? is there a differents between the stds? What should I do? Thanks.
"We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the internet, we know this is not true." -- Professor Robert Silensky
Fruny
Fruny
#include <limits>
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
daniel_i_l
daniel_i_l
thanks now i don't get that error.
"We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the internet, we know this is not true." -- Professor Robert Silensky

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.