Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1499
  • Last Modified:

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.
0
manojantony
Asked:
manojantony
2 Solutions
 
sunnycoderCommented:
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
 
cyberscanCommented:
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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now