473,394 Members | 1,663 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

unresolved external symbol _main

hi i got this following error wen i compiled my program also my program doesnt contain main and i have opened it in console application in vc6++...

LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
pls help me in this..

thanks in advance
manju
Sep 29 '08 #1
3 1979
gpraghuram
1,275 Expert 1GB
As you have said your code dosent have main, the error is beocs of that.

Raghu
Sep 29 '08 #2
As you have said your code dosent have main, the error is beocs of that.

Raghu

Any ways thanks Raghu but my code is running sucessfully but the thing is wen i thought of adding a sub program to it then the error comes... my program doesnt gives the output in console it is like wen i run my program a box appears which gives option start and stop.. so ineed the help of finding out which type of project is my program wether is tat MFC and can i use it in console application??? and i am new to c and c++.. pls help me out

thanks in advance
Sep 29 '08 #3
Banfa
9,065 Expert Mod 8TB
Does your program have a WinMain?
Does your program have a CApp class instance?
Is your program C or C++?
Sep 29 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: drumdawg21 | last post by:
Ive been working on this problem for a long time now and really need some help. I have a program in c++ code that gives me build errors and my program is having problems. I have two source files in...
5
by: cschettle | last post by:
I think you need to link with msvcrt.lib ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000...
8
by: Bruce Schechter | last post by:
I am quite experienced with vs.net 2003 and c# but fairly new to c++. I have a test app in c++ that I need to compile for a c#/c++ interop evaluation I'm doing. But first, I simply need to...
0
by: Steve Caine | last post by:
Hello, I'm new to the .NET world and trying to learn from the sample code in Visual Studio 2003's C++ environment. When I try to compile their "MECalculator" sample (which demonstrates...
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
6
by: sadegh | last post by:
Hi I have a problem with my program in VC++6 When I compile it, the following errors are listed. I spend a lot of time on the groups.google.com to find its reason, but none of comments could...
3
by: curious2007 | last post by:
I am getting the following type of error: 1>Compiling manifest to resources... 1>Linking... 1>main.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall...
7
by: JustBeSimple | last post by:
Hi Everyone, I'm having a problem compiling useing the VS2005 .NET I need help to resolve those error, I try to create a new project it doesn't help any suggestion? I got the following errors:...
2
by: =?Utf-8?B?YmFzaA==?= | last post by:
Hello, I am compiling a CPP code using Visual studion .net 2003. I get the following error, despite having windldap.h and wldap32.dll in my include and lib paths. Here is the error. uuid.lib...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.