Solved

Linker error - _main defined in module....

Posted on 2004-08-27
4
1,354 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
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

RIA (Rich Internet Application) tools are interactive internet applications which have many of the characteristics of desktop applications. The RIA tools typically deliver output either by the way of a site-specific browser or via browser plug-in. T…
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.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now