kernel32.lib ERROR in VS 2008
Hi,
My first post :rolleyes:.
I am trying to compile a C program in VS 2008. When I try to compile my simple "Hello World" program in C I get the following error.
The program I wrote was :
Code:
#include <stdio.h>
main()
{
printf("hello, world \n");
}
1>Linking...
1>LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
:frown:
I created an empty general application, then created a simple C program to print "HELLO WORLD".
Thanks,
jharohitkumar05
Any patch to fix the kernel32.lib ERROR in VS 2008 ???
Quote:
Originally Posted by
dmh2000
looks to me like your visual studio is not installed properly. kernel32.lib is one of the default linker inputs but the linker isn't finding it. the paths are controlled in tools->options->projects and solutions->vc++ directories. however with a proper install those will be correct.
btw, you should declare main as int main(void) and return 0 at the end of your main routine. buts thats not the linker problem.
hi dmh2000
Thanks a lot for the prompt and useful reply. I would like to inform you that I am accessing VS 2008 at my workplace where we have to raise a lot of requests before installing a new product which will consume a hell lot of time. Is there any patch available by which this problem can be fixed or any other way to overcome this problem?
btw thanks for letting me know how to correctly incorporate main(). I will take care of that.:D
Thanks and Regards
Rohit Kumar Jha