Solved

undefined symbol _main in module winmain

Posted on 1999-01-14
2
648 Views
Last Modified: 2008-02-26
Hi I am new to c++ and I really want to learn this language
But I have 1 big problem so I was hoping that
someone could help me out. With almost every program
that I try to "link" I get the error:

undefined symbol _main in module winmain
I also alway's get a warning called:
No module definition file specified: Using defaults.
I dont know if these 2 things aer related but it
would be great if someone could help me or point
me in the right direction.
It does not mather what program I alway's get this error.
Please help because borland 3.11 wont compile my program's
because of that 1 single error.
Bye,

Rikus
0
Comment
Question by:Rikus
  • 2
2 Comments
 
LVL 2

Accepted Solution

by:
ginde earned 100 total points
ID: 1255859
It looks like you are Project type is Windows and not Console Application. I would think that you are using Visual C++ compiler. But please veify your Compiler and version.
0
 
LVL 2

Expert Comment

by:ginde
ID: 1255860
I am sorry. Please reject my answer. I didn't read that you are using Borland compiler. I just read top portion of the problem.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

708 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