lctong
lctong

Reputation: 1

C + + Builder 10.4.1 compiler running error in XP

image

Link with Dynamic RTL=true

Compiler running under XP prompt error

Unable to locate the program input point acquiresrwlockshared on the dynamic link library kernel32.dll.

Upvotes: -1

Views: 316

Answers (1)

Remy Lebeau
Remy Lebeau

Reputation: 597906

AcquireSRWLockShared() was introduced in Windows Vista. Clearly something in your project is static-linking to that function, so the error message makes sense when running your code on XP. Note also that you enabled the Dynamic RTL, but you did not also enable the Delphi Runtime Library, too. Typically, most C++Builder users disable these options to produce standalone executables, but you seem to want to enable them instead to utilize runtime BPLs (which will still fail to load on XP btw, even if your main EXE could run).

XP is no longer a supported platform. You can't run the IDE itself on XP, nor can you run programs compiled with 10.4 on XP. The IDE itself requires Windows 10 or later. Compiled programs require Windows 7 SP1 or later. See Operating System Requirements in 10.4's documentation.

The last version to officially support compiled programs running on XP was XE2. Support for XP was dropped in XE3.

Upvotes: 1

Related Questions