Hi,
I am trying out some simple stuff on C... I am trying to run them in MS Visual studio 6.0 on Windows... For every small function that I add to my program, I get a linker error (and not a compilation error...)
Eg: For the part of the code below:
Code:
#include<process.h>
#include<stdlib.h>
#include<stdio.h>
#include <time.h>
int main() {
//.... some code or nothing
sleep( 1000 );
printf("\n %s",getdate());
//.... some code or nothing
}
I get the errors:
Code:
Linking...
Thread_Run_Tests.obj : error LNK2001: unresolved external symbol _sleep
Thread_Run_Tests.obj : error LNK2001: unresolved external symbol _getdate
Debug/Thread_Run_Tests.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
Please tell me if I have missed out in specifying some compiler/linker option in visual Studio... Or else, if you could tell me how to compile with options on cmd prompt, even that is fine!
Thanks a lot guys,
-manu