dev-cpp-users Mailing List for Dev-C++ (Page 366)
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...> - 2003-06-17 21:33:59
|
Greets, Shane. > foobar**24 I don't know about FreeBSD, but there's a really good free E-book on Linux programming: http://www.advancedlinuxprogramming.com/ Chapters 3, 4 and 5 should be of interest to you - they're about processes, threads and interprocess communication respectively. The other chapters are pretty useful and interesting in their own right. HTH. ________________________________________ Abhijit Shylanath http://mudeth.tripod.com/ |
|
From: Shane B. <ast...@te...> - 2003-06-17 19:01:04
|
Hello,
I am new to this list, but I am a long time C/C++ programmer. I =
have recently stepped into some new territory, with regards to threaded =
applications. I have had too success with general interest mailing =
lists, so I hope this will work out too.
I am writing an application wherein over 100,000 records must be =
written between a few tables in a MySQL database. Originally, the =
transactions were direct to the database. The delay on the process was =
too intense... I have opted for a solution which involves only a =
momemtary relay while the process writes a dump file, which will be then =
imported into the database after. To do so, I wanted to use a thread. =
I am aware of fork() and how it works, but I am looking for more =
specific information.
Once the file is created, I will fork a thread, it will verify the =
file exists, then open a connection to the database, dump the file all =
at once, while not preventing processing of the original parent thread. =
My question is how to determine when a child thread has finished? If I =
fork the thread, and get a 0 return, the thread is running, how do I =
know when it is done? More precisely, I want to make sure that while the =
thread is running, the other thread isn't shutdown until the child =
thread is finished. Worst case scenario, it crashes while both threads =
are running, but the original dump file being imported will still remain =
to reimport the database.
When forking a separate thread, do you need to create something =
similar to a message pump to sit in a loop and process messages back =
from the thread? If so, that would require the existing process be run =
as a thread after it's started.
I am sort of confused on how to deal with this issue regarding =
thread-safe programming. I would appreciate any advice, or specific =
reference material that would be informative.
Thank you,
-Shane |
|
From: Ricardo A. <ri...@te...> - 2003-06-17 08:53:46
|
Ioannis Vranos escribió:
> An unusual question. Is the text of this message seen properly to your email
> clients? I am using Greek encoding and I want to check out.
I can see it properly too.
Using Mozilla Mail.... hey Mozilla has changed my encoding to greek by
itself although I use Occidental ISO 8859-ISO Maybe that´s the reason I
can see it correctly :)
--
---------------------------------------------------
Ricardo Amores Hernández
ICQ: 19463735
MSN: zheo_ (at) hotmail (dot) es
---------------------------------------------------
|
|
From: <Sen...@De...> - 2003-06-17 04:44:07
|
-----Original Message----- From: Ioannis Vranos [mailto:iv...@em...] Sent: Tuesday, June 17, 2003 12:13 AM To: Dev-C++ Mailing List Subject: [Dev-C++] My text Yes it can be seen by me. You had written.. An unusual question. Is the text of this message seen properly to your email clients? I am using Greek encoding and I want to check out. ///Space and your signature. RIght?? Check it out yourself in the reply >An unusual question. Is the text of this message seen properly to your email >clients? I am using Greek encoding and I want to check out. >Thanks in advance, >Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net ------------------------------------------------------- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click here: http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ 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: <Sen...@De...> - 2003-06-17 04:07:07
|
-----Original Message-----
From: Aurea Janine Loveless [mailto:jan...@ho...]
Sent: Monday, June 16, 2003 11:39 PM
To: dev...@li...
Subject: [Dev-C++] char Array - DevC++ beginner...
I am trying to create an array type char in Dev++ like this:
Greetings.
#include <iostream.h>
#include <stdlib.h>
#include <string>
int main()
{
char Name[];
[OR, Senthil] Array Size should be declared to compiler when not
intialized. For eg, you can use char Name[] = { 'J'}; but not char name[];
Name[1]="J";
The const char * error refers herein where there is confusion to the
compiler if it has to use address in the string or as an array.
cout << sizeof(Name);
Cout undeclared error occurs coz you havent used using namespace std;
system("PAUSE");
return 0;
}
and DevC++ is telling me that the array size is missing and that assig to
"char" from "const char" lacks a cast.
Anyone could please help me with what I am doing wrong?
[OR, Senthil]
This should work fine now.
#include <iostream>
#include <stdlib.h>
#include <string>
int main()
{
using namespace std;
char Name[1];
Name[0]='J';
cout<<sizeof(Name);
system("PAUSE");
return 0;
}
Thanks.
Janine
Cheers!
Senthil
_____
Add photos to your messages with MSN 8.
<http://g.msn.com/8HMEENUS/2749??PS=> Get 2 months FREE*.
------------------------------------------------------- This SF.NET email is
sponsored by: eBay Great deals on office technology -- on eBay now! Click
here: http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________ 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: <a_g...@ya...> - 2003-06-16 19:51:06
|
another thing. it should be
Name[1]='J';
and not
Name[1]="J";
cause "J" is a string by itself. It should be 'J' which is treated as a character constant.
Abhijit Shylanath <mu...@gm...> wrote:
Greets, Janine.
> char Name[];
> Name[1]="J";
When creating an array, you need to specify the size. An exception is when
you're specifying the array elements alongside (or when you're allocating
memory dynamically, but that would be called a pointer, not an array).
Also, a char is represented using single-quotes. So "J" is wrong. 'J' is
right. When you use double-quotes, the compiler sees it as an array of
chars, terminated by a null chracter (\0).
So,
"foo"
is the same as
{'f', 'o', 'o', '\0' }
or
{'f', 'o', 'o', 0 }
In the above program, use
char Name[25]; // Some arbitrary size, otherwise, do char Name[] = "foo";
Name[1] = "J";
and it should work. One more thing - arrays begin at zero. I suspect that
here, you're trying to access the first element, in which case, it would be
Name[0].
HTH.
________________________________________
Abhijit Shylanath
http://mudeth.tripod.com/
-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
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
Thanx and Regards
Avik Ghose
SMS using the Yahoo! Messenger;Download latest version. |
|
From: Per W. <pw...@ia...> - 2003-06-16 19:50:12
|
Yes, it looks ok on my machine. I'm using pine on a Linux, with iso 8859-1 I wouldn't expect any problems until you start using any 'strange' characters or symbols. /Per W On Mon, 16 Jun 2003, Ioannis Vranos wrote: > An unusual question. Is the text of this message seen properly to your email > clients? I am using Greek encoding and I want to check out. > > > > > > > Thanks in advance, > > Ioannis Vranos > > * Programming pages: http://www.noicys.freeurl.com > * Alternative URL 1: http://run.to/noicys > * Alternative URL 2: http://www.noicys.cjb.net > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: eBay > Great deals on office technology -- on eBay now! Click here: > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > _______________________________________________ > 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. <iv...@em...> - 2003-06-16 18:43:04
|
An unusual question. Is the text of this message seen properly to your email clients? I am using Greek encoding and I want to check out. Thanks in advance, Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net |
|
From: Abhijit S. <mu...@gm...> - 2003-06-16 18:39:54
|
Greets, Janine.
> char Name[];
> Name[1]="J";
When creating an array, you need to specify the size. An exception is when
you're specifying the array elements alongside (or when you're allocating
memory dynamically, but that would be called a pointer, not an array).
Also, a char is represented using single-quotes. So "J" is wrong. 'J' is
right. When you use double-quotes, the compiler sees it as an array of
chars, terminated by a null chracter (\0).
So,
"foo"
is the same as
{'f', 'o', 'o', '\0' }
or
{'f', 'o', 'o', 0 }
In the above program, use
char Name[25]; // Some arbitrary size, otherwise, do char Name[] = "foo";
Name[1] = "J";
and it should work. One more thing - arrays begin at zero. I suspect that
here, you're trying to access the first element, in which case, it would be
Name[0].
HTH.
________________________________________
Abhijit Shylanath
http://mudeth.tripod.com/
|
|
From: Denise N.R. A. <de...@dg...> - 2003-06-16 18:31:17
|
> Hello everyone! >=20 > I=B4m programming with DEV C++ and I need to convert a tiff image to a = jpeg > image and to load it to a mysql data base. I've downloaded the imagelib but I don't know how to use it. Can someone help me in finding any documentation and/or examples? Thanks in advance. Denise Azevedo --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.489 / Virus Database: 288 - Release Date: 10/6/2003 =20 |
|
From: Aurea J. L. <jan...@ho...> - 2003-06-16 18:08:37
|
<html><div style='background-color:'><DIV>
<P>I am trying to create an array type char in Dev++ like this:</P>
<P><EM><FONT size=2>#include <iostream.h><BR>#include <stdlib.h><BR>#include <string></FONT></EM></P>
<P><EM><FONT size=2>int main()<BR>{<BR>char Name[];</FONT></EM></P>
<P><EM><FONT size=2>Name[1]="J";</FONT></EM></P>
<P><EM><FONT size=2>cout << sizeof(Name);</FONT></EM></P>
<P><EM><FONT size=2>system("PAUSE");<BR>return 0;<BR>}</FONT></EM></P>
<P>and DevC++ is telling me that <EM><FONT size=2>the array size is missing </FONT></EM>and that <FONT size=2><EM>assig to "char" from "const char" lacks a cast</EM>.</FONT></P>
<P>Anyone could please help me with what I am doing wrong?</P>
<P>Thanks.<BR></P>
<P>Janine</P></DIV></div><br clear=all><hr>Add photos to your messages with <a href="http://g.msn.com/8HMEENUS/2749??PS=">MSN 8. </a> Get 2 months FREE*.</html>
|
|
From: Vlada D. <dj...@im...> - 2003-06-16 12:30:20
|
Thanks for help. Good to know that. ----- Original Message ----- From: "Ioannis Vranos" <iv...@em...> To: "'DevC++ help'" <dev...@li...> Sent: Monday, June 16, 2003 1:09 PM Subject: RE: [Dev-C++] #pragma directive > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...] On Behalf > > Of Vlada Djurovic > > Sent: Monday, June 16, 2003 11:52 AM > > To: 'DevC++ help' > > Subject: [Dev-C++] #pragma directive > > > > > > In the book I'm currently reading, #pragma once directive is > > used a lot to > > make sure that no header files are included more than once. > > When I compile > > the program, I get warnings " #pragma once is obsolete". The book is > > published this year, so I don't think it's too old. > > I found another way for doing the same thing in Bruce Eckel's > > "Thinking in > > C++", like this: > > > #pragmas are compiler dependend commands which are not portable. The > standard says that when a #pragma directive is not recognised by the > compiler it is ignored. So #pragma once is a directive recognised by MS > compilers to include the header file only once. > > > On the other hand the inclusion guard mechanism you are using below is > portable and is what you should use (if you want your code to be portable). > > > > > > > #ifndef FLAG > > #define FLAG > > #includefoo.h ///include needed headers > > ------------- > > #endif > > > > Which way is better in your opinion? Or do you recommend > > something else? > > Thanks. > > ------------ > > Vlada > > > > > > Ioannis Vranos > > * Programming pages: http://www.noicys.freeurl.com > * Alternative URL 1: http://run.to/noicys > * Alternative URL 2: http://www.noicys.cjb.net > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: eBay > Great deals on office technology -- on eBay now! Click here: > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > _______________________________________________ > 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. <iv...@em...> - 2003-06-16 11:09:22
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Vlada Djurovic > Sent: Monday, June 16, 2003 11:52 AM > To: 'DevC++ help' > Subject: [Dev-C++] #pragma directive > > > In the book I'm currently reading, #pragma once directive is > used a lot to > make sure that no header files are included more than once. > When I compile > the program, I get warnings " #pragma once is obsolete". The book is > published this year, so I don't think it's too old. > I found another way for doing the same thing in Bruce Eckel's > "Thinking in > C++", like this: #pragmas are compiler dependend commands which are not portable. The standard says that when a #pragma directive is not recognised by the compiler it is ignored. So #pragma once is a directive recognised by MS compilers to include the header file only once. On the other hand the inclusion guard mechanism you are using below is portable and is what you should use (if you want your code to be portable). > > #ifndef FLAG > #define FLAG > #includefoo.h ///include needed headers > ------------- > #endif > > Which way is better in your opinion? Or do you recommend > something else? > Thanks. > ------------ > Vlada Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net |
|
From: Vlada D. <dj...@im...> - 2003-06-16 08:53:20
|
In the book I'm currently reading, #pragma once directive is used a lot to make sure that no header files are included more than once. When I compile the program, I get warnings " #pragma once is obsolete". The book is published this year, so I don't think it's too old. I found another way for doing the same thing in Bruce Eckel's "Thinking in C++", like this: #ifndef FLAG #define FLAG #includefoo.h ///include needed headers ------------- #endif Which way is better in your opinion? Or do you recommend something else? Thanks. ------------ Vlada |
|
From: <or...@vp...> - 2003-06-16 06:58:12
|
dawood wrote:
> why the code below is giving me numbers in hex in both the case.
>
>
> *#include <iostream.h>
> #include <stdlib.h>
>
> int main()
> {
> for(char ch = 0;ch<=125;ch++)
> cout<<"int value of char "<<ch<<" in decimal is "<<int(ch)<<"
> and in hexadeciamal is "<<hex<<int(ch)<<'\n';
>
> return 0;
> }
>
>
> Can anyone explain me*
Try putting "dec" before the second output, just like "hex" at the end,
like:
/*...*/ <<dec<<int(ch)<< /*...*/
--
Regards,
Balázs
|
|
From: dawood <da...@ku...> - 2003-06-16 03:16:30
|
why the code below is giving me numbers in hex in both the case.
#include <iostream.h>
#include <stdlib.h>
int main()
{
for(char ch = 0;ch<=125;ch++)
cout<<"int value of char "<<ch<<" in decimal is "<<int(ch)<<" and
in hexadeciamal is "<<hex<<int(ch)<<'\n';
return 0;
}
Can anyone explain me
|
|
From: andreithomaz <and...@bo...> - 2003-06-15 22:27:44
|
Hello list, I am working in a screensaver that draws mazes. I am using an algorithm from JavaScripts.com. For testing purposes, I am making first a normal winapp; when it is working ok, i will make de screensaver. But I am having some problems. The algorithm works in JavaScript, but the c++ version I wrote doesn't. And I cann't use the debug with it; when I try start the debug, I get "frames invalid" message in the Debug Output. If somebody could help me, I would thank you a lot. The project can be downloaded from http://www.civitas.lelic.ufrgs.br/andrei/maze_test.zip thank you for your time, andrei -- Andrei R. Thomaz and...@bo... fone: 92067436 |
|
From: Michel W. <mic...@fr...> - 2003-06-15 18:09:01
|
unknown software exception at location 0x0040cd6d. do you use windows xp ? could you try to use the lastest mingw version ? bye -- La gravitation n'est pas responsable des gens qui tombent amoureux. |
|
From: Michel W. <mic...@fr...> - 2003-06-15 18:07:07
|
> I am using your Dev-CPP wxWindows-Devpack and am quite happy about it.
> Yesterday the new wxWindows 2.4.1 release came fresh out of the CVS
> repository - do you think there will be an update of your Devpack soon?
>
I will try but :
1) I am not currently using windows
2) My collegues are satisfied by wxwindows 2.4.0
changes between 2.4.0 and 2.4.1=20
(2.4.0
-----
wxMSW:
- fixed loss of client data in wxChoice::SetString()
All:
- Improved contrib/utils/convertrc parsing (David J. Cooke)
- Fixed handling of URLs and filenames in wxFileSystem
- Implemented alignment for wxGrid bool editor and renderer
)
3) most important I will be in hollydays soon, and I thnik will not=
=20
take any=20
laptop.
> Another question - can I help im some ways?=20
It could be interresing to import wxwindows samples and convert then in=20
dev-c++ projects...
>I have a lot of free webspace
> too on my German homepage, according to my name
> http://www.michaelwohlers.de
>
I have currently enought space, (30 Mb) but it could be interresing to have=
=20
some mirror what is the medium download speed from my web page in germany ?
> I'd be pleased to hear from you soon...
>
> Best regards
best regards also.
=2D-=20
Il est vrai que, parfois, les militaires s'exag=E9rant l'impuissance
relative de l'intelligence, n=E9gligent de s'en servir.
Charles de Gaulle.
=2D-=20
Les jolies filles ne sont pas toujours heureuses=20
et les gar=E7ons intelligents sont rarement beaux.
Proverbe Chinois
|
|
From: Per W. <pw...@ia...> - 2003-06-15 10:21:50
|
There is no problem running with a stripped binary. Just make sure that you know what binary you have sent out to the customers - and what code you built it from. Then you should be able to build a corresponding binary again with debug info, in case you need to process a core dump from a customer. However, it is often better to leave the debug during make, and first when you are about to distribute the binary to a customer perform stripping of the binary. Then you might keep both a stripped and a non-stripped copy. This is important if the source contains __DATE__ or similar that makes it impossible to build the source multiple times and ginerate an identical executable. /Per W On Sun, 15 Jun 2003, [ISO-8859-15] Alexander Ebersp=E4cher wrote: > Hi, > > i've got a short question: > > Including the linker option -s reduces the size of my dll from 130 KB to > only 76 KB. > > The GCC help says -s "removes all symbol table and relocation information > from the executable." > > I'm not sure what this actually means. Is it _always_ safe to do so? > Will there be any disadvantages? > > I know that i won't be able to generate debugging information while i > use -s, but i'm more thinking of the final release that won't have > debugging information it. > > Thanks, Alex > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: eBay > Great deals on office technology -- on eBay now! Click here: > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > _______________________________________________ > 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: <al...@ne...> - 2003-06-15 10:11:13
|
Hi, i've got a short question: Including the linker option -s reduces the size of my dll from 130 KB to only 76 KB. The GCC help says -s "removes all symbol table and relocation information from the executable." I'm not sure what this actually means. Is it _always_ safe to do so? Will there be any disadvantages? I know that i won't be able to generate debugging information while i use -s, but i'm more thinking of the final release that won't have debugging information it. Thanks, Alex |
|
From: Goran <go...@de...> - 2003-06-14 22:31:31
|
Does anybody know for some nice crossplatform "RichText" printing library. I need to print small report from selected data in my app. I am using GTK for GUI, so I would like some printing-only library. It needs to work on Linux (with CUPS) and on Windows. Thanx in advance, Goran Rakic |
|
From: escofet <es...@fa...> - 2003-06-14 18:42:56
|
Hi: I'd like to know hot to truncate a file using fstream. Thanks in advanced, Escofet |
|
From: Brian A. <bri...@gm...> - 2003-06-13 19:43:28
|
I don't think I have a dll build, I didn't want it, if I do, but, I tried it just in case...I got this :: C:/Dev-Cpp/lib/libwxmsw250d.a(app.o)(.text+0x2874): In function `WinMain': c:/wx/mswd/../src/msw/main.cpp:85: multiple definition of `WinMain@16' main.o(.text+0xb4):main.cpp: first defined here main.o(.text+0x24):main.cpp: undefined reference to `_imp___ZN9wxAppBase17CheckBuildOptionsERK14wxBuildOptions' main.o(.text+0xac):main.cpp: undefined reference to `_imp__wxTheApp' So I think that is not my problem... I tried your other suggestions, and they yeilded the same results I was getting previously. I'll keep playing with the compiler options and linker options, and see where I get. Any other suggestions (and thank you very much, by the way...) Brian OROSZI Balázs wrote: > Brian Ackermann wrote: > >> Ok, now I've made an attempt to 'plug-in' my new build to my Dev-Cpp >> install...and I get this... >> ========================================= >> Executing make clean >> rm -f minimal.o minimal.exe >> >> g++.exe -c minimal.cpp -o minimal.o -I"C:/Dev-Cpp/include/c++" >> -I"C:/Dev-Cpp/include/c++/mingw32" >> -I"C:/Dev-Cpp/include/c++/backward" -I"C:/Dev-Cpp/include" -fno-rtti >> -fno-exceptions -fno-pcc-struct-return -fstrict-aliasing -Wall >> -fvtable-thunks -D__WXMSW__ -D__GNUWIN32__ -DWINVER=0x400 -D__WIN95__ >> -DSTRICT -D__WXDEBUG__ -fexpensive-optimizations -O1 >> >> cc1plus.exe: warning: -fvtable-thunks is no longer supported > > > Remove "-fvtable-thunks" from compiler options. > Also, where did you get the -D flags? Did you dig it out from the > makefiles of wxWindows? I did it once, and these are the flags, that I > could obtain. I use them and it works: > -D_X86_ -DWIN32 -D_WIN32 -DWINVER=0x0400 -D__WIN95__ -D__GNUWIN32__ > -D__WIN32__ -DSTRICT -DHAVE_W32API_H -D__WXMSW__ -D__WINDOWS__ > > Of course, use -D__WXDEBUG__ in your case, as you use the debug build. > Note, that I also experimented with -D flags, to don't have too much > of them, but still compile: my result was the same as yours, a crash > (I thought: if it compiles, it works). So I suggest you to specify all > the flags above. > >> g++.exe minimal.o -o "minimal.exe" -L"C:/Dev-Cpp/lib" -mwindows >> -lwxmsw250d -lcomdlg32 -luser32 -lgdi32 -lole32 -lwsock32 -lcomctl32 >> -lctl3d32 -lgcc -lstdc++ -lshell32 -loleaut32 -ladvapi32 -luuid >> -Lc:/wx/lib > > > Hmmm... -lwxmsw250d > Is it a DLL build? Because in that case, you also need to add one more > flag for the compiler: > -DWXUSINGDLL > > Actually, try this first, and if the result is still a crash, then add > all flags above. > > I hope I could help. Tell me, if you succeed. > -- > Greetings, > Balázs > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: eBay > Great deals on office technology -- on eBay now! Click here: > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > _______________________________________________ > 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: <or...@vp...> - 2003-06-13 18:50:02
|
Brian Ackermann wrote: > Ok, now I've made an attempt to 'plug-in' my new build to my Dev-Cpp > install...and I get this... > ========================================= > Executing make clean > rm -f minimal.o minimal.exe > > g++.exe -c minimal.cpp -o minimal.o -I"C:/Dev-Cpp/include/c++" > -I"C:/Dev-Cpp/include/c++/mingw32" -I"C:/Dev-Cpp/include/c++/backward" > -I"C:/Dev-Cpp/include" -fno-rtti -fno-exceptions -fno-pcc-struct-return > -fstrict-aliasing -Wall -fvtable-thunks -D__WXMSW__ -D__GNUWIN32__ > -DWINVER=0x400 -D__WIN95__ -DSTRICT -D__WXDEBUG__ > -fexpensive-optimizations -O1 > > cc1plus.exe: warning: -fvtable-thunks is no longer supported Remove "-fvtable-thunks" from compiler options. Also, where did you get the -D flags? Did you dig it out from the makefiles of wxWindows? I did it once, and these are the flags, that I could obtain. I use them and it works: -D_X86_ -DWIN32 -D_WIN32 -DWINVER=0x0400 -D__WIN95__ -D__GNUWIN32__ -D__WIN32__ -DSTRICT -DHAVE_W32API_H -D__WXMSW__ -D__WINDOWS__ Of course, use -D__WXDEBUG__ in your case, as you use the debug build. Note, that I also experimented with -D flags, to don't have too much of them, but still compile: my result was the same as yours, a crash (I thought: if it compiles, it works). So I suggest you to specify all the flags above. > g++.exe minimal.o -o "minimal.exe" -L"C:/Dev-Cpp/lib" -mwindows > -lwxmsw250d -lcomdlg32 -luser32 -lgdi32 -lole32 -lwsock32 -lcomctl32 > -lctl3d32 -lgcc -lstdc++ -lshell32 -loleaut32 -ladvapi32 -luuid -Lc:/wx/lib Hmmm... -lwxmsw250d Is it a DLL build? Because in that case, you also need to add one more flag for the compiler: -DWXUSINGDLL Actually, try this first, and if the result is still a crash, then add all flags above. I hope I could help. Tell me, if you succeed. -- Greetings, Balázs |