C / MinGW

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Re: C / MinGW

Postby Julio Jerez » Tue Sep 10, 2013 7:30 am

O I applied the changes to the header file

what does this means:
Code: Select all
undefined reference to `_imp__NewtonBodyGetMassMatrix'
undefined reference to `_imp__NewtonBodySetForce'
undefined reference to `_imp__NewtonCreate'
undefined reference to `_imp__NewtonCreateBox'
undefined reference to `NewtonCreateBody'
undefined reference to `_imp__NewtonBodySetForceAndTorqueCallback'
undefined reference to `_imp__NewtonBodySetMassMatrix'
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: C / MinGW

Postby 3TATUK » Tue Sep 10, 2013 5:09 pm

It's what happens when i link libNewton.a and try calling those functions, like NewtonCreateBody() and NewtonCreateBox()
3TATUK
 
Posts: 22
Joined: Thu Sep 05, 2013 11:55 pm

Re: C / MinGW

Postby Julio Jerez » Tue Sep 10, 2013 8:08 pm

I am confuced, those funtiosn are no part of newton 3.11 for almost a year
there is not NewtonCreateBody()
there is
NewtonBody* NewtonCreateDynamicBody(const NewtonWorld* const newtonWorld, const NewtonCollision* const collisionPtr, const dFloat* const matrixPtr)
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: C / MinGW

Postby 3TATUK » Tue Sep 10, 2013 8:23 pm

What about the rest?

Also, is there any modern simple C-api tutorial?

The code is from this one which is outdated:
http://newtondynamics.com/wiki/index.ph ... _C_example

The rest of the new tutorials mainly look like they use the tutorial SDK which 1. is in C++ and 2. I don't want to use

Any material?
3TATUK
 
Posts: 22
Joined: Thu Sep 05, 2013 11:55 pm

Re: C / MinGW

Postby 3TATUK » Tue Sep 17, 2013 2:43 am

running `make` in packages/projects/mingw32:

Code: Select all
In file included from ../../source/newton/Newton.cpp:23:0:
../../source/newton/Newton.h: At global scope:
../../source/newton/Newton.h:290:4: error: declaration does not declare anything [-fpermissive]
  } NewtonTaperedCapsuleParam;
    ^
In file included from ../../source/newton/Newton.cpp:23:0:
../../source/newton/Newton.h:550:2: error: expected declaration before '}' token

  } NewtonClothPatchMaterial;
  ^
make[1]: *** [../../source/newton/Newton.o] Error 1
3TATUK
 
Posts: 22
Joined: Thu Sep 05, 2013 11:55 pm

Previous

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 5 guests