Solved

thread.h

Posted on 2003-11-22
4
1,380 Views
Last Modified: 2007-12-19
I am beginning a small project that studies the effects of concurrent access to a variable using thread simulations. I am required to use thread.h and tcl.h in the simulaton.

It is my understanding that these are part of the standard library? When I try to include them using #include <thread.h> and #include <tcl.h> I get the following error:

fatal error C1083: Cannot open include file: 'thread.h': No such file or directory

where are these files supposed to be located??
0
Comment
Question by:dmiga
  • 2
  • 2
4 Comments
 
LVL 9

Expert Comment

by:tinchos
ID: 9803103
Hi dmiga,

The problem is the following

When you say

#include <thread.h>
or #include <tcl.h>

you're saying the compiler to include the content of the file thread.h which is located in one of the include directories you have.

The error you're getting is because the compiler is not finding those files, neither thread.h nor tcl.h.

I'm using MSVC++ 6.0 and the don't come with it. Maybe they belong to a different library, in which case you should make the include point to the place where that file is stored.

Hope this helps

Tincho
0
 

Author Comment

by:dmiga
ID: 9803135
I have downloaded the thread files and directed MS C++ 6.0 to the location but can not find where to get the simple tcl library with the tcl_sleep function that I need.

Any Ideas?
0
 
LVL 9

Accepted Solution

by:
tinchos earned 50 total points
ID: 9803160
Sincerely I've no idea where to get it from

In order to avoid the errors you're getting

place the header files in any of the include directories or use the

#include "c:\thread\include\thread.h"

where c:\thread\include is the directory where the thread.h file is stored.

Sorry I cannot help you finding where the tcl library is

TIncho
0
 

Author Comment

by:dmiga
ID: 9803171
Thanks for your reply. I do appreciate it!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now