Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » pthread_t error after including paths
pthread_t error after including paths [message #998299] Wed, 09 January 2013 18:46 Go to next message
tanya raghuvanshi is currently offline tanya raghuvanshi
Messages: 2
Registered: January 2013
Junior Member
I am trying to run a simple code using pthreads using linux compiler.

1. I have included /usr/include in the include path c/c++ settings.
2. Also i have set the compiler->miscellaneous->other tag to -pthread
and added "pthread" in libraries of the linker.

Problem: Still getting an error: type 'pthread_t' could not be resolved.

Please give some suggestions.
  • Attachment: 1.png
    (Size: 121.26KB, Downloaded 81 times)
Re: pthread_t error after including paths [message #998792 is a reply to message #998299] Thu, 10 January 2013 17:57 Go to previous messageGo to next message
Jayanth D is currently offline Jayanth D
Messages: 16
Registered: December 2012
Junior Member
I think you have not saved the file. Click File>Save All and then build and run your code.
Re: pthread_t error after including paths [message #998794 is a reply to message #998299] Thu, 10 January 2013 17:59 Go to previous messageGo to next message
Jayanth D is currently offline Jayanth D
Messages: 16
Registered: December 2012
Junior Member
Post the code so that we can see the line which has error. Also try to save the file and then compile.
Re: pthread_t error after including paths [message #998796 is a reply to message #998792] Thu, 10 January 2013 18:01 Go to previous message
tanya raghuvanshi is currently offline tanya raghuvanshi
Messages: 2
Registered: January 2013
Junior Member
no, i had saved the file as well. Tried restarting eclipse many times then my system. It was of no help.

Finally i switched to a lower version of eclipse (indigo). It works there with same settings.
Previous Topic:Indexer not working with << operator
Next Topic:How to disable PTP in Indigo
Goto Forum:
  


Current Time: Thu Oct 23 22:17:14 GMT 2014

Powered by FUDForum. Page generated in 0.01864 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software