Login Page - Create Account

Support Board


Date/Time: Tue, 21 May 2024 20:34:46 +0000



Post From: Compilation/linking error "cannot find -lpthread"

[2016-08-31 15:30:14]
User74271 - Posts: 3
Hi,

I am just starting to explore ACSIL by following your "Step-By-Step Instructions to Create an Advanced Custom Study Function" on
Advanced Custom Study Interface and Language (ACSIL): Step-By-Step Instructions to Create an Advanced Custom Study Function

When trying to build a new study (any, including the SC example ones), I always get the following:

-- Starting build of Custom Studies Source files: A_trial.cpp. -- 17:21:09

"C:\SierraChart\CPPCompiler\bin\g++.exe" "C:\SierraChart\ACS_Source\A_trial.cpp" -march=i686 -mtune=i686 -O2 -shared -static -static-libgcc -static-libstdc++ -s -fno-rtti -fno-exceptions -std=gnu++11 -o "C:\SierraChart\Data\A_trial.dll"

c:/sierrachart/cppcompiler/bin/../lib/gcc/mingw32/5.3.0/../../../../mingw32/bin/ld.exe: cannot find -lpthread
collect2.exe: error: ld returned 1 exit status
-- End of Build -- 17:21:11

Just reinstalled SC latest version as well as the compiler. Have no idea, how to fix...

Could you provide ahint, please?

Thanks
F.
imagelpthread_error.png / V - Attached On 2016-08-31 15:29:52 UTC - Size: 35.13 KB - 266 views