Project corrupted?  
Author Message
LKeene





PostPosted: Visual C++ General, Project corrupted? Top

I'm having a tough time and I hope someone can help me out. I tried to add some DirectSound support to my project. All I did was declare the linker path in the project settings dialog, added a couple of lib files in the Additional Dependencies, and included a header file. My project wouldn't compile due to errors in Dsound.h (a microsoft DirectSound header file). When I commented out the Dsound.h include directive that I had added, all of a sudden I get linker errors referring to other parts of my project that had been working fine (!), for example "unresolved external syn=mbol" referenced in MyApp::InitInstance(), and a host of others. I've removed all the changes I made to my project settings but the linker errors remain. This was working perfectly yesterday...what on earth is going on here

Visual C++14  
 
 
LKeene





PostPosted: Visual C++ General, Project corrupted? Top

Found it...it seems that opening up another project (which I did) with different linker/include settings, closing it, and then re-opening mine does not restore all the project settings. I had to manually re-enter all the include/library search paths for that project. Is there a way to avoid this problem in the future
 
 
einaros





PostPosted: Visual C++ General, Project corrupted? Top

Add the lib and header folders to the settings found in Tools > Options > Projects and Solutions > VC++ Directories.