RigidBody library with g++
Posted: Wed Aug 13, 2008 1:17 am
Hi,
I newly started working on RigidBody SDK. I know the SDK and sample programs are tested under VC, but for various reasons I am working with mingw g++.
This is my question. I can compile the following simple code using a C compiler(gcc) but cannot compile it using a C++ compiler(g++).
"gcc test.c NPRigidBody.dll Kernel32.lib" succeeds,
while "g++ test.c NPRigidBody.dll Kernel32.lib" fails with linkage errors.
Since my actual project is largely written in C++, I would like to solve this problem and proceed with C++ without any painful porting. Do you have any idea about this problem?
I newly started working on RigidBody SDK. I know the SDK and sample programs are tested under VC, but for various reasons I am working with mingw g++.
This is my question. I can compile the following simple code using a C compiler(gcc) but cannot compile it using a C++ compiler(g++).
Code: Select all
#include <windows.h>
#include <stdbool.h>
#include "NPRigidBody.h"
int main()
{
RB_InitializeRigidBody();
RB_ShutdownRigidBody();
}
while "g++ test.c NPRigidBody.dll Kernel32.lib" fails with linkage errors.
undefined reference to '_imp__Z22RB_InitializeRigidBodyv'
Since my actual project is largely written in C++, I would like to solve this problem and proceed with C++ without any painful porting. Do you have any idea about this problem?