I just started using PAL a few days ago, but I keep getting blocked. When I try to compile the first test code which is given in the tutorial documentation, I always get the following error:
"1>E:\lib\PAL\pal\pal\Config.h(13) : error C2470: '$' : looks like a function definition, but there is no parameter list; skipping apparent body
1>.\gizi.cpp(13) : error C2660: 'palPhysics::Init' : function does not take 3 arguments"
Can anyone tell me how can I make this work?
Thank you in advance,
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Did you just copy Config.h.in to Config.h? That's what it looks like you did, or perhaps the cmake build didn't process it for some reason?
Mine looks like
/// Contains defines and constants depending on the configuration choosen during the CMake build process.
/// This file is generated by CMake.
#ifndef PAL_CONFIG_H
#define PAL_CONFIG_H
#include <pal/ConfigVersion.h>
/// Name of the default physics engine, that is to say the higest priority availaible engine.
const char * const DEFAULT_ENGINE = "ODE";
/// Indicates the CMake build system has found BOX2D.
#define PAL_BUILD_BOX2D
/// Indicates the CMake build system has found JIGGLE.
#define PAL_BUILD_JIGGLE
/// Indicates the CMake build system has found NEWTON.
#define PAL_BUILD_NEWTON
/// Indicates the CMake build system has found BULLET.
#define PAL_BUILD_BULLET
/// Indicates the CMake build system has found ODE.
#define PAL_BUILD_ODE
#endif // PAL_CONFIG_H
But it should be generated by cmake.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think there's my problem, some of the files I think weren't generated by cmake. For some reason I get some errors also when I try to generate the files with cmake. (I also had some issues first with the configuration but solved it out, but now i have problem with generating too). Right now when I try to generate i get the following error:
I figured it out how to solve those errors, but now I have another issue. When I compile the demo, i will always get the following error:
(13) : error C2660: 'palPhysics::Init' : function does not take 3 arguments
I tried to look for an answer but couldn't find one. I would appreciate any answer, solution.
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I just started using PAL a few days ago, but I keep getting blocked. When I try to compile the first test code which is given in the tutorial documentation, I always get the following error:
"1>E:\lib\PAL\pal\pal\Config.h(13) : error C2470: '$' : looks like a function definition, but there is no parameter list; skipping apparent body
1>.\gizi.cpp(13) : error C2660: 'palPhysics::Init' : function does not take 3 arguments"
Can anyone tell me how can I make this work?
Thank you in advance,
Did you just copy Config.h.in to Config.h? That's what it looks like you did, or perhaps the cmake build didn't process it for some reason?
Mine looks like
/// Contains defines and constants depending on the configuration choosen during the CMake build process.
/// This file is generated by CMake.
#ifndef PAL_CONFIG_H
#define PAL_CONFIG_H
#include <pal/ConfigVersion.h>
/// Name of the default physics engine, that is to say the higest priority availaible engine.
const char * const DEFAULT_ENGINE = "ODE";
/// Indicates the CMake build system has found BOX2D.
#define PAL_BUILD_BOX2D
/// Indicates the CMake build system has found JIGGLE.
#define PAL_BUILD_JIGGLE
/// Indicates the CMake build system has found NEWTON.
#define PAL_BUILD_NEWTON
/// Indicates the CMake build system has found BULLET.
#define PAL_BUILD_BULLET
/// Indicates the CMake build system has found ODE.
#define PAL_BUILD_ODE
#endif // PAL_CONFIG_H
But it should be generated by cmake.
I think there's my problem, some of the files I think weren't generated by cmake. For some reason I get some errors also when I try to generate the files with cmake. (I also had some issues first with the configuration but solved it out, but now i have problem with generating too). Right now when I try to generate i get the following error:
CMake Error in CMakeLists.txt:
Cannot find source file "hull.h". Tried extensions .c .C .c++ .cc .cpp
.cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx
(I never used cmake before so I'm new in this too.)
Thanks for your help.
Hello,
I figured it out how to solve those errors, but now I have another issue. When I compile the demo, i will always get the following error:
(13) : error C2660: 'palPhysics::Init' : function does not take 3 arguments
I tried to look for an answer but couldn't find one. I would appreciate any answer, solution.
Thanks.