error C3861

This is a discussion on error C3861 within the C++ Programming forums, part of the General Programming Boards category; Hi,
I am getting the error :
c:\program files\labpacks\visual c++\include\vclobjects.h(99) : error C3861: 'wcstombs_s': identifier not found
c:\program files\labpacks\visual c++\include\vclobjects.h(379) ...

If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Buttercup, and read this, this, and this before posting again.

Sorry - I typed too fast, and meant before the vclobjects.h. The fact you are getting those error messages means one of those header files you listed (or a header that they #include .....) is #include'ing vclobjects.h. However, the missing symbols will be within <stdlib.h> if you are using Microsoft's compiler. Try placing #include <stdlib.h> before the first of those #include's you listed.

Those particular missing symbols are specific to Microsoft's compilers and the association libraries (although some other vendors may support them in the interests of compatibility).

If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Buttercup, and read this, this, and this before posting again.

To be honest, I think you should start with a new console project which has just stdlib.h and a main() calling wcstombs_s, just to prove to yourself that there isn't anything wrong with your environment.

To be honest, I think you should start with a new console project which has just stdlib.h and a main() calling wcstombs_s, just to prove to yourself that there isn't anything wrong with your environment.

Hi Salem,

I tried as per you advice. I uninstalled Visual Studio 2008 and installed it back. Then opened the project as fresh (did not Ok when the prompt came up to open the existing project). when I started compiling it; this time it could not find the header file 'afxdtctl.h'. I then searched the entire computer for the path to this header file. It did not show up in the search !

BTW I had opened up another query just to get a second opinion from the people.

I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.