Jump to content

Home

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


Recommended Posts

Posted

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!

Posted

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

Posted

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.

Archived

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

×
×
  • Create New...