Hi all,
I'm trying to make a simple Newton 2.0 demo for Lazarus and GLScene, but I have some problems.
First of all, this demo compile and works right by command line (e.g. fpc SDLNewtonBasicDemo.pas ):
// =============================================================================
//
// SDLNewtonBasicDemo.pas
// Very basic demo that shows how to use Newton Game Dynamics.
//
// =============================================================================
// Note : Using Newton 2.xx
// =============================================================================
//
// 2010 by Sascha Willems (www.saschawillems.de)
// Newton Game Dynamics © 2003-2010 by Julio Jerez (www.newtondynamics.com)
//
// =============================================================================
So, I tried to copy some code from it to my "demo", but when compiling I have this error:
Hint: Start of reading config file C:\Develop\fpc\2.5.1\bin\i386-Win32\fpc.cfg
Hint: End of reading config file C:\Develop\fpc\2.5.1\bin\i386-Win32\fpc.cfg
Free Pascal Compiler version 2.5.1 [2010/06/26] for i386
Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Win32 for i386
Compiling Engine3D.lpr
Compiling main.pas
main.pas(34,14) Hint: Type "TVector3f" redefinition
main.pas(38,14) Hint: Type "TMatrix4f" redefinition
main.pas(92,60) Hint: Parameter "TimeStep" not used
main.pas(92,78) Hint: Parameter "ThreadIndex" not used
main.pas(141,49) Error: Wrong number of parameters specified for call to "ForceAndTorqueCallback"
main.pas(92,11) Hint: Found declaration: ForceAndTorqueCallback(const PNewtonBody,Single,LongInt); CDecl;
main.pas(152) Fatal: There were 1 errors compiling module, stopping
then it point to this row:
NewtonBodySetForceAndTorqueCallBack(NewtonBody, ForceAndTorqueCallback);
Where am I in wrong?
Thank you!
