First of all to let you know I am using the following compiler:
Borland C++Builder 5.5.1 with Turbo Incremental Link 5.00
When I tried to make my first GUI drawing following Lawernceville Press's
book it created an error in the compliation process:
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
E:\Gui.cpp:
Warning W8004 E:\borland\Include\lvp\String.cpp 106: 'len' is assigned a
value that is never used in function String::operator =(const char *)
Warning W8057 E:\Gui.cpp 23: Parameter 'x' is never used in function
GuiClass::GuiMouseClick(int,int)
Warning W8057 E:\Gui.cpp 23: Parameter 'y' is never used in function
GuiClass::GuiMouseClick(int,int)
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_main' referenced from
E:\BORLAND\LIB\C0X32.OBJ
The warnings are no problem but the error stops the process and I can't
get an executable.
Here is the program code it's pretty simple:
#include <lvp\gui_top.h>
class GuiClass {
public:
GuiClass();
void GuiMouseClick(int x,int y);
void GuiPaint();
String Title();
private:
};
GuiClass::GuiClass()
{
}
String GuiClass::Title()
{
return("A mimimal Gui Program");
}
void GuiClass::GuiMouseClick(int x,int y)
{
}
void GuiClass::GuiPaint()
{
Circle(180,200,50);
Circle(250,200,50);
Circle(320,200,50);
Circle(215,270,50);
Circle(285,270,50);
}
#include <lvp\gui_bot.h> 4 2692
NathanAllen wrote: Error: Unresolved external '_main' referenced from E:\BORLAND\LIB\C0X32.OBJ
Prep any question to a newsgroup by searching for its details on http://groups.google.com first. You might answer the question, and you might
learn the newsgroups where it's on topic. This newsgroup is not qualified to
answer questions about programs that don't start with main(), because we try
to be platform-neutral here.
--
Phlip http://industrialxp.org/community/bi...UserInterfaces
In message <xD****************@newssvr15.news.prodigy.com>, Phlip
<ph*******@yahoo.com> writes NathanAllen wrote:
Error: Unresolved external '_main' referenced from E:\BORLAND\LIB\C0X32.OBJ
Prep any question to a newsgroup by searching for its details on http://groups.google.com first. You might answer the question, and you might learn the newsgroups where it's on topic. This newsgroup is not qualified to answer questions about programs that don't start with main(), because we try to be platform-neutral here.
His program _does_ start with main (or rather it doesn't, and that's the
problem.) The underscore is just linker decoration which appears in the
error message. His problem's simple enough - main() isn't defined.
--
Richard Herring
NathanAllen wrote: First of all to let you know I am using the following compiler: Borland C++Builder 5.5.1 with Turbo Incremental Link 5.00
When I tried to make my first GUI drawing following Lawernceville Press's book it created an error in the compliation process: Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
E:\Gui.cpp: Warning W8004 E:\borland\Include\lvp\String.cpp 106: 'len' is assigned a value that is never used in function String::operator =(const char *) Warning W8057 E:\Gui.cpp 23: Parameter 'x' is never used in function GuiClass::GuiMouseClick(int,int) Warning W8057 E:\Gui.cpp 23: Parameter 'y' is never used in function GuiClass::GuiMouseClick(int,int) Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland Error: Unresolved external '_main' referenced from E:\BORLAND\LIB\C0X32.OBJ
The warnings are no problem but the error stops the process and I can't get an executable.
Here is the program code it's pretty simple:
#include <lvp\gui_top.h>
class GuiClass { public: GuiClass(); void GuiMouseClick(int x,int y); void GuiPaint(); String Title(); private: };
GuiClass::GuiClass() { }
String GuiClass::Title() { return("A mimimal Gui Program"); }
void GuiClass::GuiMouseClick(int x,int y) { }
void GuiClass::GuiPaint() { Circle(180,200,50); Circle(250,200,50); Circle(320,200,50); Circle(215,270,50); Circle(285,270,50); }
#include <lvp\gui_bot.h>
The above is just a class and its methods.
You need to write a program that exercises the
above class and its methods.
--
Thomas Matthews
C++ newsgroup welcome message: http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq: http://www.raos.demon.uk/acllc-c++/faq.html
Other sites: http://www.josuttis.com -- C++ STL Library book
Richard Herring <ju**@[127.0.0.1]> spoke thus: Error: Unresolved external '_main' referenced from E:\BORLAND\LIB\C0X32.OBJ
His program _does_ start with main (or rather it doesn't, and that's the problem.) The underscore is just linker decoration which appears in the error message. His problem's simple enough - main() isn't defined.
<ot degree="severe">Actually, his *real* problem is likely that he's
trying to use 5.5.1 to compile an application that expects to have all
Borland's GUI crap available. In any case, if he's compiling a GUI
application, he needs to define WinMain and not main, and link against
C0W32.obj.</ot>
--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Heikki Tuuri |
last post by:
Hi!
Many people have complained over years that Borland's dbExpress driver does
not work with MySQL and transactions, because it disconnects from mysqld
after each SQL statement. The postings...
|
by: Kenneth Gomez |
last post by:
Hello,
I have tried many avenues (web search, borland website, libxml
website) before deciding to post here.
I'm trying to install libxml2 on windows ME to work with my Borland
C++ 5 Compiler...
|
by: Ziggi |
last post by:
Hi. I want to get a C++ IDE, but I dont know whether to go for Bill Gate's
solution or Borland's. Could any kind folks detail the relative strength
and weaknesses of both, and also tell me which...
|
by: Juggernaut |
last post by:
Hi
At my college some IT students were giving away free older computer books. I
got a book called Borland C++ a programmers guide.
So I was really just wondering what this Borland C++ is? I know...
|
by: smartwolf agassi via DotNetMonster.com |
last post by:
I'm a C# language learner.
I want to know which IDE is better for C# programing, Borland C#Builder or
VS.net 2003?
--
Message posted via http://www.dotnetmonster.com
|
by: news.coderaka |
last post by:
I got a compliation error when compiling this programs using g++ 3.4.2.
Who can tell me why?
Thank you.
#include<iostream>
using namespace std;
template<class T>
class list{
class iterator{
|
by: darrensjunkaccount |
last post by:
Hi,
I have just inherited some embedded software that was compiled with
Borland 4.52. I need to either purchase that compiler, which Borland
no longer appear to sell or alternatively source an...
|
by: dhruba.bandopadhyay |
last post by:
Am wondering whether Borland C++ 4.5 or Borland Turbo C++ 1.01
supported C++ templates. If not, which
other future version of BC++ or TC++ did? If BC++ 4.5 or TC++ 1.01 does
support it, how much...
|
by: multics.cn |
last post by:
Dear all,
I have one line in my cpp source file.
void (**fa)(char,float) = new (void (char,float));
I tried gcc and vc express, both result in compliation error:
g++ gives:
error: creating...
|
by: DolphinDB |
last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation.
Take...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |