[ODE] creating your own libraries
coding at natew.com
Wed Sep 4 20:25:02 2002
On Wed, 4 Sep 2002, pia dalusong wrote:
> i used to incorporate ode and drawstuff libs in my
> program but now that I am using MFC and programming in
> MDI,I need to create my own ode libraries. How do you
> do it?
I am also using ODE with MFC and MDI. When I started, I was using ODE as
static library; now I am using ODE as a DLL. I think the DLL method is a
bit easier to work with. Create a new Win32 DLL project in your
workspace and add the ODE .cpp and .c files to it, as well as the .def
The ODE DLL project will generate an import library (a .lib file), and
your application project must include that .lib file in the linker input
options. Your app will also need to be able to find the ODE DLL at run
time. You can copy files manually, or perhaps with a 'post-build step' in
the project options (that's how I do it with VC7, I think that option
exists in VC6 but I'm not sure).
> Without the libraries, my program has too many unresolved errors but
> with them, it conflicts with msvcrtd.lib, I think that's what it was.
> What can I do? Please help.
Make sure your library and EXE are compiled with the same runtime library
library option, for example make them both 'multithreaded debug' or
'single threaded debug.' I'm not certain but it sounds like you might
have a mismatch there.
Redmond WA USA