Author Topic: lp.exe cannott find -lpthread  (Read 3764 times)

Offline kencfii

  • Single posting newcomer
  • *
  • Posts: 2
lp.exe cannott find -lpthread
« 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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: lp.exe cannott find -lpthread
« Reply #1 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.


C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline kencfii

  • Single posting newcomer
  • *
  • Posts: 2
Re: lp.exe cannott find -lpthread
« Reply #2 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.