Solved

thread.h

Posted on 2003-11-22
4
1,402 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PDF library for Delphi 2 128
How to convert MFC::CString to UTF8 wchar_t* 10 293
C++ :Change value from  DisableCMD registry 4 66
Error creating a new C++ project in ,net 20 42
When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

820 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