Computing.Net > Forums > Programming > Help on including pthread.h file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Help on including pthread.h file

Reply to Message Icon

Name: Neeraja
Date: June 20, 2005 at 00:54:26 Pacific
OS: Windows 2000
CPU/Ram: 256
Comment:

Hello,

I am trying to call pthreads API using Microsoft visual studio VC98..

I have copied the pthread.h file in c:/program files/Microsoft visual studio/VC98/Include and pthreadGC2.dll,pthreadGCE2.dll,pthreadVC2.dll,pthreadVC2(LIB),pthreadVSE2.dll,pthreadVSE2(LIB) files in the c:/program files/Microsoft visual studio/VC98/LIB directory.. kindly let me know if i need to do anything more to run my program

thnx.



Sponsored Link
Ads by Google

Response Number 1
Name: borelli35
Date: June 20, 2005 at 16:40:50 Pacific
Reply:

=========================================================================
It is difficult to say but I do know that often the answer to a question is within the information that you already know. i.e. what success or failure are you having at this juncture? Have you had any results or just an inabuility to establish/create the connection to the desired thread? You have the correct .DLL files but for linking purposes you may need the object files associated with them...do you have access to these or do you get any messages that might indicate this? What other (if any) messages do you receive? etc., etc., etc....


John W. Borelli
IT Specialist
Hawkeye Security
borelli35


0

Response Number 2
Name: Neeraja
Date: June 21, 2005 at 02:57:02 Pacific
Reply:

Hi Borelli,

I am getting link error.. plz find the same below

I have Assign.c file and it compiles file but when linking i get the following error.

Plz note that i compile and link through the options "Rebuild All".

Linking...
Assign.obj : error LNK2001: unresolved external symbol __imp__pthread_join
Assign.obj : error LNK2001: unresolved external symbol __imp__pthread_create
Assign.obj : error LNK2001: unresolved external symbol __imp__pthread_attr_init
Assign.obj : error LNK2001: unresolved external symbol __imp__pthread_exit
Debug/Assign.exe : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.

Thnx,
Neeraja


0

Response Number 3
Name: borelli35
Date: June 24, 2005 at 01:54:14 Pacific
Reply:

===============================================================
Post the main module if you can. It looks like you have declared these data types or dereferenced them when it wasn't necessary but honestly I couldn't say for sure without looking at the code.

John W. Borelli
IT Specialist
Hawkeye Security
borelli35


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


i would like to make remo... search with sql vb6



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Help on including pthread.h file

including my .h files(class definitions) www.computing.net/answers/programming/including-my-h-filesclass-definitions/322.html

help on creating DOS Batch file www.computing.net/answers/programming/help-on-creating-dos-batch-file/15163.html

class .h files cant include eachoth www.computing.net/answers/programming/class-h-files-cant-include-eachoth/11592.html