Solved

Linker error - _main defined in module....

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
topping2 challenge 13 94
Recommendation vb6 to vb.net or others 14 173
Recover unsaved Tab contents (and settings/preferences) from Notepad++ 3 91
collection output issue 9 36
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This is an explanation of a simple data model to help parse a JSON feed
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

766 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