dev-cpp-users Mailing List for Dev-C++
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
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
|
1
(11) |
2
(8) |
3
(7) |
|
4
(24) |
5
(11) |
6
(5) |
7
(5) |
8
(14) |
9
(20) |
10
(16) |
|
11
(11) |
12
(9) |
13
(14) |
14
(15) |
15
(19) |
16
(25) |
17
(13) |
|
18
(6) |
19
(17) |
20
(10) |
21
(14) |
22
(23) |
23
(10) |
24
|
|
25
|
26
(6) |
27
(32) |
28
(15) |
29
(7) |
30
(13) |
31
(36) |
|
From: Gil <gil...@fr...> - 2004-01-10 23:15:17
|
Oooppsss it's not correct ! Sorry.
Correction:
void freeN(void **ptr) {
free(*ptr);
(*ptr) = NULL;
}
-----Original Message-----
From: Gil [mailto:gil...@fr...]
Sent: dimanche 11 janvier 2004 00:13
To: 'dev...@li...'
Subject: Re: [Dev-C++] malloc and free
free(ptr) cannot put ptr to NULL, simply because you don't pass the
address of ptr.
If you would that all you ptr that are freed, are set to NULL. Define a
fonction that do:
void freeN(void **ptr) {
free(*ptr);
ptr = NULL;
}
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.560 / Virus Database: 352 - Release Date: 08/01/2004
|
|
From: Gil <gil...@fr...> - 2004-01-10 23:12:47
|
free(ptr) cannot put ptr to NULL, simply because you don't pass the
address of ptr.
If you would that all you ptr that are freed, are set to NULL. Define a
fonction that do:
void freeN(void **ptr) {
free(*ptr);
ptr =3D NULL;
}
Date: Sat, 10 Jan 2004 17:43:05 +0100
From: =3D?ISO-8859-1?Q?OROSZI_Bal=3DE1zs?=3D <or...@vp...>
To: dev...@li...
Subject: Re: [Dev-C++] malloc and free
Siva Chandra wrote:
> firstly, thanx Daniel and Oroszi
"Bal=E1zs" - that's my firstname, written at second place (we Hungarians =
are "crazy" people - or maybe everyone else is, except us? :D
> for the descriptive
> replyies. I have always thought free(ptr) would put
> ptr to NULL.
I think you cannot even assume that anywhere. The docs of free() only=20
tell you, that the memory is freed. However, maybe it's a documentation=20
"bug", it doesn't state explicitly that free() is NOT GUARANTEED to put=20
NULL to the deallocated memory (probably because of performance
reasons).
--
Greetings,
Bal=E1zs
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.560 / Virus Database: 352 - Release Date: 08/01/2004
=20
|
|
From: Maya <Esc...@ne...> - 2004-01-10 20:27:29
|
I have downloaded the FLTK using Dev-C++ 's package manager, I ran a test and everything worked fine. However, I am not a GUI developer and never did any GUI development, but recently I have been faced with the need to adding GUI to one of my applications. I have considered wxWindows, FOX and FLTK, but non of them have enough documentation to keep me going, except for wxWindows. The only documentation I have for FLTK is http://www.fltk.org/doc-1.1/, is there any more documentation? Thanks!! -- FYI http://www.astro.umd.edu/~marshall/abbrev.html E-Mail Policy http://www.vif.com/users/escalante/Email_Policy.html * You cannot exercise your power to a point of humiliation. - Jean Chretien * The media's the most powerful entity on earth. They have the power to make the innocent guilty and to make the guilty innocent, and that's power. - Malcom X * "Innocent until proven guilty", no... not in Canada!! |
|
From: Ferdinando F. <s2...@st...> - 2004-01-10 18:57:35
|
> How can I compile "part two" (which has no "main" function), > so that the source code cannot be seen anymore ? You can put "part two" in a separate file, and compile it singularly, then distribute the output file (with .o extension). > Then, how can I compile "part one" source code (which has > the "main" function) with "part two" compiled version? You have to include in your project the .o file selecting "include in link" and deselecting "include in compilation", or equivalently build a library from it (a .a file), call it e.g. libp2.a, and specify "-lp2" in linker options. > How can I make sure it is not possible > to call directly another function of "part two" ? _Really_ you can't, but only who knows the implementation (or is a good and patient reverse engineer) know what's inside an object file. You should put declarations for all functions you would like a programmer to call in a header (.h) and distribute it with your .o or .a file. Bye, Ferdinando. |
|
From: Oliver B. <the...@gm...> - 2004-01-10 17:16:22
|
Per Westermark schrieb: > But you haven't even mentioned what your problem is :-) he wants know how to embed wxwindows into dev-c++ so he can develop apps with it. Look here: http://wiki.wxwindows.org/wiki.pl?Dev-CPP_Setup_Guide I suggest you downloading MSYS. Following the instructions at the wiki compiling your own lib of wxwindows. Try to get some more informations about using ./configure but for the first time ./configure --disable-shared --enable-debug will make you happy. Oh well, just an advice, if compiling wxwindows fails, try the devpak´s instead :-) Regards Olli -- icq: 172670232 homepage: http://www.the-unchallenged.de Aus aktuellem Anlaß: http://schmidt-soll-bleiben.de/ |
|
From: Per W. <pw...@ia...> - 2004-01-10 16:44:01
|
But you haven't even mentioned what your problem is :-) /Per W On Tue, 13 Jan 2004, Subrata Banerjee wrote: > Hi everybody, > Recently i have downloaded the wxWindows 2.4.2 for windows. > i am using Dev-C++ . > But due to my limited knowledge i could not use wxWindows. > It will be great if anybody help me to sort out the problem. > Thanks, > Subrata. > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Perforce Software. > Perforce is the Fast Software Configuration Management System offering > advanced branching capabilities and atomic changes on 50+ platforms. > Free Eval! http://www.perforce.com/perforce/loadprog.html > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: <or...@vp...> - 2004-01-10 16:40:02
|
Siva Chandra wrote: > firstly, thanx Daniel and Oroszi "Balázs" - that's my firstname, written at second place (we Hungarians are "crazy" people - or maybe everyone else is, except us? :D > for the descriptive > replyies. I have always thought free(ptr) would put > ptr to NULL. I think you cannot even assume that anywhere. The docs of free() only tell you, that the memory is freed. However, maybe it's a documentation "bug", it doesn't state explicitly that free() is NOT GUARANTEED to put NULL to the deallocated memory (probably because of performance reasons). -- Greetings, Balázs |
|
From: Subrata B. <s_b...@ju...> - 2004-01-10 16:38:27
|
Hi everybody, Recently i have downloaded the wxWindows 2.4.2 for windows. i am using Dev-C++ . But due to my limited knowledge i could not use wxWindows. It will be great if anybody help me to sort out the problem. Thanks, Subrata. |
|
From: Markku P. <mar...@ko...> - 2004-01-10 12:48:37
|
----- Original Message -----=20 From: "David McKen" <ci...@ya...> To: "Dev-C Mailing List" <dev...@li...> Sent: Saturday, January 10, 2004 8:26 AM Subject: Re: [Dev-C++] News from devpaks repository > Was planning to do both dll+static but I woudn't mind going one way, > I use static myself.=20 >=20 > Do you want TAO? If I was going to do that it was going to be > separate. ACE by itself is kinda big and from what I hear (I don't > use TAO) it is even bigger. Iam not sure, but if its possible to do separate thats good. TAO its much bigger. With bcc55 all ACE-libs are about 6Mbytes, TAO and most of services(Naming/Trading/LifeCycle etc) are about = 70Mbytes. Minimum CORBA configuration should be much smaller. >=20 > How do you comple ACE with Dev-C++? I just use the msys on top of > mingw combination. Works fine for me, Win2k as well. I used Dev-C++ 'Import MS Visual C++ project' to generate basic project = file. It is normal .dev project and when Dev-C++ trys to make that library command file lenght expands too big (<5000bytes?) (ok, its possible to shorten filepaths etc. but that limit value still = exists ;) MSYS and MinGW works fine for me too. -Mp >=20 > --- Markku Puro <mar...@ko...> wrote: > >=20 > > ----- Original Message -----=20 > > From: "David McKen" <ci...@ya...> > > To: "Dev-C Mailing List" <dev...@li...> > > Sent: Friday, January 09, 2004 6:49 AM > > Subject: Re: [Dev-C++] News from devpaks repository > >=20 > >=20 > > > Would anyone be interested in a dev-pak of the ACE Frameworks > > > library? > >=20 > > With DLL libs?=20 > > Does it include TAO (CORBA Middleware)? > >=20 > > DoYou use Dev-Cpp or msys/MinGW? > > With Dev-Cpp I run into "command line too long" error in ACE > > library linking phase. > > I suppose that its a Windows (Win2000) problem but does anybody > > know if there is any way to avoid that? > >=20 > > -Mp > >=20 > > >=20 > > > I use it currently and wouldn't mind maintaing a dev-pak for it. > > The > > > problem is it is quite big. Check out > > > http://www.cs.wustl.edu/~schmidt/ACE.html to see what ACE is. > > >=20 > > : > >=20 > >=20 >=20 >=20 > =3D=3D=3D=3D=3D > Signed=20 > David Mcken >=20 > Life Sucks > Live with it >=20 > __________________________________ > Do you Yahoo!? > Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes > http://hotjobs.sweepstakes.yahoo.com/signingbonus >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: Perforce Software. > Perforce is the Fast Software Configuration Management System offering > advanced branching capabilities and atomic changes on 50+ platforms. > Free Eval! http://www.perforce.com/perforce/loadprog.html > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Per W. <pw...@ia...> - 2004-01-10 12:44:06
|
The code is syntactically completely ok. However, you shouldn't take for
granted that you know what is stored on a specific location, unless you
have a document saying so.
In Windows, you could use IsBadReadPtr(ptr,size)/IsBadWritePtr(ptr,size)
to check if you have read access to the memory. Then you don't have to
hook exceptions or just loose the program because you try some fancy
memory tricks.
/Per W
On Sat, 10 Jan 2004, Daniel Glenfield wrote:
> Seconded. You are printing what's at that memory location, and it seems t=
he
> OS hasn't dealt with the value at that memory location yet.
>
> Here's a question though - can I do something like
> int* SomeMemory =3D 0x001249FF;
> printf("%d\n", SomeMemory);
>
> To print whatever is at any memory location (on the stack/heap in this ca=
se,
> I forget which starts around 0x0012~ in windows). Is this valid (dangerou=
s I
> am sure, but can I do this?).
>
> Daniel
>
>
> >From: OROSZI Bal=E1zs <or...@vp...>
> >To: dev...@li...
> >Subject: Re: [Dev-C++] malloc and free
> >Date: Sat, 10 Jan 2004 11:09:48 +0100
> >
> >Siva Chandra wrote:
> >>I used the follwoing piece of code as a test:
> >>
> >>int *a;
> >>a =3D (int *)malloc(sizeof(int));
> >>*a =3D 5;
> >>free(a);
> >>printf("%d\n", *a);
> >>
> >>This prints 0 in the linux environment and 5 in the
> >>windows environment!!
> >>
> >>does anyone out there know whats happening??
> >>the same happens with new and delete!!
> >
> >You should take the above printf() as "unpredictable". After you free or
> >delete some allocated memory, it is the operating system's task to do
> >whatever it want's with it. It seems, that Linux automatically fills fre=
ed
> >memory with zeros, while Windows does not.
> >
> >Again, the above must be considered as unpredictable, so you shouldn't c=
are
> >about freed memory (variables): they are no longer yours, they were give=
n
> >back to the OS, so you theoretically "don't want" to do anything with th=
em
> >any further.
> >
> >--
> >Greetings,
> > Bal=E1zs
> >
> >
> >
> >-------------------------------------------------------
> >This SF.net email is sponsored by: Perforce Software.
> >Perforce is the Fast Software Configuration Management System offering
> >advanced branching capabilities and atomic changes on 50+ platforms.
> >Free Eval! http://www.perforce.com/perforce/loadprog.html
> >_______________________________________________
> >Dev-cpp-users mailing list
> >Dev...@li...
> >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
> _________________________________________________________________
> Stay in touch with absent friends - get MSN Messenger
> http://www.msn.co.uk/messenger
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Perforce Software.
> Perforce is the Fast Software Configuration Management System offering
> advanced branching capabilities and atomic changes on 50+ platforms.
> Free Eval! http://www.perforce.com/perforce/loadprog.html
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Siva C. <siv...@ya...> - 2004-01-10 10:56:22
|
hello, I am using wxWindows for displaying some cool image manipulations. with a slider a user can vary(increase/decrase) the size of an artifact in an image. I used wxClientDc and wxMemoryDC for updating the image and blitting evry time the slider position changes. all this works fine but after some slider scrolls the display is stuck: meaning it stops to update! even the wxIdleEvent function is also unable to update the display. but otherwise the other functionalities work fine. can some give me an idea as to how to work around it? TIA, ===== Siva Chandra B-Tech, Electrical Engineering, IIT Madras. Currently pursuing MS by research at IIIT, Hyderabad visit www.geocities.com/sivachandra_br __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus |
|
From: Siva C. <siv...@ya...> - 2004-01-10 10:45:57
|
firstly, thanx Daniel and Oroszi for the descriptive
replyies. I have always thought free(ptr) would put
ptr to NULL.
> Here's a question though - can I do something like
> int* SomeMemory = 0x001249FF;
> printf("%d\n", SomeMemory);
>
> To print whatever is at any memory location (on the
> stack/heap in this case,
> I forget which starts around 0x0012~ in windows). Is
> this valid (dangerous I
> am sure, but can I do this?).
I have typed that bit of code and found that it is a
segementation fault(in Win2000)!
My explanation would be that u r trying to access what
is not meant for or what u said u would not access.
i.e the said memory location has neither been
allocated by new or malloc, nor has been declared
anywhere in the code.
regards,
Siva Chandra
__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus
|
|
From: Daniel G. <sp...@ho...> - 2004-01-10 10:24:36
|
Seconded. You are printing what's at that memory location, and it seems the
OS hasn't dealt with the value at that memory location yet.
Here's a question though - can I do something like
int* SomeMemory = 0x001249FF;
printf("%d\n", SomeMemory);
To print whatever is at any memory location (on the stack/heap in this case,
I forget which starts around 0x0012~ in windows). Is this valid (dangerous I
am sure, but can I do this?).
Daniel
>From: OROSZI Balázs <or...@vp...>
>To: dev...@li...
>Subject: Re: [Dev-C++] malloc and free
>Date: Sat, 10 Jan 2004 11:09:48 +0100
>
>Siva Chandra wrote:
>>I used the follwoing piece of code as a test:
>>
>>int *a;
>>a = (int *)malloc(sizeof(int));
>>*a = 5;
>>free(a);
>>printf("%d\n", *a);
>>
>>This prints 0 in the linux environment and 5 in the
>>windows environment!!
>>
>>does anyone out there know whats happening??
>>the same happens with new and delete!!
>
>You should take the above printf() as "unpredictable". After you free or
>delete some allocated memory, it is the operating system's task to do
>whatever it want's with it. It seems, that Linux automatically fills freed
>memory with zeros, while Windows does not.
>
>Again, the above must be considered as unpredictable, so you shouldn't care
>about freed memory (variables): they are no longer yours, they were given
>back to the OS, so you theoretically "don't want" to do anything with them
>any further.
>
>--
>Greetings,
> Balázs
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: Perforce Software.
>Perforce is the Fast Software Configuration Management System offering
>advanced branching capabilities and atomic changes on 50+ platforms.
>Free Eval! http://www.perforce.com/perforce/loadprog.html
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
Stay in touch with absent friends - get MSN Messenger
http://www.msn.co.uk/messenger
|
|
From: <or...@vp...> - 2004-01-10 10:06:58
|
Siva Chandra wrote:
> I used the follwoing piece of code as a test:
>
> int *a;
> a = (int *)malloc(sizeof(int));
> *a = 5;
> free(a);
> printf("%d\n", *a);
>
> This prints 0 in the linux environment and 5 in the
> windows environment!!
>
> does anyone out there know whats happening??
> the same happens with new and delete!!
You should take the above printf() as "unpredictable". After you free or
delete some allocated memory, it is the operating system's task to do
whatever it want's with it. It seems, that Linux automatically fills
freed memory with zeros, while Windows does not.
Again, the above must be considered as unpredictable, so you shouldn't
care about freed memory (variables): they are no longer yours, they were
given back to the OS, so you theoretically "don't want" to do anything
with them any further.
--
Greetings,
Balázs
|
|
From: Siva C. <siv...@ya...> - 2004-01-10 08:15:46
|
hello,
I used g++ in linux. I have recently shifted to
windows and am using dev-cpp 4.9.8.0 for my win32
projects. there is some thing strange(or is it?) i
have found.
I used the follwoing piece of code as a test:
int *a;
a = (int *)malloc(sizeof(int));
*a = 5;
free(a);
printf("%d\n", *a);
This prints 0 in the linux environment and 5 in the
windows environment!!
does anyone out there know whats happening??
the same happens with new and delete!!
TIA,
=====
Siva Chandra
B-Tech, Electrical Engineering,
IIT Madras.
Currently pursuing MS by research at IIIT, Hyderabad
visit www.geocities.com/sivachandra_br
__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus
|
|
From: David M. <ci...@ya...> - 2004-01-10 06:26:19
|
Was planning to do both dll+static but I woudn't mind going one way, I use static myself. Do you want TAO? If I was going to do that it was going to be separate. ACE by itself is kinda big and from what I hear (I don't use TAO) it is even bigger. How do you comple ACE with Dev-C++? I just use the msys on top of mingw combination. Works fine for me, Win2k as well. --- Markku Puro <mar...@ko...> wrote: > > ----- Original Message ----- > From: "David McKen" <ci...@ya...> > To: "Dev-C Mailing List" <dev...@li...> > Sent: Friday, January 09, 2004 6:49 AM > Subject: Re: [Dev-C++] News from devpaks repository > > > > Would anyone be interested in a dev-pak of the ACE Frameworks > > library? > > With DLL libs? > Does it include TAO (CORBA Middleware)? > > DoYou use Dev-Cpp or msys/MinGW? > With Dev-Cpp I run into "command line too long" error in ACE > library linking phase. > I suppose that its a Windows (Win2000) problem but does anybody > know if there is any way to avoid that? > > -Mp > > > > > I use it currently and wouldn't mind maintaing a dev-pak for it. > The > > problem is it is quite big. Check out > > http://www.cs.wustl.edu/~schmidt/ACE.html to see what ACE is. > > > : > > ===== Signed David Mcken Life Sucks Live with it __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus |