dev-cpp-users Mailing List for Dev-C++ (Page 506)
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-10-20 03:23:37
|
> -----Original Message-----
> From: Per Westermark [mailto:pw...@ia...]
> Sent: Saturday, October 19, 2002 10:03 PM
> To: Ioannis Vranos
> Cc: dev...@li...
> Subject: RE: [Dev-C++] Make switch condition an enum
>
>
> Guess the definition of _T("x")...
>
> #if defined(_UNICODE) || defined(UNICODE)
> #define _T(x) L##x
> #else
> #define _T(x) x
> #endif
>
> This is the OFFICIAL way of writing portable MFC or wxWindows
> programs.
> The L"Hello world" concept requires you to change a huge
> number of strings
> whenever you want to activate/deactivate unicode support.
>
> As you can probably guess, all functions taking a string as a
> parameter
> must also be specially handled.
>
> // Microsoft
> #if defined(_UNICODE) || defined(UNICODE)
> #define _tcslen wcslen
> #else
> #define _tcslen strlen
> #endif
>
> // wxWindows
> size_t wxStrlen(const wxChar *s);
>
> /Per W
Well let UNICODE aside. wchar_t is a wide character type existing in
*all* machines. It belongs to the C/C++ standards. In C90 wchar_t is a
typedef defined in stddef.h. In C++98 it is a *built in* type (and in
all machines using UNICODE, wchar_t is usually UNICODE).
I see no reason why "activate" or "deactivate" wide character support
using "compilation under condition". If your code needs wide character
support so as to work in some platforms, use wchar_t in the first place
(something bad, from all the compilers i have seen, wcout doesn't exist
in MINGW's <iostream> and probably in GCC itself).
Forget all the Win32 bad programming styles. :)
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL: http://run.to/noicys
|
|
From: B. <ama...@uo...> - 2002-10-20 02:57:21
|
I need to run the client-server Douglas Comer example, but I didn't find
the following include files in the $DEVC$/include dir:
socket.h
in.h
netdb.h
pwd.h
Where can I find them? For Win'9x and Linux?
Best Regards
Mac=E1rio
|
|
From: Roberto R. <rob...@ar...> - 2002-10-20 00:27:08
|
Hi all, I´ve tried to use dev-cpp with new mingw 2.0.0.3, I read here some about make name changes, so I rename and copy min...-make.exe in make.exe (tryed with both) , I changed all the directories references, but some looks wrong. Im working in c just not c++. This is the dump compiler / linker results (help linker tell me some about generic error in your source) of course all work well with the distribution from dev-cpp. ¿Any ideas? [Linker error] undefined reference to `std::ios_base::Init::Init()' [Linker error] undefined reference to `std::ios_base::Init::~Init()' [Linker error] undefined reference to `__gxx_personality_v0' C:\Dev-Cpp\c\Makefile.win [Build Error] make.exe: *** [Myprog.exe] Error 1 Thanks in advance Roberto |
|
From: Elizabeth B. <sog...@ya...> - 2002-10-20 00:03:11
|
"Santiago" <sa...@ho...> writes: > Hi, thanks for all you help in the past. I'm studying C++ and haven't even > touched windows programming with c++. I'd like to find the best possible > book for my case scenario. I'm almost done with the "basics" for c++ and I'm > looking to move towards windows programming. I need a book which teaches me > windows from the scratch. However, I really don't know which way to go. The > newer books only talk about .NET and C#, while the so called "best" C++ > books are from 1998, 99 and 2000. Would it be better to go ahead and buy one > of those books that talk about both or should I get done with win32 API > first before I move on to .NET/C#? Or should I even bother learning .NET? > A dream book would be a recent one that teaches how to built windows > application using win32 API with all its latest components and then guide me > through .NET > > This is very important for me because with the little time I have to study, > I really can't afford to waist any time with the wrong or obsolete > reference. > I will appreciate any feedback you may provide. > > Thanks I forget how I found out about this site, but <http://www.relisoft.com/Win32/index.htm> has a nice tutorial that combines C++ with Win32 programming. The author, Bartosz Milewski, also wrote a book that includes this topic: <http://www.amazon.com/exec/obidos/ASIN/0201699486/ref=cm_wl_ovu-pg.3-pos.3/002-2926871-2852856?coliid=I1801V7EXRPBCR> Occasionally, the book is mentioned on this list. The only win32 API book I have is the one Bartosz suggests, Rector and Newcomer's Win32 Programming, which is okay but it is aimed primarily at C programmers. <http://www.amazon.com/exec/obidos/tg/detail/-/0201634929/qid=1035072143/sr=1-1/ref=sr_1_1/002-2926871-2852856?v=glance> Just my .02. Elizabeth |
|
From: Santiago <sa...@ho...> - 2002-10-19 23:19:25
|
Hi, thanks for all you help in the past. I'm studying C++ and haven't even touched windows programming with c++. I'd like to find the best possible book for my case scenario. I'm almost done with the "basics" for c++ and I'm looking to move towards windows programming. I need a book which teaches me windows from the scratch. However, I really don't know which way to go. The newer books only talk about .NET and C#, while the so called "best" C++ books are from 1998, 99 and 2000. Would it be better to go ahead and buy one of those books that talk about both or should I get done with win32 API first before I move on to .NET/C#? Or should I even bother learning .NET? A dream book would be a recent one that teaches how to built windows application using win32 API with all its latest components and then guide me through .NET This is very important for me because with the little time I have to study, I really can't afford to waist any time with the wrong or obsolete reference. I will appreciate any feedback you may provide. Thanks San |
|
From: Paulo M. <pau...@ne...> - 2002-10-19 22:54:41
|
Hi, Does anyone know where do I get a complete reference to the libraries which includes are in .../include/g++-3 ? TIA Paulo Morgado |
|
From: Per W. <pw...@ia...> - 2002-10-19 19:03:37
|
Guess the definition of _T("x")...
#if defined(_UNICODE) || defined(UNICODE)
#define _T(x) L##x
#else
#define _T(x) x
#endif
This is the OFFICIAL way of writing portable MFC or wxWindows programs.
The L"Hello world" concept requires you to change a huge number of strings
whenever you want to activate/deactivate unicode support.
As you can probably guess, all functions taking a string as a parameter
must also be specially handled.
// Microsoft
#if defined(_UNICODE) || defined(UNICODE)
#define _tcslen wcslen
#else
#define _tcslen strlen
#endif
// wxWindows
size_t wxStrlen(const wxChar *s);
/Per W
On Sat, 19 Oct 2002, Ioannis Vranos wrote:
> > -----Original Message-----
> > From: Per Westermark [mailto:pw...@ia...]
> > Sent: Saturday, October 19, 2002 2:26 PM
> > To: Ioannis Vranos
> > Cc: dev...@li...
> > Subject: RE: [Dev-C++] Make switch condition an enum
> >
> >
> > The _T(x) is a macro used by a Microsoft Developer Studio,
> > the wxWindows
> > framework etc, to handle wide/non-wide, characters. All you
> > have to do is
> > to #define _UNICODE (or sometimes #define UNICODE, or in wxWindows
> > #define wxUSE_UNICODE 1) to switch all "tagged"
> > strings to wide character strings.
>
>
> I do not know Win32 API-specific stuff but concerning ANSI C and ANSI
> C++ you can define a string literal as a wide character one by placing
> the capital letter L in front of it. For example consider the C90
> program:
>
>
> #include <stdio.h>
> #include <stddef.h>
>
> int main()
> {
> const wchar_t *ws=L"Wide character string";
>
> wprintf(L"%s\n", ws);
>
> return 0;
> }
>
>
> Ioannis
>
> * Ioannis Vranos
> * Programming pages: http://www.noicys.freeurl.com
> * Alternative URL: http://run.to/noicys
>
>
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:
> Access Your PC Securely with GoToMyPC. Try Free Now
> https://www.gotomypc.com/s/OSND/DD
> _______________________________________________
> 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: Ioannis V. <no...@ho...> - 2002-10-19 18:04:36
|
> -----Original Message-----
> From: Per Westermark [mailto:pw...@ia...]
> Sent: Saturday, October 19, 2002 2:26 PM
> To: Ioannis Vranos
> Cc: dev...@li...
> Subject: RE: [Dev-C++] Make switch condition an enum
>
>
> The _T(x) is a macro used by a Microsoft Developer Studio,
> the wxWindows
> framework etc, to handle wide/non-wide, characters. All you
> have to do is
> to #define _UNICODE (or sometimes #define UNICODE, or in wxWindows
> #define wxUSE_UNICODE 1) to switch all "tagged"
> strings to wide character strings.
I do not know Win32 API-specific stuff but concerning ANSI C and ANSI
C++ you can define a string literal as a wide character one by placing
the capital letter L in front of it. For example consider the C90
program:
#include <stdio.h>
#include <stddef.h>
int main()
{
const wchar_t *ws=L"Wide character string";
wprintf(L"%s\n", ws);
return 0;
}
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL: http://run.to/noicys
|
|
From: Ioannis V. <no...@ho...> - 2002-10-19 17:44:31
|
There is the latest MINGW distribution which has GCC 3.2 and you can find there: =20 http://sourceforge.net/project/showfiles.php?group_id=3D2435 =20 =20 =20 or download it directly: http://prdownloads.sourceforge.net/mingw/MinGW-2.0.0-3.exe?download =20 =20 =20 Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com <http://www.noicys.freeurl.com/>=20 * Alternative URL: http://run.to/noicys =20 =20 =20 -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Andy Elvey Sent: Saturday, October 19, 2002 12:51 AM To: dev...@li... Subject: [Dev-C++] How to "re-point" Dev-cpp to use latest version of g++ Hi. I'm new to the list , and was wanting to know how to change Dev-cpp so that it uses the latest version of g++. I'm using Win98.=20 I have cygwin on my PC which uses the latest g++ - version 3.2. , and just need to know the Cygwin directories that Dev-cpp's "binaries", "libraries" and "C++ includes" should be repointed to. =20 =20 Many thanks in advance ... :-) =20 =20 =20 |
|
From: Per W. <pw...@ia...> - 2002-10-19 11:25:54
|
The _T(x) is a macro used by a Microsoft Developer Studio, the wxWindows
framework etc, to handle wide/non-wide, characters. All you have to do is
to #define _UNICODE (or sometimes #define UNICODE, or in wxWindows
#define wxUSE_UNICODE 1) to switch all "tagged"
strings to wide character strings.
/Per W
On Sat, 19 Oct 2002, Ioannis Vranos wrote:
> > -----Original Message-----
> > From: dev...@li...
> > [mailto:dev...@li...] On Behalf
> > Of Daniel Glenfield
> > Sent: Friday, October 18, 2002 2:45 PM
> > To: dev...@li...
> > Subject: [Dev-C++] Make switch condition an enum
> >
> >
> >
> > Hi,
> > I have the following chunk of code, and I've been asked to
> > make the switch
> > (SomeError) statement use an enum. Well I was told to "make
> > that an enum".
> >
> > How would I create the enum and use it in the switch statement?
>
> Enumerators are user defined integral types taking discrete, user
> defined values. For example:
>
> // Mon=0, Tue=1, Wed=2, Thu=8, Fri=9 Sat=20 Sun=21
> enum Days { Mon, Tue, Wed, Thu=8, Fri, Sat=20, Sun};
>
>
> The above is the type. It does not occupy space the same as int, or a
> class does not occupy space by itself. Its objects do:
>
>
> Days oneday=Wed;
>
>
> switch(oneday)
> {
> case Mon:
> // ...
> }
>
>
> > // Get error strings
> > switch (SomeError)
> > {
> > case ERROR_ONE:
> > DebugOut = _T("Error One!");
> > break;
> >
> > case ERROR_TWO:
> > DebugOut = _T("Error Two!");
> > break;
> >
> > default:
> > DebugOut = _T("Unspecified error!");
> > break;
> > }
>
>
> What is that _T you are using all the time anyway? It seems to me
> something like "boxing" (as it happens in .NET for example).
>
>
>
> Ioannis
>
> * Ioannis Vranos
> * Programming pages: http://www.noicys.freeurl.com
> * Alternative URL: http://run.to/noicys
>
>
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:
> Access Your PC Securely with GoToMyPC. Try Free Now
> https://www.gotomypc.com/s/OSND/DD
> _______________________________________________
> 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: Carlos d. M. <cg...@wo...> - 2002-10-19 09:53:38
|
Oops! What a messs, sorry in the answer I got an idea about a thing and I forgot what I was writing... Edit fonts.h or whatever file says that, search for the string "yakyakdefineyakyakcase-insensitiveyakyak", that is inside an #error directive, over it is a #idefs structure, search for the symbol for gcc, you have to define it before including wx.h. |
|
From: Carlos d. M. <cg...@wo...> - 2002-10-19 09:50:25
|
You have to edit fonts.h (perhaps other, I'm not sure, see the file which= produces that message). As I said there seems to be people who achieved to work with wxwindows, b= ut I never. I gave up and I deleted all wxwindows from my computer. Louis Godio escribi=F3: > Based on the Santiago's note, it seems like wxWindows is a lot of effor= t > to > set up correctly. Could someone experienced with wxWindows tell us if i= t > is worth all this effort ? > > --- Santiago Palmier Campos <San...@yd...> wrote: > > Hi *, > > > > If you don't use Dev-C++ package and you want to use wxWindows source= s > > 'by > > yourself', there are only a few things you must do in order to use > > wxWindows... > > > > Download wxWindows sources (from http://wxwindows.sourceforge.net/), > > download also 'extra.zip' file (from http://wxwindows.sourceforge.net= / > > also, > > but only if you don't use MSYS from http://mingw.sourceforge.net/) an= d > > then, > > FIRST OF ALL, please read the file: %WXWIN%/docs/msw/install.txt > > > > You'll find everything you'll need in order to install it!!! > > > > Anyway here you have a 'Quick How To'... > > > > Set a few environment variables: > > WXWIN to the path where you decompressed wxWindows sources, > > if needed, BISON_SIMPLE & BISON_HAIRY to the complete path to f= iles > > (complete/path/to/folder/plus/filename.extension) > > > > Edit %WXWIN%\src\makeg95.env, search through the options and set them= to > > the > > appropriate values to fit your system needs; I just changed the > > following > > ones (keep in mind that these are MY values for WinAPI & MinGW > > installation > > ;o): > > MINGW32=3D1 > > MINGW32VERSION=3D3.2 > > YACC=3Dbison > > CPU=3Dpentium4 > > COMPPATHS =3D -I"D:/WinAPI/include" -I"D:/MinGW/include" > > Perhaps you may want to include these two also: > > -I"D:/MinGW/include/sys" -I"D:/MinGW/include/c++/3.2" > > > > ...And add the appropriate dirs to this one (keeping the original stu= ff, > > of > > course): > > LDFLAGS =3D (...original stuff...) -L"D:/MinGW/lib" -L"D:/WinA= PI/lib" > > > > Then cd to %WXWIN%\src\msw and use make -f makefile.g95 clean / make = -f > > makefile.g95 and wait... That's all!!! > > You'll have wxWindows ready to use (there are a few more options to u= se > > the > > wxWindows DLL, so read the docs, please...) > > > > You'll only need to use a makefile like the following one, you only h= ave > > to > > modify 'OBJECTS' to fit your needs: > > # Makefile for wxWindows (Mingw32). > > # WXDIR =3D D:/wxWindows/v2.3.3 > > > > TARGET=3DMyApp > > OBJECTS =3D $(TARGET).o MyFrame.o MyOtherStuff.o > > > > include $(WXDIR)/src/makeprog.g95 > > > > Hope this helps > > Santy > > > > -----Original Message----- > > From: Carlos Garc=EDa del Monte [mailto:cg...@wo...] > > Sent: jueves, 17 de octubre de 2002 22:24 > > To: ma...@al...; dev-cpp-users-list > > Subject: Re: [Dev-C++] WxWINDOW > > > > > > Oh, sorry, I thought you got the package from dev home page, which is= a > > devpak. > > > > What I did was this: (having gcc[C:\Dev-Cpp\Bin] in the path) > > 1- I unpacked it to C:\wxMSW > > 2 - open command.exe > > 3 - cd to C:\wxMSW\src > > 4 - type make -f makefile.g95 and wait, then I ran over some of the > > other > > folders seeing that in all of them the result was "make nothing to be > > done > > for all", so I gave it as built. Well, there were a couple of utiliti= es > > about dialog editor or something like that, I cd to there and make et= c. > > > > The bad news are that I never could make it work, except for the > > examples > > that were with it, which compiled fine, I tried some examples for > > Dev-C++ > > and I couldn't compile any one. > > > > The first you must do when making a project is define __GNUWIN32__ an= d > > define UNICODE, and define __WXMSW__ > > > > And a lot of compiler options, linker parameters... search in the dev > > mailing list, I don't remember when they answered me with all those > > options > > you must provide, more or less six or seven months ago or before. > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: viaVerio will pay you up to $1,000 > > for > > every account that you consolidate with us. > > http://ad.doubleclick.net/clk;4749864;7604308;v? > > http://www.viaverio.com/consolidator/osdn.cfm > > _______________________________________________ > > 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 > > > -----------------------------------------------------------------------= --------------- > > This message and any files transmitted with it are confidential and > > intended solely > > for the use of the individual or entity to whom they are addressed. N= o > > confidentiality > > or privilege is waived or lost by any wrong transmission. > > If you have received this message in error, please immediately destro= y > > it and kindly > > notify the sender by reply email. > > You must not, directly or indirectly, use, disclose, distribute, prin= t, > > or copy any > > part of this message if you are not the intended recipient. Opinions, > > conclusions and > > other information in this message that do not relate to the official > > business of > > Ydilo Advanced Voice Solutions, S.A. shall be understood as neither > > given nor endorsed by it. > > > -----------------------------------------------------------------------= --------------- > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > 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 > > __________________________________________________ > Do you Yahoo!? > Faith Hill - Exclusive Performances, Videos & More > http://faith.yahoo.com > > ------------------------------------------------------- > This sf.net email is sponsored by: > Access Your PC Securely with GoToMyPC. Try Free Now > https://www.gotomypc.com/s/OSND/DD > _______________________________________________ > 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: Carlos d. M. <cg...@wo...> - 2002-10-19 09:47:48
|
Because GCC3.2 compiles with thunks as default.
Ioannis Vranos escribi=F3:
> >From: Daniel =C5kerud <zi...@ho...>
> >To: <dev...@li...>
> >Subject: [Dev-C++] -fvtable-thunks and CRASH!
> >Date: Wed, 16 Oct 2002 07:45:03 +0200
> >
> >
> >At last I found the problem!
> >compiling with -fvtable-thunks is causing this simple program to crash=
:
> >
> >
> >#include <iostream>
> >#include <sstream>
> >
> >using std::stringstream;
> >
> >int main()
> >{
> > stringstream s;
> > s << endl;
> >
> > return 0;
> >}
> >
> >
> >Why? How can I solve it?
> >If you ask why I use -fvtable-thunks it's because I code in directX!
> >
> >thanks!
> >
> >Daniel =C5kerud
>
> A proper one version:
>
> #include <iostream>
> #include <sstream>
>
> int main()
> {
> using std::stringstream;
> using std::endl;
>
> stringstream s;
> s << endl;
>
> return 0;
> }
>
> With GCC 3.2 it doesn't crash but it produces:
>
> C:\c>g++ -fvtable-thunks temp.cpp -o temp
> cc1plus.exe: warning: -fvtable-thunks is no longer supported
>
> C:\c>temp
>
> C:\c>
>
> Ioannis
>
> * Ioannis Vranos
> * Programming pages: http://www.noicys.freeurl.com
> * Alternative URL: http://run.to/noicys
>
> -------------------------------------------------------
> This sf.net email is sponsored by:
> Access Your PC Securely with GoToMyPC. Try Free Now
> https://www.gotomypc.com/s/OSND/DD
> _______________________________________________
> 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: Ioannis V. <no...@ho...> - 2002-10-18 23:37:34
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Daniel Glenfield
> Sent: Friday, October 18, 2002 2:45 PM
> To: dev...@li...
> Subject: [Dev-C++] Make switch condition an enum
>
>
>
> Hi,
> I have the following chunk of code, and I've been asked to
> make the switch
> (SomeError) statement use an enum. Well I was told to "make
> that an enum".
>
> How would I create the enum and use it in the switch statement?
Enumerators are user defined integral types taking discrete, user
defined values. For example:
// Mon=0, Tue=1, Wed=2, Thu=8, Fri=9 Sat=20 Sun=21
enum Days { Mon, Tue, Wed, Thu=8, Fri, Sat=20, Sun};
The above is the type. It does not occupy space the same as int, or a
class does not occupy space by itself. Its objects do:
Days oneday=Wed;
switch(oneday)
{
case Mon:
// ...
}
> // Get error strings
> switch (SomeError)
> {
> case ERROR_ONE:
> DebugOut = _T("Error One!");
> break;
>
> case ERROR_TWO:
> DebugOut = _T("Error Two!");
> break;
>
> default:
> DebugOut = _T("Unspecified error!");
> break;
> }
What is that _T you are using all the time anyway? It seems to me
something like "boxing" (as it happens in .NET for example).
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL: http://run.to/noicys
|
|
From: Ioannis V. <no...@ho...> - 2002-10-18 23:30:04
|
>From: Daniel =C5kerud <zi...@ho...>
>To: <dev...@li...>
>Subject: [Dev-C++] -fvtable-thunks and CRASH!
>Date: Wed, 16 Oct 2002 07:45:03 +0200
>
>
>At last I found the problem!
>compiling with -fvtable-thunks is causing this simple program to crash:
>
>
>#include <iostream>
>#include <sstream>
>
>using std::stringstream;
>
>int main()
>{
> stringstream s;
> s << endl;
>
> return 0;
>}
>
>
>Why? How can I solve it?
>If you ask why I use -fvtable-thunks it's because I code in directX!
>
>thanks!
>
>Daniel =C5kerud
A proper one version:
#include <iostream>
#include <sstream>
int main()
{
using std::stringstream;
using std::endl;
stringstream s;
s << endl;
return 0;
}
With GCC 3.2 it doesn't crash but it produces:
C:\c>g++ -fvtable-thunks temp.cpp -o temp
cc1plus.exe: warning: -fvtable-thunks is no longer supported
C:\c>temp
C:\c>
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL: http://run.to/noicys
|
|
From: Louis G. <lg...@ya...> - 2002-10-18 22:13:59
|
Based on the Santiago's note, it seems like wxWindows is a lot of effort to set up correctly. Could someone experienced with wxWindows tell us if it is worth all this effort ? --- Santiago Palmier Campos <San...@yd...> wrote: > Hi *, > > If you don't use Dev-C++ package and you want to use wxWindows sources > 'by > yourself', there are only a few things you must do in order to use > wxWindows... > > Download wxWindows sources (from http://wxwindows.sourceforge.net/), > download also 'extra.zip' file (from http://wxwindows.sourceforge.net/ > also, > but only if you don't use MSYS from http://mingw.sourceforge.net/) and > then, > FIRST OF ALL, please read the file: %WXWIN%/docs/msw/install.txt > > You'll find everything you'll need in order to install it!!! > > Anyway here you have a 'Quick How To'... > > Set a few environment variables: > WXWIN to the path where you decompressed wxWindows sources, > if needed, BISON_SIMPLE & BISON_HAIRY to the complete path to files > (complete/path/to/folder/plus/filename.extension) > > Edit %WXWIN%\src\makeg95.env, search through the options and set them to > the > appropriate values to fit your system needs; I just changed the > following > ones (keep in mind that these are MY values for WinAPI & MinGW > installation > ;o): > MINGW32=1 > MINGW32VERSION=3.2 > YACC=bison > CPU=pentium4 > COMPPATHS = -I"D:/WinAPI/include" -I"D:/MinGW/include" > Perhaps you may want to include these two also: > -I"D:/MinGW/include/sys" -I"D:/MinGW/include/c++/3.2" > > ...And add the appropriate dirs to this one (keeping the original stuff, > of > course): > LDFLAGS = (...original stuff...) -L"D:/MinGW/lib" -L"D:/WinAPI/lib" > > Then cd to %WXWIN%\src\msw and use make -f makefile.g95 clean / make -f > makefile.g95 and wait... That's all!!! > You'll have wxWindows ready to use (there are a few more options to use > the > wxWindows DLL, so read the docs, please...) > > You'll only need to use a makefile like the following one, you only have > to > modify 'OBJECTS' to fit your needs: > # Makefile for wxWindows (Mingw32). > # WXDIR = D:/wxWindows/v2.3.3 > > TARGET=MyApp > OBJECTS = $(TARGET).o MyFrame.o MyOtherStuff.o > > include $(WXDIR)/src/makeprog.g95 > > Hope this helps > Santy > > -----Original Message----- > From: Carlos García del Monte [mailto:cg...@wo...] > Sent: jueves, 17 de octubre de 2002 22:24 > To: ma...@al...; dev-cpp-users-list > Subject: Re: [Dev-C++] WxWINDOW > > > Oh, sorry, I thought you got the package from dev home page, which is a > devpak. > > What I did was this: (having gcc[C:\Dev-Cpp\Bin] in the path) > 1- I unpacked it to C:\wxMSW > 2 - open command.exe > 3 - cd to C:\wxMSW\src > 4 - type make -f makefile.g95 and wait, then I ran over some of the > other > folders seeing that in all of them the result was "make nothing to be > done > for all", so I gave it as built. Well, there were a couple of utilities > about dialog editor or something like that, I cd to there and make etc. > > The bad news are that I never could make it work, except for the > examples > that were with it, which compiled fine, I tried some examples for > Dev-C++ > and I couldn't compile any one. > > The first you must do when making a project is define __GNUWIN32__ and > define UNICODE, and define __WXMSW__ > > And a lot of compiler options, linker parameters... search in the dev > mailing list, I don't remember when they answered me with all those > options > you must provide, more or less six or seven months ago or before. > > > > ------------------------------------------------------- > This sf.net email is sponsored by: viaVerio will pay you up to $1,000 > for > every account that you consolidate with us. > http://ad.doubleclick.net/clk;4749864;7604308;v? > http://www.viaverio.com/consolidator/osdn.cfm > _______________________________________________ > 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 > -------------------------------------------------------------------------------------- > This message and any files transmitted with it are confidential and > intended solely > for the use of the individual or entity to whom they are addressed. No > confidentiality > or privilege is waived or lost by any wrong transmission. > If you have received this message in error, please immediately destroy > it and kindly > notify the sender by reply email. > You must not, directly or indirectly, use, disclose, distribute, print, > or copy any > part of this message if you are not the intended recipient. Opinions, > conclusions and > other information in this message that do not relate to the official > business of > Ydilo Advanced Voice Solutions, S.A. shall be understood as neither > given nor endorsed by it. > -------------------------------------------------------------------------------------- > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > 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 __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com |
|
From: Andy E. <and...@pa...> - 2002-10-18 22:01:38
|
Hi. I'm new to the list , and was wanting to know how to change Dev-cpp = so that it uses the latest version of g++. I'm using Win98.=20 I have cygwin on my PC which uses the latest g++ - version 3.2. , and = just need to know the Cygwin directories that Dev-cpp's "binaries", = "libraries" and "C++ includes" should be repointed to. =20 Many thanks in advance ... :-) |
|
From: <jd...@in...> - 2002-10-18 21:46:44
|
Per Luigi Conti: ho perso il tuo indirizzo di posta elettronica. Per quanto riguarda l'agenda, il problema principale =E8 quello della struttura di puntatori. Non funziona perch=E8 prima dell'utilizzo i punta= tori vanno allocati (p_r->nome=3D(char*)malloc......), poi in alcuni punti utilizzavi un puntatore a p_r che =E8 gi=E0 un puntatore: era voluto? Il programma =E8 abbastanza lungo da studiare; spero vivamente di esserti stato utile. Ciao ) ( [_] Johnny |
|
From: Daniel <zi...@ho...> - 2002-10-18 21:32:10
|
What I mean is:
When that simple program is compiled, under gcc 2.95 with mingw32, windows =
terminates the application somwhere inside the line:
s << endl;
(standard error message, illegal operation or what it is called). In other =
words "segmentation fault".
This is when it's compiled with:
-fvtable-thunks
that flag has to be there for directx to work under gcc. (the COM part i gu=
ess).
Taking away that compiler option makes it run like a charm. It took me quit=
e som time to figure out th eproblem, isolated from a large one :)
The LAST think i removed was the -fvtable-thunks, who could know?
Please someone, tell me how to fix it.=20
Thanks for the answer, I have no clue how to solve it, hope someone does!
Daniel =C5kerud
-----Original Message-----
From: "Daniel Glenfield" <sp...@ho...>
To: zi...@ho..., dev...@li...
Date: Fri, 18 Oct 2002 12:18:26 +0100
Subject: Re: [Dev-C++] -fvtable-thunks and CRASH!
what do you mean by crash? does the machine freeze, or do you get an illega=
l
operation error or what?
>From: Daniel =C5kerud <zi...@ho...>
>To: <dev...@li...>
>Subject: [Dev-C++] -fvtable-thunks and CRASH!
>Date: Wed, 16 Oct 2002 07:45:03 +0200
>
>
>At last I found the problem!
>compiling with -fvtable-thunks is causing this simple program to crash:
>
>
>#include <iostream>
>#include <sstream>
>
>using std::stringstream;
>
>int main()
>{
> stringstream s;
> s << endl;
>
> return 0;
>}
>
>
>Why? How can I solve it?
>If you ask why I use -fvtable-thunks it's because I code in directX!
>
>thanks!
>
>Daniel =C5kerud
>
>
_________________________________________________________________
Broadband?=A0Dial-up? Get reliable MSN Internet Access.
http://resourcecenter.msn.com/access/plans/default.asp
|
|
From: Mark L. W. <ma...@al...> - 2002-10-18 19:03:17
|
Hello all! Sorry to be such a pain regarding WxWINDOWS and Dev-C++, but.... I have been trying to compile some of the sample code included with the WxWINDOWS package. When I try compiling I get the following message (along with other things...) 4 C:\PROGRAM FILES\DEV-C++\include\wx\string.h:170 #error "Please define string case-insensitive compare for your OS/compiler" So... How do I define string case-insensitive compare in Dev-C++??? Thanks in advance... Mark Alpha II Service, Inc. 1312 Epworth Avenue Reynoldsburg, Ohio 43068 614 868-5033 (Voice) 617 812-5838 (Fax) |
|
From: <emi...@ar...> - 2002-10-18 18:07:10
|
- Add multiple archives to projects fails if they are write protected. I have to add them one by one. As I am working with WinCvs it is normal to have files in read-only mode. - Is it possible to manage more than one proyect in dev-cpp, and stablish dependency one on others?. Thanks, Emilio Aguilar-Guti=E9rrez |
|
From: <h.r...@gm...> - 2002-10-18 17:17:07
|
>
>
> I currently have an example of using namespaces
>
> #include <iostream>
>
> int main( int argc, char** argv )
> {
> std::cout << _T("Using standard namespace") << std::endl;
> return 0;
> }
>
>
> could anyone give me another example NOT using cout ? Perhaps with a
> vector?
> The standard namespace is all I have experience with.
>
> Thanks in advance,
> Daniel
>
Hi,
here ist one:
#ifndef PROCABI_H
#define PROCABI_H
#include <vector>
class TProzessfaehigkeit {
typedef std::vector<double>::size_type vec_sz;
std::vector<double> TMW;
bool valid();
double sx; // sum x
double sxx; // sum sqr(x)
public:
[...]
};
#endif
Thats the Header.
In the implementation file you need:
using namespace std;
or better
using std::vector;
and then you can write e.g.:
int TProzessfaehigkeit::calc() {
typedef vector<double>::iterator vec_it;
[...]
}
Horst
--
Horst Rößner
Postf. 1802
52205 Stolberg
ICQ ID #74808448
h.r...@gm...
h.g...@t-...
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!
|
|
From: Daniel G. <sp...@ho...> - 2002-10-18 16:04:19
|
Thanks.
A motorcycle helmet?
>From: "Abhijit Shylanath" <mu...@gm...>
>To: "Daniel Glenfield"
><sp...@ho...>,<dev...@li...>
>Subject: Re: [Dev-C++] Make switch condition an enum
>Date: Fri, 18 Oct 2002 20:11:00 +0530
>
> > I have the following chunk of code, and I've been asked to make the
>switch
> > (SomeError) statement use an enum. Well I was told to "make that an
>enum".
> >
> > How would I create the enum and use it in the switch statement?
> >
> >
> > // Get error strings
> > switch (SomeError)
> > {
> > case ERROR_ONE:
> > DebugOut = _T("Error One!");
> > break;
> >
> > case ERROR_TWO:
> > DebugOut = _T("Error Two!");
> > break;
> >
> > default:
> > DebugOut = _T("Unspecified error!");
> > break;
> > }
>
>Something like this:
>
>enum ErrorType { ERROR_ONE = 1, ERROR_TWO }
>
>and then the same code with SomeError being of type ErrorType rather than
>int (as I assume it is here).
>
>
>For those of you who are interested, a helmet saved my life yesterday,
>after
>a crash at 90 kph.
>
>___________________________________________________________
>
>Abhijit Shylanath
>
>E-mail: mu...@gm... || ibr...@bi...
>Web-site: http://mudeth.tripod.com/
>
>
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>_______________________________________________
>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
_________________________________________________________________
Internet access plans that fit your lifestyle -- join MSN.
http://resourcecenter.msn.com/access/plans/default.asp
|
|
From: Abhijit S. <mu...@gm...> - 2002-10-18 14:42:19
|
> I have the following chunk of code, and I've been asked to make the switch
> (SomeError) statement use an enum. Well I was told to "make that an enum".
>
> How would I create the enum and use it in the switch statement?
>
>
> // Get error strings
> switch (SomeError)
> {
> case ERROR_ONE:
> DebugOut = _T("Error One!");
> break;
>
> case ERROR_TWO:
> DebugOut = _T("Error Two!");
> break;
>
> default:
> DebugOut = _T("Unspecified error!");
> break;
> }
Something like this:
enum ErrorType { ERROR_ONE = 1, ERROR_TWO }
and then the same code with SomeError being of type ErrorType rather than
int (as I assume it is here).
For those of you who are interested, a helmet saved my life yesterday, after
a crash at 90 kph.
___________________________________________________________
Abhijit Shylanath
E-mail: mu...@gm... || ibr...@bi...
Web-site: http://mudeth.tripod.com/
|
|
From: Mark L. W. <ma...@al...> - 2002-10-18 13:43:35
|
Forget my last message.... I found the imagelib.DevPak on the dev resourc= es page. Everything is installed now. Mark -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Mark L. Wise Sent: Friday, October 18, 2002 9:20 AM To: 'dev-cpp-users-list' Subject: RE: [Dev-C++] WxWINDOW Ok, since it SEEMED to be easier I downloaded the DevPak from the dev hom= e page and tried the package install.... I got the message that WxWindows is dependent on "imagelib" to be present. What is imagelib and how do I get it? Mark -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Carlos Garc=EDa del Monte Sent: Thursday, October 17, 2002 1:24 PM To: ma...@al...; dev-cpp-users-list Subject: Re: [Dev-C++] WxWINDOW Oh, sorry, I thought you got the package from dev home page, which is a devpak. What I did was this: (having gcc[C:\Dev-Cpp\Bin] in the path) 1- I unpacked it to C:\wxMSW 2 - open command.exe 3 - cd to C:\wxMSW\src 4 - type make -f makefile.g95 and wait, then I ran over some of the other folders seeing that in all of them the result was "make nothing to be don= e for all", so I gave it as built. Well, there were a couple of utilities about dialog editor or something like that, I cd to there and make etc. The bad news are that I never could make it work, except for the examples that were with it, which compiled fine, I tried some examples for Dev-C++ and = I couldn't compile any one. The first you must do when making a project is define __GNUWIN32__ and define UNICODE, and define __WXMSW__ And a lot of compiler options, linker parameters... search in the dev mailing list, I don't remember when they answered me with all those options you m= ust provide, more or less six or seven months ago or before. ------------------------------------------------------- This sf.net email is sponsored by: viaVerio will pay you up to $1,000 for every account that you consolidate with us. http://ad.doubleclick.net/clk;4749864;7604308;v? http://www.viaverio.com/consolidator/osdn.cfm _______________________________________________ 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 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ 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 |