dev-cpp-users Mailing List for Dev-C++ (Page 168)
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: Per W. <pw...@ia...> - 2004-11-12 16:48:53
|
Use std::ostringstream as described in my first mail. /Per W On Fri, 12 Nov 2004, Guillermo Gutierrez wrote: > Thanks you everyone who responded so quickly, looks like sprintf() is the best/easiest way to go. > > Question: has anyone ever tried this with the 'string' class (#include <string>)? > > -----Original Message----- > From: Per Westermark [mailto:pw...@ia...] > Sent: Friday, November 12, 2004 8:31 AM > To: Cary Haynie > Cc: Guillermo Gutierrez; dev...@li... > Subject: Re: [Dev-C++] convert 'int' to 'char'/'str' > > > Note that itoa() isn't defined in ANSI-C, so it isn't always available. > > Same with ecvt(), fcvt(), gcvt() for floating point numbers. > > In most situations, sprintf() is a really excellent alternative. Since the > numbers have limited digit count, there shouldn't be a problem with buffer > overflow. > > /Per W > > On Fri, 12 Nov 2004, Cary Haynie wrote: > > > itoa() look in stdlib.h > > > > > > On Fri, 12 Nov 2004 07:54:11 -0800, Guillermo Gutierrez > > <ggu...@ma...> wrote: > > > > > > > > > Is there an easy to convert a numeric value (int, double, etc...) into a > > > char or string? > > > something that would work similar to Delphi's 'IntToStr()' function? > > > > > > Guillermo Gutierrez > > > Market Scan Information Systems > > > Software Q.A. Supervisor > > > (818) 575-2000 x2427 > > > ggu...@ma... > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: > > Sybase ASE Linux Express Edition - download now for FREE > > LinuxWorld Reader's Choice Award Winner for best database on Linux. > > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > > _______________________________________________ > > 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: Guillermo G. <ggu...@ma...> - 2004-11-12 16:33:28
|
Thanks you everyone who responded so quickly, looks like sprintf() is = the best/easiest way to go. Question: has anyone ever tried this with the 'string' class (#include = <string>)? -----Original Message----- From: Per Westermark [mailto:pw...@ia...] Sent: Friday, November 12, 2004 8:31 AM To: Cary Haynie Cc: Guillermo Gutierrez; dev...@li... Subject: Re: [Dev-C++] convert 'int' to 'char'/'str' Note that itoa() isn't defined in ANSI-C, so it isn't always available. Same with ecvt(), fcvt(), gcvt() for floating point numbers. In most situations, sprintf() is a really excellent alternative. Since = the numbers have limited digit count, there shouldn't be a problem with = buffer overflow. /Per W On Fri, 12 Nov 2004, Cary Haynie wrote: > itoa() look in stdlib.h > > > On Fri, 12 Nov 2004 07:54:11 -0800, Guillermo Gutierrez > <ggu...@ma...> wrote: > > > > > > Is there an easy to convert a numeric value (int, double, etc...) = into a > > char or string? > > something that would work similar to Delphi's 'IntToStr()' function? > > > > Guillermo Gutierrez > > Market Scan Information Systems > > Software Q.A. Supervisor > > (818) 575-2000 x2427 > > ggu...@ma... > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=3D5588&alloc_id=3D12065&op=3Dclick > _______________________________________________ > 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-11-12 16:31:03
|
Note that itoa() isn't defined in ANSI-C, so it isn't always available. Same with ecvt(), fcvt(), gcvt() for floating point numbers. In most situations, sprintf() is a really excellent alternative. Since the numbers have limited digit count, there shouldn't be a problem with buffer overflow. /Per W On Fri, 12 Nov 2004, Cary Haynie wrote: > itoa() look in stdlib.h > > > On Fri, 12 Nov 2004 07:54:11 -0800, Guillermo Gutierrez > <ggu...@ma...> wrote: > > > > > > Is there an easy to convert a numeric value (int, double, etc...) into a > > char or string? > > something that would work similar to Delphi's 'IntToStr()' function? > > > > Guillermo Gutierrez > > Market Scan Information Systems > > Software Q.A. Supervisor > > (818) 575-2000 x2427 > > ggu...@ma... > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > _______________________________________________ > 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-11-12 16:26:14
|
Most common methods: int my_int = 10; double my_double = 1.15; // Original C code char buf[100]; sprintf(buf,"%u %g",my_int,my_double); // Old C++ code (deprecated) #include <strstream> ostrstream s; // deprecated s << my_int << " " << my_double; string str = s.str(); // New C++ code #include <sstream> std::ostringstream s; s << my_int << " " << my_double; std::string str = s.str(); /Per W On Fri, 12 Nov 2004, Guillermo Gutierrez wrote: > Is there an easy to convert a numeric value (int, double, etc...) into a char or string? > something that would work similar to Delphi's 'IntToStr()' function? > > Guillermo Gutierrez > Market Scan Information Systems > Software Q.A. Supervisor > (818) 575-2000 x2427 > ggu...@ma... > > |
|
From: Cary H. <xen...@gm...> - 2004-11-12 16:18:05
|
itoa() look in stdlib.h On Fri, 12 Nov 2004 07:54:11 -0800, Guillermo Gutierrez <ggu...@ma...> wrote: > > > Is there an easy to convert a numeric value (int, double, etc...) into a > char or string? > something that would work similar to Delphi's 'IntToStr()' function? > > Guillermo Gutierrez > Market Scan Information Systems > Software Q.A. Supervisor > (818) 575-2000 x2427 > ggu...@ma... |
|
From: Guillermo G. <ggu...@ma...> - 2004-11-12 15:55:53
|
Is there an easy to convert a numeric value (int, double, etc...) into a = char or string? something that would work similar to Delphi's 'IntToStr()' function? Guillermo Gutierrez Market Scan Information Systems Software Q.A. Supervisor (818) 575-2000 x2427 ggu...@ma... |
|
From: Jakob E. <mai...@ko...> - 2004-11-12 13:50:34
|
Ops. Dont mind me, I figured it out by my self ^^;; On Fri, 12 Nov 2004 14:19:43 +0100, Jakob Eklund <mai...@ko...>= =20 wrote: > > This line of code > components =3D int (texmap->format.BitsPerPixel/32); > > gives me this error message? > > 860 C:\Documents and =20 > Settings\Jakob\Programering\test\stencil_shadow\wavefront.h request for= =20 > member `BitsPerPixel' in ` texmap->SDL_Surface::format', which is of =20 > non-aggregate type ` > > > What is an "non-aggregate type"? > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_idU88&alloc_id=12065&op=3Dclick > _______________________________________________ > 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: Jakob E. <mai...@ko...> - 2004-11-12 13:20:41
|
This line of code components =3D int (texmap->format.BitsPerPixel/32); gives me this error message? 860 C:\Documents and =20 Settings\Jakob\Programering\test\stencil_shadow\wavefront.h request for =20 member `BitsPerPixel' in ` texmap->SDL_Surface::format', which is of =20 non-aggregate type ` What is an "non-aggregate type"? |
|
From: Per W. <pw...@ia...> - 2004-11-12 09:01:46
|
I think you have only posted the first line of very long error messages. Please check again in the log. /Per W On Thu, 11 Nov 2004, jabari holloway wrote: > after compiling my program i received the same error message: > > "std::basic_ostream<_CharT,_Traits>&std::basic_ostream<_CharT" > > i recieve that message for about 20 lines after my last line of code. i mean > the after the last "}" of my main function > > I also receive the error: > > no match for 'operator<<' in' std::operator<<(std::basic_osteam<char > > > does dev c++ provide a library of what errors mean or at least what some of > the "common" errors mean. > > Thank you guys for your help > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > _______________________________________________ > 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: jabari h. <j_s...@ms...> - 2004-11-12 01:01:10
|
after compiling my program i received the same error message: "std::basic_ostream<_CharT,_Traits>&std::basic_ostream<_CharT" i recieve that message for about 20 lines after my last line of code. i mean the after the last "}" of my main function I also receive the error: no match for 'operator<<' in' std::operator<<(std::basic_osteam<char does dev c++ provide a library of what errors mean or at least what some of the "common" errors mean. Thank you guys for your help |
|
From: Joey D. <jda...@ya...> - 2004-11-12 00:39:01
|
can you please give me a code snippet.
i have no idea what's in your mind.
thanks.
--- William Mc Coy <WIL...@ms...> wrote:
> You might also want to look at using "exclusive OR"
> on each byte.
> ----- Original Message -----
> From: Daniel K.
> O.<mailto:dan...@ya...>
> To: Joey Dala<mailto:jda...@ya...>
> Cc:
>
dev...@li...<mailto:dev...@li...>
>
> Sent: Thursday, November 11, 2004 10:34 AM
> Subject: Re: [Dev-C++] Convert Little-Endian to
> Big-Endian (and vice versa)
>
>
> Joey Dala wrote:
>
> > Does anybody know a faster algorithm to swap the
> bytes
> > of an 'unsigned long' than this:
> >
> > // SWAP 32-BITS
> > #define SWAP_LONG( A ) ((A << 24) | ((A &
> 0xff00L) << 8 ) | ((A &
> > 0xff0000L) >> 8 ) | ((unsigned long)A >> 24))
>
>
> Faster than this? Only if you use
> architecture-specific instructions.
> The 486 (and higher) family has the "bswap"
> instruction. Here's an example:
>
> ---
> #include <stdio.h>
>
> #define SWAP32(x) asm volatile ("bswap %0" :
> "=r" (x) : "0" (x))
>
> int main(void)
> {
> int foo = 1;
>
> printf("%08x\n", foo);
>
> asm volatile (
> "bswap %0"
> : "=r" (foo)
> : "0" (foo)
> );
>
> printf("%08x\n", foo);
>
> SWAP32(foo);
>
> printf("%08x\n", foo);
>
> getchar();
> return 0;
> }
> ---
>
> Notice the use of the extended assembly syntax, so
> GCC can perform
> better optimizations around the asm beast.
> Also, the "volatile" keyword to make sure GCC
> won't move the assembly
> statement around in the optimization proccess.
>
>
> Before you ask, some information about using AT&T
> assembly syntax and
> extended syntax is available here:
>
>
http://www.delorie.com/djgpp/doc/brennan/brennan_att_inline_djgpp.html<http://www.delorie.com/djgpp/doc/brennan/brennan_att_inline_djgpp.html>
>
>
> Daniel K. O.
>
>
>
>
>
-------------------------------------------------------
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now
> for FREE
> LinuxWorld Reader's Choice Award Winner for best
> database on Linux.
>
>
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click<http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click>
> _______________________________________________
> Dev-cpp-users mailing list
>
>
Dev...@li...<mailto:Dev...@li...>
> TO UNSUBSCRIBE:
>
http://www23.brinkster.com/noicys/devcpp/ub.htm<http://www23.brinkster.com/noicys/devcpp/ub.htm>
>
>
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users<https://lists.sourceforge.net/lists/listinfo/dev-cpp-users>
>
________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
|
|
From: William Mc C. <WIL...@ms...> - 2004-11-11 23:00:21
|
You might also want to look at using "exclusive OR" on each byte. ----- Original Message -----=20 From: Daniel K. O.<mailto:dan...@ya...>=20 To: Joey Dala<mailto:jda...@ya...>=20 Cc: = dev...@li...<mailto:dev...@li...= e.net>=20 Sent: Thursday, November 11, 2004 10:34 AM Subject: Re: [Dev-C++] Convert Little-Endian to Big-Endian (and vice = versa) Joey Dala wrote: > Does anybody know a faster algorithm to swap the bytes > of an 'unsigned long' than this: > =20 > // SWAP 32-BITS > #define SWAP_LONG( A ) ((A << 24) | ((A & 0xff00L) << 8 ) | ((A &=20 > 0xff0000L) >> 8 ) | ((unsigned long)A >> 24)) Faster than this? Only if you use architecture-specific instructions.=20 The 486 (and higher) family has the "bswap" instruction. Here's an = example: --- #include <stdio.h> #define SWAP32(x) asm volatile ("bswap %0" : "=3Dr" (x) : "0" = (x)) int main(void) { int foo =3D 1; =20 printf("%08x\n", foo); =20 asm volatile ( "bswap %0" : "=3Dr" (foo) : "0" (foo) ); =20 printf("%08x\n", foo); SWAP32(foo); printf("%08x\n", foo); getchar(); return 0; } --- Notice the use of the extended assembly syntax, so GCC can perform=20 better optimizations around the asm beast. Also, the "volatile" keyword to make sure GCC won't move the assembly=20 statement around in the optimization proccess. Before you ask, some information about using AT&T assembly syntax and=20 extended syntax is available here:=20 = http://www.delorie.com/djgpp/doc/brennan/brennan_att_inline_djgpp.html<ht= tp://www.delorie.com/djgpp/doc/brennan/brennan_att_inline_djgpp.html> Daniel K. O. ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. = http://ads.osdn.com/?ad_id=3D5588&alloc_id=3D12065&op=3Dclick<http://ads.= osdn.com/?ad_id=3D5588&alloc_id=3D12065&op=3Dclick> _______________________________________________ Dev-cpp-users mailing list = Dev...@li...<mailto:Dev...@li...= e.net> TO UNSUBSCRIBE: = http://www23.brinkster.com/noicys/devcpp/ub.htm<http://www23.brinkster.co= m/noicys/devcpp/ub.htm> = https://lists.sourceforge.net/lists/listinfo/dev-cpp-users<https://lists.= sourceforge.net/lists/listinfo/dev-cpp-users> |
|
From: Alexsandro M. <ale...@ho...> - 2004-11-11 19:03:49
|
Hi people, Let me know how to add dynamically Rich Text Edits in C++ Builder according to the number of syllables of a word. For example if a have a word like "Fonseca" with 3 syllables I want the program to add dynamically three Objects Rich Text Edit on the screen. Please, Alexsandro Meireles. _________________________________________________________________ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br |
|
From: Alexsandro M. <ale...@ho...> - 2004-11-11 19:02:24
|
Hi people, Let me know how to add dynamically Rich Text Edits in C++ Builder according to the number of syllables of a word. For example if a have a word like "Fonseca" with 3 syllables I want the program to add dynamically three Objects Rich Text Edit on the screen. Please, Alexsandro Meireles. _________________________________________________________________ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br |
|
From: Daniel K. O. <dan...@ya...> - 2004-11-11 18:37:26
|
Joey Dala wrote:
> Does anybody know a faster algorithm to swap the bytes
> of an 'unsigned long' than this:
>
> // SWAP 32-BITS
> #define SWAP_LONG( A ) ((A << 24) | ((A & 0xff00L) << 8 ) | ((A &
> 0xff0000L) >> 8 ) | ((unsigned long)A >> 24))
Faster than this? Only if you use architecture-specific instructions.
The 486 (and higher) family has the "bswap" instruction. Here's an example:
---
#include <stdio.h>
#define SWAP32(x) asm volatile ("bswap %0" : "=r" (x) : "0" (x))
int main(void)
{
int foo = 1;
printf("%08x\n", foo);
asm volatile (
"bswap %0"
: "=r" (foo)
: "0" (foo)
);
printf("%08x\n", foo);
SWAP32(foo);
printf("%08x\n", foo);
getchar();
return 0;
}
---
Notice the use of the extended assembly syntax, so GCC can perform
better optimizations around the asm beast.
Also, the "volatile" keyword to make sure GCC won't move the assembly
statement around in the optimization proccess.
Before you ask, some information about using AT&T assembly syntax and
extended syntax is available here:
http://www.delorie.com/djgpp/doc/brennan/brennan_att_inline_djgpp.html
Daniel K. O.
|
|
From: <wa...@wa...> - 2004-11-11 18:09:39
|
On 11 Nov 2004 at 10:52, Noorez Kassam wrote: > I am getting strange compile results with my libraries. When I have > all the files in one directory the library will build successfully. > But when I put it one level deep in the directory, I get results > saying that it could not find a certain object file when it was > linking everything into the library file. I checked the directories > under the tools/compile menu and they were correct. With my project > settings, the object files should have been created in the same > directory as everyting else. What else should I check? Make sure there are no spaces in the directory names. Watson (the pencil neck) Davis |
|
From: Noorez K. <dar...@ho...> - 2004-11-11 17:53:42
|
I am getting strange compile results with my libraries. When I have all the files in one directory the library will build successfully. But when I put it one level deep in the directory, I get results saying that it could not find a certain object file when it was linking everything into the library file. I checked the directories under the tools/compile menu and they were correct. With my project settings, the object files should have been created in the same directory as everyting else. What else should I check? _________________________________________________________________ Take charge with a pop-up guard built on patented Microsoft® SmartScreen Technology. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. |
|
From: Cary H. <xen...@gm...> - 2004-11-11 14:54:27
|
two things you should be considered: 1. In my experience, endian conversion is primarly used in porting code to a different platform. consequently, 2. You shouldn't make assumptions about how many bits are in an given type, as different compliers on the same platform, and even the same compiler on different platforms will used different sizes. An good example of this is in the WinAPI, Win32 says an unsigned long is 32 bits, while Win64 says its 64. On Thu, 11 Nov 2004 04:54:13 +0000 (GMT), Joey Dala <jda...@ya...> wrote: > > Hello, > > Does anybody know a faster algorithm to swap the bytes > of an 'unsigned long' than this: > > // SWAP 32-BITS > #define SWAP_LONG( A ) ((A << 24) | ((A & 0xff00L) << 8 ) | ((A & > 0xff0000L) >> 8 ) | ((unsigned long)A >> 24)) > > Thank You. > Joey > > ________________________________ > Yahoo! Messenger - Communicate instantly..."Ping" your friends today! > Download Messenger Now > > |
|
From: Cary H. <xen...@gm...> - 2004-11-11 14:31:19
|
ELF is the executable format that linux uses, and win32 is somewhat self-explanatory. *.inc are include files, very similar to *.h in c / c++. hope this helps. On Thu, 11 Nov 2004 10:42:43 +0100, Pascal <p.t...@ti...> wrote: > What is the good format for NAam.exe or Nasm.exe to make a valid object > with devcpp? > ELF or Win32? > what is the .inc file? > my *.inc are a Macro definition for the *.asm file. > How to include this Macro and after make an objetct with .asm file? > How to compile .inc an .asm directly in devcpp? > > Thanks > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > _______________________________________________ > 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-11-11 10:06:15
|
Rob Lawless wrote: > maybe this is a dumb question > but say i have either a vector or pointers or a vector of references of= =20 > some object > if i run through the vector using an iterator & erase a certain element= =20 > in the vector specified by the iterator using the erase method in=20 > vector, is the destructor for the object that is pointed/referenced=20 > called & thus the object no long exists or is only that particular=20 > reference/pointer in the vector erased ? > any help greatly aprreciated > regards > rob Storing references in a vector is not possible. You can only store=20 pointers, or whole objects. The vector doesn't care about what you=20 store, it will make copies of it, whenever you insert something into it.=20 If you store pointers, only the pointer is copied. Because the vector doesn't know what you store, it cannot call delete on=20 the stored objects, so you have to do it manually yourself. -- Greetings, Bal=E1zs |
|
From: Pascal <p.t...@ti...> - 2004-11-11 09:44:28
|
What is the good format for NAam.exe or Nasm.exe to make a valid object with devcpp? ELF or Win32? what is the .inc file? my *.inc are a Macro definition for the *.asm file. How to include this Macro and after make an objetct with .asm file? How to compile .inc an .asm directly in devcpp? Thanks |
|
From: Siva C. <siv...@ya...> - 2004-11-11 06:39:29
|
you will have to send the compiler error messages and your code!! --- reg...@be... wrote: > I keep getting an compile error when I have an > desructor in the devC++ compiler. > how can I solve this problem? __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com |
|
From: <reg...@be...> - 2004-11-11 05:55:09
|
I keep getting an compile error when I have an desructor in the devC++ compiler. how can I solve this problem? |
|
From: Daniel K. O. <dan...@ya...> - 2004-11-11 05:05:50
|
MD T wrote:
> I tried to develop programs in newly downloaded and
> installed dev c++ in my computer with windows Xp o/s.
> After typing the program and pressing F9 i don't see the screen which
> should show mw the result of the program. The log says g++ exe.and
> then some file names, execution terminated and compiled successfully.
> Can someone tell me what is the mistake here?
>
Go to your project options and select the type "Win32 Console".
But be aware that once a program ends, it ends; it won't stop waiting
until you read the output unless you tell it to; three ways to do it are:
cin.ignore(); // C++ only
or
system("pause");
or
getchar();
Use one of them whenever appropriate, and the program will stop at that
point waiting for user input.
Daniel K. O.
|
|
From: Joey D. <jda...@ya...> - 2004-11-11 04:54:16
|
Hello, Does anybody know a faster algorithm to swap the bytes of an 'unsigned long' than this: // SWAP 32-BITS #define SWAP_LONG( A ) ((A << 24) | ((A & 0xff00L) << 8 ) | ((A & 0xff0000L) >> 8 ) | ((unsigned long)A >> 24)) Thank You. Joey --------------------------------- Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now |