Original Post
I have my program split up into several projects within the same solution in VS.net (C++). There is a "main" project that lists the other projects as its dependencies. For example, I have a graphics project and a math project, and they both feed into the main project. The main project outputs an executable, and the other projects output libraries in .lib form.
The problem comes when I want to use an additional library that I did not write (for example, d3d9.lib). To use them, I go to the particular project that needs them and add them to the particular project's 'Additional Dependencies' property, and that is all.
Then, when I try to build the solution, I get a long list of warnings about redefinitions. For example:
d3d9.lib(d3d9.dll) : warning LNK4006: _Direct3DCreate9@4 already defined in d3d9.lib(d3d9.dll); second definition ignored
I get one of those for every function in the library. This happens whether I build the entire solution or just the one project.
Does anyone know why this might be happening? Thanks for any insight~
edit: PS: I have checked everywhere for somewhere I might have required the library twice.. in each case, I only add the library to one dependency list!
[edited by - rileyriley on January 14, 2004 7:55:21 PM]