General_Trageto Posted March 9, 2003 Share Posted March 9, 2003 Alright, my 'dining-philiosophers'-program is almost finished. No more errors when compiling it. However, when I try to create the EXE file I get three 'unresolved external symbol' warnings for the function prototypes random and run. I've included the files stdio.h, windows.h, process.h and stdlib.h, so there shouldn't be any problems - actually. What am I supposed to do? I must have this lil bastard done by tomorrow! Link to comment Share on other sites More sharing options...
Jem Posted March 9, 2003 Share Posted March 9, 2003 #include <iostream.h> Link to comment Share on other sites More sharing options...
General_Trageto Posted March 9, 2003 Author Share Posted March 9, 2003 Thanks, but it didn't work. I just learned that some .lib file is missing. Does anybody know, which one? Link to comment Share on other sites More sharing options...
Keyan Farlander Posted March 9, 2003 Share Posted March 9, 2003 Try including <math> maybe? I have no clue. If you said what the symbols were, specifically, it would help more. Link to comment Share on other sites More sharing options...
General_Trageto Posted March 9, 2003 Author Share Posted March 9, 2003 I tried including <math.h> but it needs some .lib file however the elements are: // prototypes: DWORD random(int); DWORD WINAPI run(LPVOID dwThrdParam); // random function in sleep function: Sleep((random(x)%40)/10); // run function is inbedded in the CreateThread function Link to comment Share on other sites More sharing options...
Keyan Farlander Posted March 11, 2003 Share Posted March 11, 2003 Where did you get the idea to use those things? The source may tell you more about what library you need. I don't really know. All my multithreading experience is in Java. Link to comment Share on other sites More sharing options...
General_Trageto Posted March 11, 2003 Author Share Posted March 11, 2003 OK, I solved the problems just to unveil tons of others. My Threads can't 'identify' each other(needed to get the 'LEFT' and the 'RIGHT' fork) Well, I'll ask my prof for some more time so I canredo the whole thing, or I'll finish it with him. Gotta learn maths now. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.