LNK2019 and LNK1120

1
2
Error	1	error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup	MSVCRTD.lib	assignment
Error	2	fatal error LNK1120: 1 unresolved externals	D:\Kelvin\assignment\C++\assignment\Debug\assignment.exe	assignment


above are my error happen during linking of file in my C++ project, is there anyway help in solving it? i unable to solve it although i checked from internet and book, make me very confused on it

thank you
unresolved external symbol _main


Do you have a function named main in your code?
yes i have a int main in 1 of the file, but still unable to solve it
Is the file with main in it compiled?
maybe you have the wrong type of project. Win32 project doesn't have a main() function. You probably want a console project
i am using win32 console to program it, how could i solve the problem above??
Last edited on
Topic archived. No new replies allowed.