open62541 / open62541

Open source implementation of OPC UA (OPC Unified Architecture) aka IEC 62541 licensed under Mozilla Public License v2.0
http://open62541.org
Mozilla Public License 2.0
2.59k stars 1.24k forks source link

open62541 and windows xp #3227

Open ctrotha opened 4 years ago

ctrotha commented 4 years ago

Description

running open62541 release 1.0 on Windows XP

Background Information / Reproduction Steps

Downloaded open62541-win32.zip from open62541.org Starting on windows xp gives the following error:

Unbenannt

Checklist

Please provide the following information:

ghost commented 4 years ago

You need a newer C runtime library. Q quick search does not yield an installer, all XP related downloads have vanisehd from the microsoft page.

fedepell commented 4 years ago

VS redistributable runtimes can be found here: https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads The newest one (2015/2017/2019) should work.

The specific issue is with: https://github.com/open62541/open62541/blob/88dbcb6d644aaf3c38d2a1af9fc9cc2755c24c42/arch/win32/ua_architecture.h#L133 Since the secure (_s) functions are available from some version on (see also https://docs.microsoft.com/en-us/cpp/c-runtime-library/security-features-in-the-crt?view=vs-2015).

One could also just modify that line to use the normal, non secure, snprintf to make it more compatible.