I'm trying to use DirectX. I can't get the IDE to recongnize the Header Files files and the Library files. If I drag the files manuly into my project it works just fine, but I'm getting tired of doing that.
How or Why isn't finding the files?
Printable View
I'm trying to use DirectX. I can't get the IDE to recongnize the Header Files files and the Library files. If I drag the files manuly into my project it works just fine, but I'm getting tired of doing that.
How or Why isn't finding the files?
Tools->Options->Directories
You must add the include and library paths of your DirectX SDK. They should be at the first position.
I already did that. I can get it to find the header file but I can't get it to find the LIB files. I add the LIB path to the directory list but unles I manuly add the LIB files I get those stupid LNK errors.
What else did I forget to do?
You have to manually add them, the directory only says where it should search for the files you manually add.
What? I don't get what you're saying. The file lib files are located in D:\dxsdk8\lib. I add the directory D:\dxsdk8\lib to the Library Files. The compiler should find the files right?
But it doesn't find them. I have to manuly add the LIB files to my Workspace for it to work right.
In the linker options of your project there is a place where you can specify the libraries it should link to. You must list the libs there, and you need to do it explicitly.
The reason is that the linker can't use every available library in those directories everytime, it would take too long and would often result in ambiguity errors.
I Think I know what your saying but how do I list the libs?
There's an edit field where you simply write their names into.