POV-Ray / povray

The Persistence of Vision Raytracer: http://www.povray.org/
GNU Affero General Public License v3.0
1.35k stars 282 forks source link

Error C2039: 'strdup': is not a member of 'std' #370

Closed trevorsandy closed 5 years ago

trevorsandy commented 5 years ago

The povparser module build fails on MSVC (I'm using VS2017) with the following return:

..\..\source\parser\fncode.cpp(197): error C2039: 'strdup': is not a member of 'std'

The failure can be traced to this line of code: https://github.com/POV-Ray/povray/blob/0f3efc8edce08d60b9eee1df5f9b904ace7e6dd7/windows/povconfig/syspovconfig.h#L172

Builds succeed when std::strdup(str) is replaced with_strdup(str).

Cheers,

c-lipka commented 5 years ago

Thanks for spotting this. Good to know someone is keeping an eye on the Windows console version of POV-Ray.

Fixed in the master branch, and will be included in the next tagged version.