Solved

Linker error - _main defined in module....

Posted on 2004-08-27
4
1,401 Views
Last Modified: 2008-03-17
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
Comment
Question by:manojantony
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 45

Assisted Solution

by:sunnycoder
sunnycoder earned 20 total points
ID: 11910981
Hi manojantony,

check if you have two main() functions

Sunnycoder
0
 
LVL 23

Expert Comment

by:brettmjohnson
ID: 11915283
It sounds like file1.c has been added to your project twice.
0
 

Accepted Solution

by:
cyberscan earned 20 total points
ID: 11916594
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question