Code::Blocks Forums

User forums => Help => Topic started by: kencfii on August 27, 2016, 10:33:28 pm

Title: lp.exe cannott find -lpthread
Post by: kencfii on August 27, 2016, 10:33:28 pm
Hello,
I have CB installed on desktop and works fine.
Did same process on laptop but get this error when try to compile.

Windows 10
GNU GCC compiler

lp.exe can not find -lpthread

any ideas what causes this error?


Thanks
Title: Re: lp.exe cannott find -lpthread
Post by: stahta01 on August 27, 2016, 10:54:26 pm
Two wild guesses; NOTE: If you post a full rebuild log and information about your Compiler then you might get something that is not a wild guess.

1. Your Compiler does NOT have that library.
2. Code::Blocks tool-chain settings are NOT correct for your Compiler.

Tim S.


Title: Re: lp.exe cannott find -lpthread
Post by: kencfii on August 27, 2016, 11:20:15 pm
Wow!
Got it!

Went into MinGW installer and just selected PT-Threads to install.

Works fine now

Cant believe more people dont have this problem

I followed the install instructions to the letter - same problem on netbeans.

works now

hope this helps someone.