Hello all,
I'm working with wide characters and need to use the wcsdup function to replace some code that was using normal characters and the strdup function.
I'm including <wchar.h> and have had no problems with the wchar_t type itself nor with wcscpy, but when I try to compile when using wcsdup, I get: 'wcsdup' undeclared.
If I look inside wchar.h, I can see wcsdup declared as an extern function.
I realize the solution to this problem may be platform, compiler dependent, but I would appreciate any help at all.
I'm running on Red Hat Enterprise with gcc 2.96 (yes, it's old, and out of my control).
Thanks,
Dan
I'm working with wide characters and need to use the wcsdup function to replace some code that was using normal characters and the strdup function.
I'm including <wchar.h> and have had no problems with the wchar_t type itself nor with wcscpy, but when I try to compile when using wcsdup, I get: 'wcsdup' undeclared.
If I look inside wchar.h, I can see wcsdup declared as an extern function.
I realize the solution to this problem may be platform, compiler dependent, but I would appreciate any help at all.
I'm running on Red Hat Enterprise with gcc 2.96 (yes, it's old, and out of my control).
Thanks,
Dan