Hi,
Is there a way to include all the provided libraries in Visual studio (2008 SP1) for a VC++ code so that when the code gets compiled, it can pick up whichever required. It is OK if compilation time increases etc.
Thanks,
Emma Good.
Hi,
Is there a way to include all the provided libraries in Visual studio (2008 SP1) for a VC++ code so that when the code gets compiled, it can pick up whichever required. It is OK if compilation time increases etc.
Thanks,
Emma Good.
Last edited by emmagood; 05-17-2012 at 11:35 PM.
Yes there is. You could manually include every single one. No I'm not going to explain how.
It's not a good idea as it has a larger impact that just compile times. Runtimes and memory usage are also affected etc.
As a programmer you'll need to learn to look up stuff when you get a linker error, and see which libs to add to your project. It's pretty well documented on MSDN.
My homepage
Advice: Take only as directed - If symptoms persist, please see your debugger
Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"
Hi iMalc,
Thanks for the reply. Yes, it dosnt seem to be a good programming practice. But, as of now I am trying to compile an existing code (written by someone). Previously I ran into errors where the header files were not included, now I am running into error where nested header files are not included / not getting the resources / need some more header files. For eg:
c:\program files\labpacks\visual c++\include\vclobjects.h(262) : error C3861: 'wcstombs_s': identifier not found
whereas the listed #includes dosnt call vlcobjects.h; maybe some of the other header file(s) is calling the vlobjects.h etc.
Anyways, thanks,
Emma Good
Why did you open another thread on the same GD issue???
Agrees with r2r, closed.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.