Jump to content

Home

'Unresolved external symbol' What the hell...?


Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...