saprykin / plibsys

Highly portable C system library: threads and synchronization primitives, sockets (TCP, UDP, SCTP), IPv4 and IPv6, IPC, hash functions (MD5, SHA-1, SHA-2, SHA-3, GOST), binary trees (RB, AVL) and more. Native code performance.
MIT License
672 stars 74 forks source link

A weirded error: ld.exe: final link failed: Permission denied #97

Closed uddlrl closed 1 year ago

uddlrl commented 1 year ago

FAILED: puthread_test.exe

ld.exe: reopening puthread_test.exe: Permission denied

ld.exe: final link failed: Permission denied

collect2.exe: error: ld returned 1 exit status

It could be related to this? https://github.com/saprykin/plibsys/issues/96

As I don't think the error is in the C code. Maybe you should update your CMakeLists.txt to compatible with modern CMake?

uddlrl commented 1 year ago

It's my setup that problematic. Build fine on proper MSYS2 and Cygwin shell.