Skip to main content
gamedev.net
🔒 Locked

MSVS 2008 problem

Started by rozz666 1 reply 650+ views
Original Post
rozz666
rozz666
I have 2 files Renderer/MaterialParser.cpp and Physics/MaterialParser.cpp in my project. VS to compile both of them. It only compiles the first, so I get linkage errors. Is there a way to fix this?
SiCrane
SiCrane
If you have two source files with the same name in the same project but in different directories you need to manually set the output directories so that the object files are generated in different directories. Go to the solution explorer, click on each of the relevant files and go the properties for the files. Under C/C++ - Output Files go to the Object File Name property and change it from $(IntDir) to $(IntDir)\Renderer or $(IntDir)\Physics depending on the file.
rozz666
rozz666
Thanks. It works!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.