dev-cpp-users Mailing List for Dev-C++ (Page 535)
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: Abhijit S. <mu...@gm...> - 2002-08-26 17:24:07
|
> Hello, > How do I go about adding my own library files that to a project I'm > working on. I have some files which I think are general enough that I put > them in C:\***\lib. In order to add these files to a project I have the > appropriate include statements. and added the path to the library to > Project\Project Options\Files.Directories. I get the following Linker > error: > > C/CppLab/Winnie/main.cpp:21: undefined reference to > `Win::ClassMaker::ClassMaker(char const *, HINSTANCE__ *)' > C/CppLab/Winnie/main.cpp:23: undefined reference to > `Win::Maker::Maker(char > const *, HINSTANCE__ *)' > C/CppLab/Winnie/main.cpp:25: undefined reference to > `Win::Maker::Create(Win::Controller &, char const *)' > > I also added the path to Tools\Compiler Options\Directories which also > gives me the same error message. When I copy all the files into the same > directory It compiles without errors. What am I doing wrong ? > > Napoleon. I think you're getting confused between libraries and header files. Copy these files to `c:\***\include'. They should work. A reply explaining all this was posted by Elizabeth, but it seems to have missed you, so I'm sending this to your account directly also. ___________________________________________________________ Abhijit Shylanath E-mail: mu...@gm... || ibr...@bi... Web-site: http://mudeth.tripod.com/ |
|
From: Napoleon A. <nah...@so...> - 2002-08-26 15:18:17
|
Hello, How do I go about adding my own library files that to a project I'm = working on. I have some files which I think are general enough that I = put them in C:\***\lib. In order to add these files to a project I have = the appropriate include statements. and added the path to the library to = Project\Project Options\Files.Directories. I get the following Linker = error: C/CppLab/Winnie/main.cpp:21: undefined reference to = `Win::ClassMaker::ClassMaker(char const *, HINSTANCE__ *)' C/CppLab/Winnie/main.cpp:23: undefined reference to = `Win::Maker::Maker(char const *, HINSTANCE__ *)' C/CppLab/Winnie/main.cpp:25: undefined reference to = `Win::Maker::Create(Win::Controller &, char const *)' I also added the path to Tools\Compiler Options\Directories which also = gives me the same error message. When I copy all the files into the same = directory It compiles without errors. What am I doing wrong ? Napoleon. |
|
From: Abhijit S. <mu...@gm...> - 2002-08-26 12:47:10
|
> I've been away from the programming wars for a while, & I notice that > Microsoft's current version of C is called C#. Could someone tell me > what are the differences between C# and Visual C 6.0? > > Allan There was a similar question posted here a long time back. Search the archives, I think you'll find something. |
|
From: <gui...@ya...> - 2002-08-26 11:13:44
|
C# is similar with Java and VB, which compile to bytecode, i.e. is interpreted, this is their main disadvantage. The new feature is much easy-to-use built-in GUI objects regard with normal unstandardized C++ objects/framework. : I've been away from the programming wars for a while, & I notice that Microsoft's current version of C is called C#. Could someone tell me what are the differences between C# and Visual C 6.0? Allan ________________________________________________________________ GET INTERNET ACCESS FROM JUNO! Juno offers FREE or PREMIUM Internet access for less! Join Juno today! For your FREE software, visit: http://dl.www.juno.com/get/web/. ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ 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 Join Rapid-Q & B++ WebRing now! http://citymap.getmyip.com --------------------------------- Do You Yahoo!? 雅虎娱乐新鲜到底,电子周报快乐到家! Join Rapid-Q & B++ WebRing now! http://citymap.getmyip.com --------------------------------- Do You Yahoo!? 雅虎娱乐新鲜到底,电子周报快乐到家! |
|
From: Ioannis V. <no...@ho...> - 2002-08-26 10:59:10
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of mo...@ju... > Sent: Monday, August 26, 2002 1:44 PM > To: dev...@li... > Subject: [Dev-C++] c# > > > I've been away from the programming wars for a while, & I notice that > Microsoft's current version of C is called C#. Could someone tell me > what are the differences between C# and Visual C 6.0? C# is a different language. Visual C++ .NET has followed 6. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys |
|
From: <mo...@ju...> - 2002-08-26 10:40:51
|
I've been away from the programming wars for a while, & I notice that Microsoft's current version of C is called C#. Could someone tell me what are the differences between C# and Visual C 6.0? Allan ________________________________________________________________ GET INTERNET ACCESS FROM JUNO! Juno offers FREE or PREMIUM Internet access for less! Join Juno today! For your FREE software, visit: http://dl.www.juno.com/get/web/. |
|
From: GC de S. <ch...@at...> - 2002-08-26 05:55:19
|
Dear All, I am trying to write a program for capturing video from a video camera + capture card using Dev C++. I tried using Direct Show in my programs, with numerous errors and no success. Please let me know if you have seen any sample code/tutorial that can be used for this. Is this possible using SDL? Thanking in Advance, GC |
|
From: Elizabeth B. <sog...@ya...> - 2002-08-26 04:12:25
|
"Napoleon Ahiable" <nah...@so...> writes: > Hello, > I have a directory C:\CppLab\MyLib which contains my Library files. I've = > been trying to include files from this directory in a program without = > success. I have entered the path under \Tools\Compiler = > Options\Directories\Include. But When I compile the program I get the = > linker error: > > //C/CppLab/Winnie/main.cpp:21: undefined reference to = > `Win::ClassMaker::ClassMaker(char const *, HINSTANCE__ *)' > //C/CppLab/Winnie/main.cpp:23: undefined reference to = > `Win::Maker::Maker(char const *, HINSTANCE__ *)' > //C/CppLab/Winnie/main.cpp:25: undefined reference to = > `Win::Maker::Create(Win::Controller &, char const *)' > > When I copy all the files into the same directory I get no errors. > What am I doing wrong ? I'm unable to check this one out at the moment but from what I gather, the "Options\Directories\Include" refer to include files (such as #include <win/winmaker.hpp>) and not the library files. If there is such an option as "Options\Directories\Libraries", try that with the library directories. Include files are part of the compiling stage, and as such they are needed by gcc (not the linker). The normal gcc command line option for this is -I, so if, say, you have certain include files in C:\dev\include, then the command line would look like this gcc -c x.c -IC:\dev\include This would look for include files in C:\dev\include (and any that are not resolved there would then go to the other, standard locations). For linking, though, one tells the linker (which may be called internally by GCC but the option is the same) where the library files with -L. If libXXXXX.a is in C:\dev\lib, then the command line would look something like (using gcc to do the linking): gcc -o testApplication.exe x.o -LC:\dev\lib -lXXXXX Note that the order is significant in linking (left to right). Dev-C++ does this automatically when it builds the makefile but it helps to understand what's going on under-the-hood. hth, Elizabeth |
|
From: Abhijit S. <mu...@gm...> - 2002-08-25 21:47:30
|
Greets, Peder. > hi all Dev users-- > > can anyone help me with this code ? i get a resource error > > > this is the main code... no errors here. > [chop, chop] > ------------------------------------ > this is my resource file.. parse error on line 5... > > resource: > --------------------------------------------------- > CHECKDLG DIALOG 0, 0, 152, 46 > STYLE WS_VISIBLE | WS_SYSMENU | WS_POPUP | WS_CAPTION | > DS_MODALFRAME // <----------### the compiler says parse error here ##### > ------------------------------------ Try #including <windows.h> in the resource file, it should work. > > PS- i'm new to this mailing list. Welcome, then :) I have a request, though - please don't post in HTML. The reasons for this are buried deep in the sands of time, where no-one dares venture but those of the order of the squeaky baboon. Check the mailing-list archives. ___________________________________________________________ Abhijit Shylanath E-mail: mu...@gm... || ibr...@bi... Web-site: http://mudeth.tripod.com/ |
|
From: Abhijit S. <mu...@gm...> - 2002-08-25 21:37:20
|
I'm writing a program to monitor and log all windows events (WM_*** messages) using a Windows hook. Everything is going fine, but I'm facing a problem getting the name of the window to which the handle belongs. When I try to use GetWindowText() within the hook function, it again posts a message (WM_GETTEXT), which will trigger the hook again, setting off an infinite loop. I was thinking of locking out the hook function with a static flag, so that it isn't re-entrant. Is this okay, or will it prevent me from logging other legitimate calls? Or is there another method you can suggest? One more thing, while I was writing this program, I noticed that Dev overwrites the `.def' files when it's creating a DLL (by specifying the `--output-def' option to `dllwrap'), so I'm unable to import/export functions by ordinal (which is more efficient). Can the authors please fix it so that the def files we create are maintained? ___________________________________________________________ Abhijit Shylanath E-mail: mu...@gm... || ibr...@bi... Web-site: http://mudeth.tripod.com/ |
|
From: <kp...@po...> - 2002-08-25 16:45:59
|
hi all Dev users--
can anyone help me with this code ? i get a resource error
this is the main code... no errors here.
-------------------------------------------------------------------------=
--------------------------------
window.cpp
-------------------------------------------------------------------------=
-------------------------------------------------------------------------=
------------
#include <windows.h>
#define IDC_CHECKDLG_ACHECK 101
#define IDC_CHECKDLG_CHECKTHECHECK 102
BOOL CALLBACK CheckDlgProc(HWND hwnd, UINT Message, WPARAM wParam, =
LPARAM lParam)
{
switch(Message)
{
case WM_INITDIALOG:
CheckDlgButton(hwnd, IDC_CHECKDLG_ACHECK, BST_CHECKED);
return TRUE;
case WM_COMMAND:
switch(LOWORD(wParam))
{
case IDC_CHECKDLG_CHECKTHECHECK:
if(IsDlgButtonChecked(hwnd, IDC_CHECKDLG_ACHECK) =3D=3D =
BST_CHECKED){
MessageBox(hwnd, "The Box is CHECKED!", "Woo.",
MB_OK | MB_ICONINFORMATION);
}
else {
MessageBox(hwnd, "The Box is NOT checked!", "Woo.",
MB_OK | MB_ICONINFORMATION);
}
return TRUE;
case IDCANCEL:
EndDialog(hwnd, IDCANCEL);
return TRUE;
}
break;
}
return FALSE;
}
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
DialogBox(hInstance, "CHECKDLG", 0, CheckDlgProc);
return 0;
}
-------------------------------------------------------------------------=
-------------------------------------------------------------------------=
------------
this is my resource file.. parse error on line 5...
resource:
-------------------------------------------------------------------------=
-------------------------------------------------------------------------=
------------
#define IDC_CHECKDLG_ACHECK 101
#define IDC_CHECKDLG_CHECKTHECHEC 102
CHECKDLG DIALOG 0, 0, 152, 46
STYLE WS_VISIBLE | WS_SYSMENU | WS_POPUP | WS_CAPTION | DS_MODALFRAME // =
<----------### the compiler says parse error here #####
CAPTION "A Window"
FONT 8, "MS Sans Serif"
{
CONTROL "This &here is a check box.", IDC_CHECKDLG_ACHECK, "button", =
BS_AUTOCHECKBOX | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 7, 8, 107, 12
CONTROL "&Check the Check", IDC_CHECKDLG_CHECKTHECHECK, "button", =
BS_PUSHBUTTON | BS_CENTER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 5, 26, =
81, 14
CONTROL "E&xit", IDCANCEL, "BUTTON", BS_PUSHBUTTON | BS_CENTER | =
WS_CHILD | WS_VISIBLE | WS_TABSTOP, 95, 26, 50, 14
}
102 DIALOG 0, 0, 200, 200
STYLE WS_VISIBLE | WS_SYSMENU | WS_POPUP | WS_CAPTION | DS_MODALFRAME =20
CAPTION "Dialog title"
FONT 8,"Helv"
BEGIN
END
#define IDC_CHECKDLG_ACHECK 101
#define IDC_CHECKDLG_CHECKTHECHEC 102
CHECKDLG DIALOG 0, 0, 152, 46
STYLE WS_VISIBLE | WS_SYSMENU | WS_POPUP | WS_CAPTION | DS_MODALFRAME =20
CAPTION "A Window"
FONT 8, "MS Sans Serif"
{
CONTROL "This &here is a check box.", IDC_CHECKDLG_ACHECK, "button", =
BS_AUTOCHECKBOX | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 7, 8, 107, 12
CONTROL "&Check the Check", IDC_CHECKDLG_CHECKTHECHECK, "button", =
BS_PUSHBUTTON | BS_CENTER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 5, 26, =
81, 14
CONTROL "E&xit", IDCANCEL, "BUTTON", BS_PUSHBUTTON | BS_CENTER | =
WS_CHILD | WS_VISIBLE | WS_TABSTOP, 95, 26, 50, 14
}
-------------------------------------------------------------------------=
-------------------------------------------------------------------------=
------------
-------------------------------------------------------------------------=
-------------------------------------------------------------------------=
------------
PS- i'm new to this mailing list.
|
|
From: Carlos d. M. <cg...@wo...> - 2002-08-25 11:33:05
|
Go to 7-zip org, and click download page, there it is. 7z230b21s.tar.bz2 is the name of the file. Or go to its sourceforge page. Louis Godio escribi=F3: > Does anyone know where to get the source code for 7-ZIP ? > > __________________________________________________ > Do You Yahoo!? > Yahoo! Finance - Get real-time stock quotes > http://finance.yahoo.com > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=3Dsourceforge1&refcode1=3Dvs3390 > _______________________________________________ > 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: <Met...@ao...> - 2002-08-25 08:16:48
|
By default, all the static library files needed by DevCpp to link an application are located in the lib directory. And remember that *includes files* are different than *static link library files* If you wish to include your owns, which are located wherever you want, you just have to call project options/files directories/libraries to tell the linker where to find the static link libs. As I can guess in your message, I can see that you did not forget the "-l" option of the linker, because the whole process is ok when you put all the files in the same directory. Kind regards -- Seb |
|
From: Jim W. <ma...@em...> - 2002-08-25 02:12:24
|
These? http://www.mingw.org/docs.shtml Jim -----Original Message----- From: Louis Godio Does anyone know where to get documentation files for the MINGW compiler ? |
|
From: Napoleon A. <nah...@so...> - 2002-08-24 23:09:52
|
Hello, I have a directory C:\CppLab\MyLib which contains my Library files. I've = been trying to include files from this directory in a program without = success. I have entered the path under \Tools\Compiler = Options\Directories\Include. But When I compile the program I get the = linker error: //C/CppLab/Winnie/main.cpp:21: undefined reference to = `Win::ClassMaker::ClassMaker(char const *, HINSTANCE__ *)' //C/CppLab/Winnie/main.cpp:23: undefined reference to = `Win::Maker::Maker(char const *, HINSTANCE__ *)' //C/CppLab/Winnie/main.cpp:25: undefined reference to = `Win::Maker::Create(Win::Controller &, char const *)' When I copy all the files into the same directory I get no errors. What am I doing wrong ? Thanks=20 Napoleon. =20 |
|
From: Louis G. <lg...@ya...> - 2002-08-24 19:16:57
|
Does anyone know where to get documentation files for the MINGW compiler ? __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com |
|
From: Louis G. <lg...@ya...> - 2002-08-24 19:13:58
|
Does anyone know where to get the source code for 7-ZIP ? __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com |
|
From: <gui...@ya...> - 2002-08-24 14:29:02
|
I selected an icon from "icon library" at "project option" menu, but it didn't work. I'm using wxWindows package, and building my app from the template. SetIcon(wxICON(A)); I saw a .ico and .rc file created by dev-cpp, but my compiled .exe file always has the default wxwindows icon, can't be changed to my selected one. Any tips? Anywhere else should I check? Guidance Join Rapid-Q & B++ WebRing now! http://citymap.getmyip.com --------------------------------- Do You Yahoo!? 雅虎娱乐新鲜到底,电子周报快乐到家! |
|
From: Ioannis V. <no...@ho...> - 2002-08-24 01:49:47
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Ioannis Vranos
> Sent: Saturday, August 24, 2002 3:24 AM
> To: dev...@li...
> Subject: RE: [Dev-C++] STL broken?
>
>
> > -----Original Message-----
> > From: dev...@li...
> > [mailto:dev...@li...] On Behalf
> > Of Alvin Thompson
> > Sent: Saturday, August 24, 2002 12:18 AM
> > To: dev...@li...
> > Subject: [Dev-C++] STL broken?
> >
> >
> > hello,
> >
> > try compiling the following program:
> >
> > #include <iostream>
> > #include <stdlib.h>
>
> Or better: #include <cstdlib>
>
>
> > #include <map>
> >
> > int main(int argc, char *argv[])
> > {
>
> using namespace std;
>
>
> > map<int,void*> m;
> > map<int,void*>::iterator it;
> > // <fill map here>
> > it=m.erase(it); // erase current item and get next item -
> > COMPILER
> > ERROR?
> > system("PAUSE"); return 0;
> > }
> >
> >
> > this program should be perfectly legal, yet it generates a compiler
> > error? it compiles fine with VC++. am i doing something wrong?
>
>
> Yes, you are right it should compile. Also Borland C++ 5.5 doesn't
> compile it too. The rest of my compilers compile it. I
> reported it as a
> bug defect in MINGW users list. Probably it is an
> unimplemented feature.
>
My mistake. The standard map::erase() functions do not rreturn any
iterator. erase() members that do are system extensions. So there is no
bug.
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.cjb.net
* Alternative URL: http://run.to/noicys
|
|
From: Ioannis V. <no...@ho...> - 2002-08-24 00:30:41
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Alvin Thompson
> Sent: Saturday, August 24, 2002 12:18 AM
> To: dev...@li...
> Subject: [Dev-C++] STL broken?
>
>
> hello,
>
> try compiling the following program:
>
> #include <iostream>
> #include <stdlib.h>
Or better: #include <cstdlib>
> #include <map>
>
> int main(int argc, char *argv[])
> {
using namespace std;
> map<int,void*> m;
> map<int,void*>::iterator it;
> // <fill map here>
> it=m.erase(it); // erase current item and get next item -
> COMPILER
> ERROR?
> system("PAUSE"); return 0;
> }
>
>
> this program should be perfectly legal, yet it generates a compiler
> error? it compiles fine with VC++. am i doing something wrong?
Yes, you are right it should compile. Also Borland C++ 5.5 doesn't
compile it too. The rest of my compilers compile it. I reported it as a
bug defect in MINGW users list. Probably it is an unimplemented feature.
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.cjb.net
* Alternative URL: http://run.to/noicys
|
|
From: Elizabeth B. <sog...@ya...> - 2002-08-23 21:42:23
|
Hi Alvin, Check out: <http://www.sgi.com/tech/stl/Map.html> According to the (definitive IMO) definition mentioned above: void erase(iterator pos) returns no value. > it=m.erase(it); // erase current item and get next item - COMPILER ERROR? There is no match: > 10 C:\projects\DevCpp\stl-test\main.cpp > no match for `_Rb_tree_iterator<pair<const int,void *>,pair<const > int,void *> &,pair<const int,void *> *> & = void' That is to say, there is no match for a void-to-iterator cast. This is the candidate: > 185 C:\Dev-Cpp-beta5\include\g++-3\stl_tree.h > candidates are: struct _Rb_tree_iterator<pair<const int,void > *>,pair<const int,void *> &,pair<const int,void *> *> & > _Rb_tree_iterator<pair<const int,void *>,pair<const int,void *> > &,pair<const int,void *> *>::operator =(const > _Rb_tree_iterator<pair<const int,void *>,pair<const int,void *> > &,pair<const int,void *> *> &) Elizabeth |
|
From: Ger L. <ge...@kn...> - 2002-08-23 21:19:02
|
Confirmation of reported error message that obviously many new users
experience:
Installed Dev-C++ in C:\Programf\Dev-C++ to test this and then the
Hello World example compiled and ran without problems just as
with the installation in the default directory C:\Dev-C++ that I tested.
Installation in C:\Program Files\Dev-C++ produced the errors as posted
in this mailing list.
Greetings, Ger
----- Oorspronkelijk bericht -----
Van: "Abhijit Shylanath" <mu...@gm...>
Aan: "Kylotan" <ky...@ky...>; "Dev-C++ Mailing List"
<dev...@li...>
Verzonden: 22 August 2002 22:06
Onderwerp: Re: [Dev-C++] "unable to run program file"
> > I just installed the latest version, 4.9.5.0, and upon trying to compile
> > any program, I get this error in the 'Compiler' pane:
> >
> > 2 C:\My Documents\2 unable to run program file.
> >
> > And this in the Compile Log:
> > Executing g++.exe...
> > g++.exe "C:\My Documents\test2.cpp" -o "C:\My
> > ocuments\test2.exe" -s -I"C:\PROGRAM
> > ILES\UTILS\DEV-CPP\include" -I"C:\PROGRAM
> > FILES\UTILS\DEV-CPP\include\g++-3" -I"C:\PROGRAM
> > FILES\UTILS\DEV-CPP\include" -L"C:\PROGRAM FILES\UTILS\DEV-CPP\lib"
> > Execution terminated
> >
> > I accepted the default installation options, with the only exception of
> > not associating files with Dev C++ and changing the directory of
> > installation. I've checked the FAQ and scanned back through a few weeks
> > of the archives but I don't see anything like this. Any idea what the
> > problem is?
>
> I think the problem is the space in the filename ("Program Files"). Try
> installing to another location (maybe "c:\dev-cpp").
>
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone? Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> _______________________________________________
> 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: Alvin T. <al...@th...> - 2002-08-23 21:17:29
|
hello,
try compiling the following program:
#include <iostream>
#include <stdlib.h>
#include <map>
int main(int argc, char *argv[])
{
map<int,void*> m;
map<int,void*>::iterator it;
// <fill map here>
it=m.erase(it); // erase current item and get next item - COMPILER
ERROR?
system("PAUSE"); return 0;
}
this program should be perfectly legal, yet it generates a compiler
error? it compiles fine with VC++. am i doing something wrong?
the error:
10 C:\projects\DevCpp\stl-test\main.cpp
no match for `_Rb_tree_iterator<pair<const int,void *>,pair<const
int,void *> &,pair<const int,void *> *> & = void'
185 C:\Dev-Cpp-beta5\include\g++-3\stl_tree.h
candidates are: struct _Rb_tree_iterator<pair<const int,void
*>,pair<const int,void *> &,pair<const int,void *> *> &
_Rb_tree_iterator<pair<const int,void *>,pair<const int,void *>
&,pair<const int,void *> *>::operator =(const
_Rb_tree_iterator<pair<const int,void *>,pair<const int,void *>
&,pair<const int,void *> *> &)
any help would be greatly appreciated.
thanks,
alvin
|
|
From: Abhijit S. <mu...@gm...> - 2002-08-23 16:23:08
|
Greets, Roger. > I am studying C++ and would like to use vim and dev-C++ together on > two platforms. (Linux and Windows) Problem: It is a bit cumbersome to > use vim and then to switch to dev-cpp. Is there some way these two can > work together or am I stuck with changing back and forth. I like vim a lot > as an editor as I do dev-cpp as a compiler. Any advice would be appreciated. > dev-cpp ver:4.9.5.0 > vim ver:6.1 Dev-C++ isn't a compiler, it's an environment (mainly an editor). It uses the MingW32 compiler (http://www.mingw.org/) that runs on Windows systems. Download the compiler from the URL and use it as documented. Alternately, you can use the compiler bundled with Dev, by adding it to the "PATH" environment variable and running it from the command-line in DOS and Windows. If you want to use the two together, you'll have to get them onto a common platform. In Linux, you can use MingW on the windows emulator or a cross-compiler, about which I don't know much. On Windows, I'm not really sure if there's a vim port (there should be), you could use one if there is, or you can try Emacs. Or, of course, use the integrated Dev editor (which is getting better and better). ___________________________________________________________ Abhijit Shylanath E-mail: mu...@gm... || ibr...@bi... Web-site: http://mudeth.tripod.com/ |
|
From: <Rog...@ho...> - 2002-08-23 15:37:36
|
I am studying C++ and would like to use vim and dev-C++ together on two platforms. (Linux and Windows) Problem: It is a bit cumbersome to use vim and then to switch to dev-cpp. Is there some way these two can work together or am I stuck with changing back and forth. I like vim a lot as an editor as I do dev-cpp as a compiler. Any advice would be appreciated. dev-cpp ver:4.9.5.0 vim ver:6.1 Thanks! Roger. |