Linker error - _main defined in module....

On making a project "file1.prj" in Turbo C.. i gotta error
"_main defined in module file1.c is duplicated in file1.c"

Can anyone pls explain ? its urgent.
LVL 1
manojantonyAsked:
Who is Participating?
 
cyberscanConnect With a Mentor Commented:
If you do not have two main functions, then you may have two main declarations I.E.

LRESULT CALLBACK MainWndProc(HWND hwnd,UINT msg,WPARAM wParam,LPARAM lParam);

some more decarations.....

LRESULT CALLBACK MainWndProc(HWND hwnd,UINT msg,WPARAM wParam,LPARAM lParam);

It would be better if I can see some of the source if this does not resolve issue.
0
 
sunnycoderConnect With a Mentor Commented:
Hi manojantony,

check if you have two main() functions

Sunnycoder
0
 
brettmjohnsonCommented:
It sounds like file1.c has been added to your project twice.
0
All Courses

From novice to tech pro — start learning today.