What header file is strdup located in and do I need to link to any libs in my project to use it? I am trying to compile someone else's C code that uses the function and I get this error:
Undefined symbol: _strdup
This code compiled and linked as a dll before I exported any functions. After I added __declspec(dllexport) to some of the functions, I started to get this error. How can I fix this?