• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1495
  • Last Modified:

thread.h

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
dmiga
Asked:
dmiga
  • 2
  • 2
1 Solution
 
tinchosCommented:
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
 
dmigaAuthor Commented:
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
 
tinchosCommented:
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
 
dmigaAuthor Commented:
Thanks for your reply. I do appreciate it!
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now