Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[C] Multithreading in windows

Status
Not open for further replies.

Venetus

Programmer
Feb 24, 2007
1
AR
Hi!!
I've been reading about multithreading, i want to learn and start coding, but i can't compile the examples i'am reading to learn.
I'm using Borland C++ 5.5.1 for Win32 and my config files are
bcc32
-I"C:\Borland\BCC55\Include"
-L"C:\Borland\BCC55\Lib;C:\Borland\BCC55\Lib\PSDK"
-P
-v-
-w
-D_WIN32_WINNT=0x0400

Ilink32
-v-
-x
-L"C:\Borland\BCC55\Lib;C:\Borland\BCC55\Lib\PSDK;C:\WINDOWS\system32"

And the error that the compiler gives me is:

Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
thread.c:
Error E2268 thread.c 30: Call to undefined function '_beginthread' in function main()
Error E2268 thread.c 46: Call to undefined function '_endthread' in function ThreadProc(void *)
*** 2 errors in Compile ***


can someone help me??
what am i doing wrong??
i'am a beginner in multithreading...
greetings!!
 
hmm im not so sure why its notcomplilling correctly are you sure you have all the header and unit files unzipped properly?

ive dabled in a bit of threading before and im still very much a beginner myself but personally i find it much easir to use the thread object in borland, it makes a seperate unit file where you can put thread code and then you create an instance of that thread in your program, im doubt its the best way of doing it but it has always worked for me quite well.

if you want to give it a try go to file->new->Other... and then choose thread object, there is also help somewhere in borland on this have you tried searching thread object in borland?

i hope this helps, or at least provides something to play with for a bit :)!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top