dev-cpp-users Mailing List for Dev-C++ (Page 484)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
(115) |
Nov
(154) |
Dec
(258) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(377) |
Feb
(260) |
Mar
(249) |
Apr
(188) |
May
(152) |
Jun
(150) |
Jul
(195) |
Aug
(202) |
Sep
(200) |
Oct
(286) |
Nov
(242) |
Dec
(165) |
| 2002 |
Jan
(245) |
Feb
(241) |
Mar
(239) |
Apr
(346) |
May
(406) |
Jun
(369) |
Jul
(418) |
Aug
(357) |
Sep
(362) |
Oct
(597) |
Nov
(455) |
Dec
(344) |
| 2003 |
Jan
(446) |
Feb
(397) |
Mar
(515) |
Apr
(524) |
May
(377) |
Jun
(387) |
Jul
(532) |
Aug
(364) |
Sep
(294) |
Oct
(352) |
Nov
(295) |
Dec
(327) |
| 2004 |
Jan
(416) |
Feb
(318) |
Mar
(324) |
Apr
(249) |
May
(259) |
Jun
(218) |
Jul
(212) |
Aug
(259) |
Sep
(158) |
Oct
(162) |
Nov
(214) |
Dec
(169) |
| 2005 |
Jan
(111) |
Feb
(165) |
Mar
(199) |
Apr
(147) |
May
(131) |
Jun
(163) |
Jul
(235) |
Aug
(136) |
Sep
(84) |
Oct
(88) |
Nov
(113) |
Dec
(100) |
| 2006 |
Jan
(85) |
Feb
(119) |
Mar
(33) |
Apr
(31) |
May
(56) |
Jun
(68) |
Jul
(18) |
Aug
(62) |
Sep
(33) |
Oct
(55) |
Nov
(19) |
Dec
(40) |
| 2007 |
Jan
(22) |
Feb
(49) |
Mar
(34) |
Apr
(51) |
May
(66) |
Jun
(43) |
Jul
(116) |
Aug
(57) |
Sep
(70) |
Oct
(69) |
Nov
(97) |
Dec
(86) |
| 2008 |
Jan
(32) |
Feb
(47) |
Mar
(106) |
Apr
(67) |
May
(28) |
Jun
(39) |
Jul
(31) |
Aug
(25) |
Sep
(18) |
Oct
(25) |
Nov
(5) |
Dec
(21) |
| 2009 |
Jan
(33) |
Feb
(27) |
Mar
(27) |
Apr
(22) |
May
(22) |
Jun
(10) |
Jul
(17) |
Aug
(9) |
Sep
(21) |
Oct
(13) |
Nov
(4) |
Dec
(11) |
| 2010 |
Jan
(10) |
Feb
(8) |
Mar
(4) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(26) |
Nov
(9) |
Dec
(1) |
| 2011 |
Jan
(21) |
Feb
(16) |
Mar
(4) |
Apr
(19) |
May
(26) |
Jun
(9) |
Jul
(6) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
| 2012 |
Jan
(4) |
Feb
(7) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(10) |
Jul
(1) |
Aug
(1) |
Sep
(18) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
| 2013 |
Jan
(4) |
Feb
(2) |
Mar
(15) |
Apr
(6) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
|
| 2014 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(4) |
| 2015 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(9) |
Nov
(35) |
Dec
(6) |
| 2016 |
Jan
(7) |
Feb
(10) |
Mar
(10) |
Apr
(9) |
May
(13) |
Jun
(9) |
Jul
(1) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Ioannis V. <no...@ho...> - 2002-11-18 19:24:42
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Banjo Donila
> Sent: Monday, November 18, 2002 9:12 PM
> To: dev...@li...
> Subject: [Dev-C++] Problem with limits.h
>
>
>
> I was trying some limits.h and im having errors
>
> my sample code:
> #include<iostream.h>
#include <iostream>
> #include<stdlib.h>
// or better:
#include <cstdlib>
> #include<limits.h>
#include <limits>
>
> int main()
> {
using namespace std;
> cout << numeric_limits<char>::max();
> system("pause");
> return 0;
> }
Ioannis Vranos
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL: http://run.to/noicys
|
|
From: <com...@ya...> - 2002-11-18 19:16:12
|
i tried to write a code using linked lists to implement the multiplication and addition of twp polynomials but it seems i'm not very successfull cause my pop funcition doesn't do what it should and i don't know why i get that access violation error ..could any one help??
thanx...
/* definitions*/
typedef struct node{
int coefficient;
int exponent;
struct node *next;
}node;
typedef struct stack{
node *firstptr;
}stack;
/*and the pop function*/
node *pop(stack *s){
node *ptr=new node;
if(nptr==NULL){
cout<<"exhausted memory"<<endl;
exit(1);
}
else{
nptr->coefficient=s->firstptr->coefficient;
nptr->exponent=s->firstptr->exponent;
s->firstptr=s->firstptr->next;//that's the problematic part
}
return nptr;
}
---------------------------------
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site |
|
From: Banjo D. <ner...@my...> - 2002-11-18 19:05:12
|
I was trying some limits.h and im having errors
my sample code:
#include<iostream.h>
#include<stdlib.h>
#include<limits.h>
int main()
{
cout << numeric_limits<char>::max();
system("pause");
return 0;
}
and here are the errors
7 C:\Documents and Settings\nerozero\My Documents\test\Untitled1.cpp
`numeric_limits' undeclared (first use this function)
i tried including climits.h but this header file doesnot exist
|
|
From: Carlos d. M. <cg...@wo...> - 2002-11-18 17:19:50
|
Examine carefully your code, many times this kind of errors in the "official" header files is produced by some error in the code which is not reported by the compiler: syntax errors, parameters of different type of that the function expects (but there is an overloading or)... Booker Hsu escribi=F3: > In file included from D:/MinGW/Include/oleauto.h:83, > from D:/MinGW/Include/ole2.h:11, > from D:/MinGW/Include/windows.h:109, > from c:/booker/mailsend/msock.h:10, > from c:/booker/mailsend/mailsend.h:10, > from c:/booker/mailsend/utils.c:10: > D:/MinGW/Include/oaidl.h:84: parse error before numeric constant > In file included from D:/MinGW/Include/oleauto.h:83, > from D:/MinGW/Include/ole2.h:11, > from D:/MinGW/Include/windows.h:109, > from c:/booker/mailsend/msock.h:10, > from c:/booker/mailsend/mailsend.h:10, > from c:/booker/mailsend/main.c:17: > D:/MinGW/Include/oaidl.h:84: parse error before numeric constant > > ------------------------------------------------------- > This sf.net email is sponsored by: To learn the basics of securing > your web site with SSL, click here to get a FREE TRIAL of a Thawte > Server Certificate: http://www.gothawte.com/rd524.html > _______________________________________________ > MinGW-users mailing list > Min...@li... > > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users |
|
From: <st...@nu...> - 2002-11-18 14:03:31
|
Hi all...
I'm having problems... when I #include <olectl.h> I get bunches of errors!?
How can I get around this?
thanks!
Stein Nygård - http://steinware.dk
[Being powerful is like being a lady... If you have to tell people you are,
you aren't]
|
|
From: Wobien <wo...@pl...> - 2002-11-18 12:40:36
|
You must declare variable as a pointer so that you can later make point to
an array with the dimensions y wish.
When you are finished with the array you destroy it with the delete
statement to free the memory it uses.
#include <iostream.h>
int main()
{
int number;
int incrementer;
int *variable;
cout << "please enter the number of sheetlengths needed" <<endl ;
cin >> number;
variable = new int[number];
incrementer = 0;
while (incrementer < number)
{
cin >> variable[incrementer];
incrementer ++ ;
}
delete [] variable;
return 0;}
----- Original Message -----
From: Steele Baldock
To: dev...@li...
Sent: Monday, November 18, 2002 8:22 AM
Subject: [Dev-C++] Help for a newbie
Hi all
I am looking for a structure to put into a probgram I am writing to
calculate the materials needed for a roof. I need a structure that will
generate the variables needed based on an input (int) from the user.
Something like this:
cout << "plese enter the number of sheetlengths needed" <<endl
cin >> number
incrementer = 0
while (incrementer < number)
{
int variable(incrementer)
int variable(incrementer)
incrementer ++
}
So I need variables that are numbered sequencially so I can get the user to
input them.
Any other ways of tackling this problem would be helpful too.
Thanks all
Steele Baldock
ba...@wx...
|
|
From: Vlada D. <dj...@im...> - 2002-11-18 11:45:46
|
Hi.
Maybe I'm a little anoying with this, but I'm really confused. I'm =
trying to get an MDI child window to show when I press File->new in the =
menu, but the window does not show, though its name is appnded to Window =
menu every time I press File->New. After I placed the same code in =
WM_CREATE message handler, the window appeared OK. Why is this? Here's a =
piece of my code:
switch(LOWORD(wParam))
{
case ID_FILE_NEW:
{
if(nChildCount=3D=3D0)//if there are no child =
windows
{
CLIENTCREATESTRUCT ccs;
=
SetMenu(hFrameWnd,LoadMenu(g_hInstance,MAKEINTRESOURCE(IDM_MENU)));//set =
another menu
=
ccs.hWindowMenu=3DGetSubMenu(GetMenu(hFrameWnd),1);
ccs.idFirstChild=3DID_FIRST_CHILD;
=20
=
hMDIClient=3DCreateWindowEx(WS_EX_CLIENTEDGE,"MDICLIENT",(LPCTSTR)NULL,WS=
_CHILD|WS_CLIPCHILDREN,
=
CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,hFrameWnd,(HMENU)=
ccs.idFirstChild,
g_hInstance,(LPVOID)&ccs);
if(!hMDIClient)
MessageBox(hFrameWnd,"Can't create client =
wnd","error",MB_OK);
ShowWindow(hMDIClient,SW_SHOW);
=20
}
/*create child window*/
=
hChildWnd=3DCreateMDIWindow(g_sChildClass,"Untitled",WS_HSCROLL|WS_VSCROL=
L,CW_USEDEFAULT,
CW_USEDEFAULT, =
300,200,hMDIClient,g_hInstance,lParam);
if(!hChildWnd)
MessageBox(hFrameWnd,"Can't create child =
wnd","error",MB_OK);
ShowWindow(hChildWnd,SW_SHOW);
UpdateWindow(hChildWnd);
nChildCount++;// increase number of MDI child =
windows
}
break;
Regards,
Vlada
|
|
From: Shayne K. <err...@ne...> - 2002-11-18 08:42:46
|
Thanks, I actually had the wrong path to the resource directory. I found that I had to actually set the resource directory to C:\Dev-Cpp\include and the Resource files to ..\Dev-Cpp\include\wx\msw\wx.rc Must be that time of night again ;) -- Shayne http://www.shaynekasai.com On Mon, 18 Nov 2002, Per Westermark wrote: > As the error message says, you have probably forgotten to add the line > #include "wx/msw/wx.rc" > to the resource file for the project. > > /Per W > > On Sun, 17 Nov 2002, Shayne Kasai wrote: > > > Hello everyone, > > > > I'm not sure if this question has been asked, since the mailing list > > search functionality is broken on SF. > > > > First of all, I'm trying to create an app using wxWindows. I've derived > > the wxDialog class and everything compiles. When I run the application > > (app works fine to a point) > > and execute the code to load up the dialog, I get a Debug message that > > says the following: > > > > Assert failed in file ../../src/msw/dialog.cpp at line 174: Failed to > > create dialog. You probably forgot to include wx/msw/wx.rc in your > > resources. Do you want to stop the program? You can also choose [Cancel] > > to suppress further warnings. > > > > I'm pretty sure everything is set up (I did a base install of dev-cpp, > > wxWindows libs and used the basic template for the dev-cpp wxWindows app). > > Here's the code I used to derive/call wxDialog, nothing fancy: > > > > /** > > * I don't think you need to see the header.. you can guess what that > > * looks like :) > > */ > > diaAddItem::diaAddItem > > ( wxWindow *parent, wxWindowID id, > > const wxString &title, > > const wxPoint &position, const wxSize& size, > > long style > > ) : > > wxDialog( parent, id, title, position, size, style) > > { > > > > } > > > > ..... and then I just call it like this: > > > > diaAddItem aboutDialog (this, -1, > > "Your very own dialog", > > wxPoint(100,100), > > wxSize(200,200) > > ); > > > > aboutDialog.ShowModal(); > > > > > > > > This is called in an event function AppFrame::OnAbout(wxCommandEvent > > &WXUNUSED(event)); > > > > Any ideas? > > > > Thanks in advance > > > > - Shayne > > > > > > http://www.shaynekasai.com > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: To learn the basics of securing > > your web site with SSL, click here to get a FREE TRIAL of a Thawte > > Server Certificate: http://www.gothawte.com/rd524.html > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > |
|
From: Per W. <pw...@ia...> - 2002-11-18 08:36:20
|
As the error message says, you have probably forgotten to add the line
#include "wx/msw/wx.rc"
to the resource file for the project.
/Per W
On Sun, 17 Nov 2002, Shayne Kasai wrote:
> Hello everyone,
>
> I'm not sure if this question has been asked, since the mailing list
> search functionality is broken on SF.
>
> First of all, I'm trying to create an app using wxWindows. I've derived
> the wxDialog class and everything compiles. When I run the application
> (app works fine to a point)
> and execute the code to load up the dialog, I get a Debug message that
> says the following:
>
> Assert failed in file ../../src/msw/dialog.cpp at line 174: Failed to
> create dialog. You probably forgot to include wx/msw/wx.rc in your
> resources. Do you want to stop the program? You can also choose [Cancel]
> to suppress further warnings.
>
> I'm pretty sure everything is set up (I did a base install of dev-cpp,
> wxWindows libs and used the basic template for the dev-cpp wxWindows app).
> Here's the code I used to derive/call wxDialog, nothing fancy:
>
> /**
> * I don't think you need to see the header.. you can guess what that
> * looks like :)
> */
> diaAddItem::diaAddItem
> ( wxWindow *parent, wxWindowID id,
> const wxString &title,
> const wxPoint &position, const wxSize& size,
> long style
> ) :
> wxDialog( parent, id, title, position, size, style)
> {
>
> }
>
> ..... and then I just call it like this:
>
> diaAddItem aboutDialog (this, -1,
> "Your very own dialog",
> wxPoint(100,100),
> wxSize(200,200)
> );
>
> aboutDialog.ShowModal();
>
>
>
> This is called in an event function AppFrame::OnAbout(wxCommandEvent
> &WXUNUSED(event));
>
> Any ideas?
>
> Thanks in advance
>
> - Shayne
>
>
> http://www.shaynekasai.com
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: To learn the basics of securing
> your web site with SSL, click here to get a FREE TRIAL of a Thawte
> Server Certificate: http://www.gothawte.com/rd524.html
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Arnvid K. <ar...@ka...> - 2002-11-18 07:51:38
|
Heya. Whenever trying to use the function getopts() in a program the linker kindly says that it can't find any refrence to the options getopts (or getops_long for that matter).. Anyone else seen this, or someone might know a remedy? Mvh/Best regards, Arnvid L. Karstad |
|
From: Shayne K. <err...@ne...> - 2002-11-18 07:33:29
|
Hello everyone,
I'm not sure if this question has been asked, since the mailing list
search functionality is broken on SF.
First of all, I'm trying to create an app using wxWindows. I've derived
the wxDialog class and everything compiles. When I run the application
(app works fine to a point)
and execute the code to load up the dialog, I get a Debug message that
says the following:
Assert failed in file ../../src/msw/dialog.cpp at line 174: Failed to
create dialog. You probably forgot to include wx/msw/wx.rc in your
resources. Do you want to stop the program? You can also choose [Cancel]
to suppress further warnings.
I'm pretty sure everything is set up (I did a base install of dev-cpp,
wxWindows libs and used the basic template for the dev-cpp wxWindows app).
Here's the code I used to derive/call wxDialog, nothing fancy:
/**
* I don't think you need to see the header.. you can guess what that
* looks like :)
*/
diaAddItem::diaAddItem
( wxWindow *parent, wxWindowID id,
const wxString &title,
const wxPoint &position, const wxSize& size,
long style
) :
wxDialog( parent, id, title, position, size, style)
{
}
..... and then I just call it like this:
diaAddItem aboutDialog (this, -1,
"Your very own dialog",
wxPoint(100,100),
wxSize(200,200)
);
aboutDialog.ShowModal();
This is called in an event function AppFrame::OnAbout(wxCommandEvent
&WXUNUSED(event));
Any ideas?
Thanks in advance
- Shayne
http://www.shaynekasai.com
|
|
From: Steele B. <ba...@wx...> - 2002-11-18 07:20:44
|
Hi all
I am looking for a structure to put into a probgram I am writing to =
calculate the materials needed for a roof. I need a structure that will =
generate the variables needed based on an input (int) from the user. =
Something like this:
cout << "plese enter the number of sheetlengths needed" <<endl
cin >> number
incrementer =3D 0
while (incrementer < number)
{
int variable(incrementer)
int variable(incrementer)
incrementer ++
}
So I need variables that are numbered sequencially so I can get the user =
to input them.
Any other ways of tackling this problem would be helpful too.
Thanks all
Steele Baldock
ba...@wx...
|
|
From: Carlos d. M. <cg...@wo...> - 2002-11-17 16:57:53
|
Use this order of the options: -lmingw32 -lSDLmain -lSDL (now I've the fe= eling that I used these because the other gave errors). And -mwindows isn't nee= ded, but you can use it. Matthews escribi=F3: > Ok, the project is now a console application. Linker options are: -lsd= l > -lsdlmain -lmingw32 -mwindows. The program is the one copied straight = from > the documentation, and I'm still getting the linker error. > > At 11:54 AM 14/11/2002 +0100, you wrote: > >> > >> ----- > >> Hmm, I added all those options to my linker (-lsdl -lsdlmain -lmingw= 32) and > >> I still have the same error (Unknows reference to `WinMain@16'). I'= m also > >> compiling as a windows app, with the "int argc, char *argv[]" that's > >> required, and I've included the -mwindows tag in the linker command = line. > >> ---- > > > >Ahem, sorry I forgot to answer this second question (I usually read fi= rst all > >new messages and after that I answer). Compile it as console, that's w= hat > I do. > >And that's what you need since int argc, char *argv[], for windows app= s, you > >use int WINAPI WinMain(HINSTANCE etc > > > > |
|
From: <CBR...@ne...> - 2002-11-17 13:21:52
|
After installing the latest version of Dev-C++ (Beta 5) -- no, I didn't install on top of the old version; I completely wiped Dev-C++ 4 after unistalling it -- I'm getting this error: [Resource Error] no resources C:\Dev-C++\Examples\WinAnim\Makefile.win [Build Error] [Anim_private.res] Error 1 Yes, the error comes from a Dev-C++ example project file and occurs in mine own (updated) project files as well. Of the things I can remember that I did after I installed it, "Profile Analysis" comes to mind. Anyway, any help is appreciated; thanks. --Ax __________________________________________________________________ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ |
|
From: Graeme F. <gr...@dr...> - 2002-11-17 10:31:00
|
Greetings, I have taken you code and it runs in my computer fine. (XP and DevC++ 4.01) Can I make a few suggestions. 1) Does the code generated by DevC++ from the New Project compile and run? 1a) If not what errors do you get? 2) What version of DevC++ are you running? 3) Are the include files set up correctly on you system? Go to Compiler options and click the Directories tab. Is the C++ include files set to have the correct path for the include directory? 4) Are the windows include files in the include directory? Graeme. |
|
From: Eric R. <e.r...@pa...> - 2002-11-17 02:31:55
|
Very good, that's what you get with windows.
From Eric
NO ATTACHMENT WAS SENT WITH THIS EMAIL,
IF THERE IS ONE, IT IS A UNDETECTED VIRUS, PLEASE LET ME KNOW..
Black text on white background HTML Emails I get, are replied with white
text on white.
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of André
Macário Barros
Sent: 17 November 2002 14:39
To: Dev-C++ Mailing List
Subject: [Dev-C++] "Hello for Win32 Problem solved!!!"
Thank you very much gentlemen.
I made a reinstallation in my Dev and the problem disappeared!!! :)
Regards
André Macário Barros
xxxxx=====xxxx====
Let me review, because some new facts happend:
-I'm running in Win'95;
-It's working fine with VC++;
-I have already tried with g++ and the same linker error occurs;
-Compiler Options with CygWin or MingWin produces the same error
code; and...
-This is the First Program of Petzhold's Book, Ch 01.
--->And the problem is:
problem()
{
Hi Folks,
Please give me some help about the following error:
1. I opened the Dev-C++, choose "New Project", choose "Windows
Application", choose "C++ Project" and clicked "OK";
2. I removed from the project the unitc "Untitled" WinMain function
that Dev-C++ puts automatically;
3. I inserted the following unit, called "hello.cpp" in my project:
=========
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR
szCmdLine, int iCmdShow)
{
MessageBox (NULL, TEXT ("Hello, World!"), TEXT
("HelloMsg"), 0) ;
return 0 ;
}
========
4. The Project Options were automatically checked for "Compile C++
Project" and "Do not create a console";
5. The Compiler Options, too, was whit the "Compile for Win32"
checked;
BUT....
The following Linker Error is being presented:
Line 2, "Syntax Error before 'int'"
What is happening, gentlemen?
}
Regards
André Macário Barros
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.419 / Virus Database: 235 - Release Date: 13/11/02
|
|
From: B. <ama...@uo...> - 2002-11-17 01:36:17
|
Thank you very much gentlemen.
I made a reinstallation in my Dev and the problem disappeared!!! :)
Regards
Andr=E9 Mac=E1rio Barros
xxxxx=3D=3D=3D=3D=3Dxxxx=3D=3D=3D=3D
Let me review, because some new facts happend:
-I'm running in Win'95;
-It's working fine with VC++;
-I have already tried with g++ and the same linker error occurs;
-Compiler Options with CygWin or MingWin produces the same error
code; and...
-This is the First Program of Petzhold's Book, Ch 01.
--->And the problem is:
problem()
{
Hi Folks,
Please give me some help about the following error:
1. I opened the Dev-C++, choose "New Project", choose "Windows
Application", choose "C++ Project" and clicked "OK";
2. I removed from the project the unitc "Untitled" WinMain function
that Dev-C++ puts automatically;
3. I inserted the following unit, called "hello.cpp" in my project:
=3D=3D=3D=3D=3D=3D=3D=3D=3D
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR
szCmdLine, int iCmdShow)
{
MessageBox (NULL, TEXT ("Hello, World!"), TEXT
("HelloMsg"), 0) ;
return 0 ;
}
=3D=3D=3D=3D=3D=3D=3D=3D
4. The Project Options were automatically checked for "Compile C++
Project" and "Do not create a console";
5. The Compiler Options, too, was whit the "Compile for Win32"
checked;
BUT....
The following Linker Error is being presented:
Line 2, "Syntax Error before 'int'"
What is happening, gentlemen?
}
Regards
Andr=E9 Mac=E1rio Barros
|
|
From: Abhijit S. <mu...@gm...> - 2002-11-16 20:22:09
|
Greets. Andre. > [message] Check if the header file is okay, try re-installing the compiler or Dev-C++ so into a fresh directory or after uninstalling, so that the header is replaced. It seems to me that the error is there, probably an unterminated brace or string or comment or something. ___________________________________________________________ Abhijit Shylanath E-mail: mu...@gm... || ibr...@bi... Web-site: http://mudeth.tripod.com/ |
|
From: Brenden T. <br...@rc...> - 2002-11-16 20:14:28
|
Your program compiles fine for me also. However....
>BUT....
> The following Linker Error is being presented:
> Line 2, "Syntax Error before 'int'"
>
1. Linker error? Are you sure, or does it say "Build Error"?
2. Assuming that it is "Build Error", I can reproduce your problem if I
change the program like this:
#include <windows.h>
blet int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR
szCmdLine, int iCmdShow)
{
....
See the "blet" in there? That give me "sytax error before 'int'". So I
have two ideas:
A. You have an illegal control character (ASCII 0 - 31) in your file.
It doesn't display, but it's still there. Delete completely the first
three lines and retype them carefully by hand. (Don't cut and paste.)
If this doesn't work...
B. You have a bad install of Dev Cpp. "Windows.h" has some problem that
is not correct, but the complier doesn't see the problem until it gets
to the first line of your function definiton. (Note: your "windows.h"
may also have a problem if you ever opened any ".h" file to look at it,
and then accidently pressed a key on the keyboard and saved the file.
If you think this is the case, try to remember which file it was and
see if you can go back and fix it by inspection. Otherwise...) You need
to uninstall Dev-Cpp, then delete manually any remaing files and
directories (including C:\Dev-Cpp). Delete the old install file too.
Empty trash and reboot. Then download Dev Cpp again and re-install it.
Hope this one works better.
Those're my best guesses. Good luck.
Brenden
|
|
From: B. <ama...@uo...> - 2002-11-16 13:41:18
|
Let me review, because some new facts happend:
-I'm running in Win'95;
-It's working fine with VC++;
-I have already tried with g++ and the same linker error occurs;
-Compiler Options with CygWin or MingWin produces the same error
code; and...
-This is the First Program of Petzhold's Book, Ch 01.
--->And the problem is:
problem()
{
Hi Folks,
Please give me some help about the following error:
1. I opened the Dev-C++, choose "New Project", choose "Windows
Application", choose "C++ Project" and clicked "OK";
2. I removed from the project the unitc "Untitled" WinMain function
that Dev-C++ puts automatically;
3. I inserted the following unit, called "hello.cpp" in my project:
=3D=3D=3D=3D=3D=3D=3D=3D=3D
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR
szCmdLine, int iCmdShow)
{
MessageBox (NULL, TEXT ("Hello, World!"), TEXT
("HelloMsg"), 0) ;
return 0 ;
}
=3D=3D=3D=3D=3D=3D=3D=3D
4. The Project Options were automatically checked for "Compile C++
Project" and "Do not create a console";
5. The Compiler Options, too, was whit the "Compile for Win32"
checked;
BUT....
The following Linker Error is being presented:
Line 2, "Syntax Error before 'int'"
What is happening, gentlemen?
}
Regards
Andr=E9 Mac=E1rio Barros
|
|
From: Carlos d. M. <cg...@wo...> - 2002-11-16 12:07:45
|
In the message dlls and classes I said I found that in http://www.gamecoding.co.uk/tutorials. This url is wrong, the true url is http://www.gamecoding.org.uk/tutorials |
|
From: Zodiaq <zo...@ac...> - 2002-11-16 11:36:20
|
Hello TFP and all Dev-C++ users, Saturday, November 16, 2002, 11:53:19 AM, TFP wrote as follows: T> Hello, T> do you know any general mailinglists? I've searched for some in the T> world wide net but found nothing useful. Could be C++, WinAPI and T> Win32. First think for a sec - how much emails would you get if you subscribe to mailing list that covers such biiiiiig area like C++ or WinAPI??? For such subjects best is to watch some news groups, not the mailing lists... and there are lots of such groups in many languages... T> Thanks -- regards, Zodiaq |
|
From: TFP <TF...@gm...> - 2002-11-16 10:53:36
|
Hello,
do you know any general mailinglists? I've searched for some in the
world wide net but found nothing useful. Could be C++, WinAPI and
Win32.
Thanks
--
TFP mailto:TF...@gm...
|
|
From: <or...@vp...> - 2002-11-16 01:16:15
|
Hello Mr. André! AMB> Thanks, Mr. Balázs, AMB> But... running this, and the same error message appears too, in the DOS AMB> window. AMB> I forgot to tell: I'm running Dev in Win'95, ok? AMB> Regards AMB> André Barros AMB> === Well, strange. I think I cannot help you because I have Win98, so I cannot try it out on a Win95. If I find some solution, I will tell you, but anyhow, whenever you find out what was the problem, please tell me, I'm corious about this. -- Best regards, Oroszi Balázs mailto:or...@vp... |
|
From: B. <ama...@uo...> - 2002-11-16 00:34:09
|
Thanks, Mr. Bal=E1zs, But... running this, and the same error message appears too, in the DO= S window. I forgot to tell: I'm running Dev in Win'95, ok? Regards Andr=E9 Barros =3D=3D=3D Oroszi Bal=E1zs wrote: > Hello Andr=E9! > > I copied the program that you sent exactly as was in the mail, and it > compiled without any warnings or errors. > The problem is not in the program. > > Try the following: > Run this command from a command-prompt, and see if the error is still > there: > <directory_of_compiler>/bin/g++ hello.cpp -o hello.exe -s -mwindows > > -- > Best regards, > Oroszi Bal=E1zs mailto:or...@vp... > > ------------------------------------------------------- > This sf.net email is sponsored by: To learn the basics of securing > your web site with SSL, click here to get a FREE TRIAL of a Thawte > Server Certificate: http://www.gothawte.com/rd524.html > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |