I was created a MDI(Multi Document Interface) application in mfc and i want run this MFC application from visual studio command prompt.
I used cl and link command to do so.
i'm created batch file having following content
cl /c /MD Trial.cpp
cl /c /MD MaiFrm.cpp
cl /c /MD TrialDoc.cpp
cl /c /MD ChildFrm.cpp
cl /c /MD TrialView.cpp
cl /c /MD stdafx.cpp
link Trial.obj MainFrm.obj TrialDoc.obj ChildFrm.obj TrialView.obj stdafx.obj
compilation of all .cpp files work fine but problem arises while linking.
Execution of above batch file gives me Error Like:
LINK : fatal error LNK1561: entry point must be defined
on command prompt
So, what is alternative to create executable of MFC application via command line