why this crashes?

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

why this crashes?

Postby Julio Jerez » Wed Dec 02, 2009 8:12 am

Code: Select all
#include <vector>
vector<int> xxx;


in teh abube code I get these error

c:\newton_200\newtonsdk\src\node.h(52) : error C2143: syntax error : missing ';' before '<'
c:\newton_200\newtonsdk\src\node.h(52) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int


but I do not know what is wrong
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: why this crashes?

Postby Dave Gravel » Wed Dec 02, 2009 11:38 am

You don't need stl and std for this one ?

#include <vector>
std::vector<int> xxx;
You search a nice physics solution, if you can read this message you're at the good place :wink:
OrionX3D Projects & Demos:
https://orionx3d.sytes.net
https://www.facebook.com/dave.gravel1
https://www.youtube.com/user/EvadLevarg/videos
User avatar
Dave Gravel
 
Posts: 801
Joined: Sat Apr 01, 2006 9:31 pm
Location: Quebec in Canada.

Re: why this crashes?

Postby Julio Jerez » Wed Dec 02, 2009 12:20 pm

Ha yes I forgot ths I nee to add

using namespace std;

thank you.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron