?
Solved

thread.h

Posted on 2003-11-22
4
Medium Priority
?
1,447 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 150 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses

771 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