[ODE] Making an MSVC project that uses ODE & drawstuff
John DeWeese
deweese at ict.usc.edu
Wed Mar 12 14:54:01 2003
I see... well, I don't have the ode libs in the VC7 directory, I just
have it in a directory near my own project. I go into the project
options for debug and release, and set the C/C++:input section include
paths to point to the ode includes. Then I go to the Linker/input or
Linker/general or some such and set "additional places to look for
libraries" (sic) to the ode lib dir, and then put ode.lib on the
library input line. Not setting the ode includes as a system directory
means that I have to use #include "ode/ode.h" instead of <ode/ode.h>.
Kinda annoying.
I don't think it's necessary to add it as a linker option, doing the
ambiguous instructions above worked for me. Not familiar with
Comctl32.lib, but what the hey. I have never had the test_boxstack app
(that was the test I used too) crash on exit.
Ping the list with further issues, keep at it.
- John DeWeese
On Wednesday, March 12, 2003, at 01:17 PM, Pete Graves wrote:
> Thanks John. The steps you listed is the stuff I can do (except I
> don't need to change anything for it to compile the .libs in MSVC). It
> is using the libraries from within Visual Studio (or any IDE) thats
> the problem.
>
> Where do I need to set the path to find the library. I assumed that
> putting the files in the Vc7\lib\ and Vc7\include\ directory would
> have them found.
>
> Assuming I need to specify the library in the project somewhere, I
> tried adding ode.lib in the "Additional Options", in the "Command
> Line" section of linker configuration for the project which worked
> (but gives a couple of weird warnings).
>
> I tried compiling an ode test program, and added drawstuff.lib too. It
> was still missing what seemed to be OpenGL functions, so I added
> OpenGL32.lib, Glu32.lib, Comctl32.lib and resources.RES too. That
> works, but strangely the program crashes when I exit.
>
> I don't really know what I am doing with all these project settings.
> Am I doing the right thing, or do I not need to do all this?
>
> Thanks again,
>
> Pete.