including libs in a build

I've got a project that requires a lot of directx9 libraries, can I configure visual studio to include these as part of the build so that I don't have to put them all in the same folder as the .exe it produces?

Thanks.

EDIT - I also need to do the same thing for boost thread and date_time
Last edited on
Do you mean static linking? If so i don't think its possible with DX, don't have link now but you can google static link directx or somethinglike that.
EDIT: What dlls do you need to copy in exe-s folder? This should work as is.!
EDIT: Better yet, why do you need to copy those? What IDE you are using? What errors you are geting (if any)?
Last edited on
I built the static boost libs, but now I have a new problem

error C189: #error "Compiler threading support is not turned on. Please set the correct command line options for threading: either /MT /MTd /MD or /MDd"

Does this mean setting the runtime library? I've set it to /MT in release mode, but still get this error.

Thanks savavampir for the reply, I'm in a bit of a rush
Last edited on
Just saw your edits, I used to get 'cannot include file...blah blah blah' if I didn't put the lib files in the .exe's directory, as for which libs, it was loads.

d3d9, d3dx9, xinput, dsound, xact...and many more
I guess you have vs 2010 IDE?
1. I don't know for sure if you can use static linking if you want multithreading support. Maybie someone else could answer this one. /MT is correct for Release builds!
2. Don't copy anything to exe-s folder!!!!
Did you set correct (any) paths in "Property Page/VC++ directories" for your project?
No I didn't set any paths in VC++ properties, is this what I should be doing rather than changing additional include directories and additional library directories?
Never tried "additional path's" so i don't know for sure. Common way is to set paths in place where i told you and you are set.
Topic archived. No new replies allowed.