dev-cpp-users Mailing List for Dev-C++ (Page 28)
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: Lloyd <ll...@cd...> - 2008-05-26 09:52:20
|
The reason for the error is you are not passing the obj file of calc.cpp to the linker. Make appropriate settings in DevCpp. I think, you have to add calc.cpp to your project. Sorry I dont use DevCpp. On Sun, 2008-05-25 at 16:42 -0500, Jorge Guevara wrote: > > i have 3 source calc.h calc.cpp and principal.cpp (i compilated it > with devcpp) > > i have this error: > In function `main': > [Linker error] undefined reference to `calc<double>::multiply(double, > double)' > ld returned 1 exit status > [Build Error] ["Proyecto] Error 1 > > somebody could help me please :) > > /********calc.h******/ > #ifndef _CALC_H > #define _CALC_H > > template <class A_Type> class calc > { > public: > A_Type multiply(A_Type x, A_Type y); > A_Type add(A_Type x, A_Type y); > > }; > > #endif > > /****calc.cpp******/ > #include "calc.h" > #include <iostream> > using namespace std; > > template <class A_Type> A_Type calc<A_Type>::multiply(A_Type x,A_Type > y) > { > return x*y; > } > template <class A_Type> A_Type calc<A_Type>::add(A_Type x, A_Type y) > { > return x+y; > } > > > /******principal.cpp*****/ > #include "calc.h" > #include <iostream> > #include <cstdlib> > > using namespace std; > > int main() > { > calc <double> a_calc_class; > double a, b; > a=4.3; > b=3.4; > a_calc_class.multiply(a,b); > > system("PAUSE"); > return EXIT_SUCCESS; > } > /***************************/ > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ 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 ______________________________________ Scanned and protected by Email scanner |
From: Jorge G. <jor...@gm...> - 2008-05-25 21:42:27
|
i have 3 source calc.h calc.cpp and principal.cpp (i compilated it with devcpp) i have this error: In function `main': [Linker error] undefined reference to `calc<double>::multiply(double, double)' ld returned 1 exit status [Build Error] ["Proyecto] Error 1 somebody could help me please :) /********calc.h******/ #ifndef _CALC_H #define _CALC_H template <class A_Type> class calc { public: A_Type multiply(A_Type x, A_Type y); A_Type add(A_Type x, A_Type y); }; #endif /****calc.cpp******/ #include "calc.h" #include <iostream> using namespace std; template <class A_Type> A_Type calc<A_Type>::multiply(A_Type x,A_Type y) { return x*y; } template <class A_Type> A_Type calc<A_Type>::add(A_Type x, A_Type y) { return x+y; } /******principal.cpp*****/ #include "calc.h" #include <iostream> #include <cstdlib> using namespace std; int main() { calc <double> a_calc_class; double a, b; a=4.3; b=3.4; a_calc_class.multiply(a,b); system("PAUSE"); return EXIT_SUCCESS; } /***************************/ |
From: Kenneth C. <ken...@ho...> - 2008-05-22 14:48:28
|
so do i able to run the command $(cat test.txt) using dev-C++? how do i run it? > Date: Thu, 22 May 2008 05:55:18 -0400 > From: ste...@gm... > To: dev...@li... > Subject: Re: [Dev-C++] cygwin and mingw > > You don't need any particular compiler. I did my OOP Programming 2 > class labs in DevC++ with the bundled MinGW then comiled the same code > with Borland C++ Builder 6 and Visual C++ Express 2005. The professor > wanted all homework done in VC2003 then 2005 to avoid any "but it > comiled on mine" whining. :D > > Unfortunately that's all I remember because I've been stuck in VB-land > at work since class ended a year ago. > > 2008/5/21 Kenneth Chung : >> currently i am using Dev-C++ 4.9.9.2 version. i am going to develop a >> program which requires me to run the program with the command >> "executablefile $(cat test.txt)" it means the words are stored as a command >> line argument. i have heard that i may need to install cygwin before i can >> run with this syntax. as i am awared that Dev-C++ was running with mingw >> compiler, can it run with this syntax? if so where do i run it? do i run >> it from the command prompt in the directory where the .c files are saved? >> if it can only be run in cygwin, how do i launch the executable file >> together with the test.txt file in cygwin before i can run it? >> ________________________________ >> at CarPoint.com.au It's simple! Sell your car for just $30 >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> 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 >> >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > 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 _________________________________________________________________ Never miss another e-mail with Hotmail on your mobile. http://www.livelife.ninemsn.com.au/article.aspx?id=343869 |
From: hhh h. <the...@ho...> - 2008-05-22 09:56:51
|
Hi all.I am getting error codes of 0x02, whilst Getting GetLastError(); as soon as program starts... It should be 0x00, ERROR_SUCCESS... right?I am using XP fully patched(3 pcs), tried in multiple mingw versions(including latest version; no other compilers yet). Ex :#include <stdio.h> #include <windows.h>int main() { printf("Last error result : %ld", GetLastError()); }Which gets me the result of 0x02, or ERROR_FILE_NOT_FOUND (?) Could anyone confirm this result?dword GetLastError() synopsis http://msdn.microsoft.com/en-us/library/ms679360(VS.85).aspx Windows system error codes http://msdn.microsoft.com/en-us/library/ms681381(VS.85).aspx _________________________________________________________________ Conheça o Windows Live Spaces, a rede de relacionamentos do Messenger! http://www.amigosdomessenger.com.br/ |
From: Steven C. <ste...@gm...> - 2008-05-22 09:55:22
|
You don't need any particular compiler. I did my OOP Programming 2 class labs in DevC++ with the bundled MinGW then comiled the same code with Borland C++ Builder 6 and Visual C++ Express 2005. The professor wanted all homework done in VC2003 then 2005 to avoid any "but it comiled on mine" whining. :D Unfortunately that's all I remember because I've been stuck in VB-land at work since class ended a year ago. 2008/5/21 Kenneth Chung <ken...@ho...>: > currently i am using Dev-C++ 4.9.9.2 version. i am going to develop a > program which requires me to run the program with the command > "executablefile $(cat test.txt)" it means the words are stored as a command > line argument. i have heard that i may need to install cygwin before i can > run with this syntax. as i am awared that Dev-C++ was running with mingw > compiler, can it run with this syntax? if so where do i run it? do i run > it from the command prompt in the directory where the .c files are saved? > if it can only be run in cygwin, how do i launch the executable file > together with the test.txt file in cygwin before i can run it? > ________________________________ > at CarPoint.com.au It's simple! Sell your car for just $30 > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > 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: Kenneth C. <ken...@ho...> - 2008-05-21 10:59:21
|
currently i am using Dev-C++ 4.9.9.2 version. i am going to develop a program which requires me to run the program with the command "executablefile $(cat test.txt)" it means the words are stored as a command line argument. i have heard that i may need to install cygwin before i can run with this syntax. as i am awared that Dev-C++ was running with mingw compiler, can it run with this syntax? if so where do i run it? do i run it from the command prompt in the directory where the .c files are saved? if it can only be run in cygwin, how do i launch the executable file together with the test.txt file in cygwin before i can run it? _________________________________________________________________ It's simple! Sell your car for just $30 at CarPoint.com.au http://a.ninemsn.com.au/b.aspx?URL=https%3A%2F%2Ffanyv88.com%3A443%2Fhttp%2Fsecure%2Dau%2Eimrworldwide%2Ecom%2Fcgi%2Dbin%2Fa%2Fci%5F450304%2Fet%5F2%2Fcg%5F801459%2Fpi%5F1004813%2Fai%5F859641&_t=762955845&_r=tig_OCT07&_m=EXT |
From: Eric <eri...@wo...> - 2008-05-20 18:49:29
|
----- Original Message ----- um how do you close it? File => close. (or equivalent) why close it? mind you I dont run the program much because I dont realy have a project, I did look at the Easter program a few months ago, that seems to be ok when you "F9, (edit), close, F9" it. I tried the edit on "if( year == 2020) break;" this just saves the program running for ever if there is a loop mistake. I included the code so you can test drive it if you like and so your problem is still there The code looks funny with its "a to m" variables this gives you Easter Sunday for any year. I just added in the for loop >From Eric ( I have a idea for a good project, ) #include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { int a,b,c,d,e,f,g,h,i,k,L,m, day, month, year, yend; cout << " Input year \t"; cin >> year; yend = year +10; for (year; yend >= year ;year++ a = year % 19; b = year / 100; c = year % 100; d = b / 4; e = b % 4; f = (b + 8) / 25; g = (b - f + 1) / 3; h = (19 * a + b - d - g + 15) % 30; i = c / 4; k = c % 4; L = (32 + 2 * e + 2 * i - h - k) % 7; m = (a + 11 * h + 22 * L) / 451; month = (h + L - 7 * m + 114) / 31; day = ((h + L - 7 * m + 114) % 31) + 1; cout << day; cout << "\t"; cout << month ; cout << "\t" ; cout << year << "\t" << "\n"; if( year == 2020) break; } system("PAUSE"); return EXIT_SUCCESS; } ----- Original Message ----- From: Alex Martin <li...@re...> To: Kleber Eduardo Clemente <kle...@da...> Cc: <dev...@li...> Sent: Tuesday, May 20, 2008 5:56 AM Subject: Re: [Dev-C++] RES: F9 Functionality - Run if no compile needed? Hello, Thanks for the reply. So here is the situation: No program is running. I edit code. I push f9 -> the program compiles, then runs. I close the program. I push f9 again, (compiler log: Nothing to be done for 'all'.) -> The program does not run. I would like it if the program would run even though it was already compiled, as I see no reason for it not to run, am I wrong here? Thanks, Alex Martin li...@re... Kleber Eduardo Clemente wrote: > I think it's happen only when the program is open. If it's already compiled, but is closed, when you push F9 the program will compile and run. > > [] > > Kleber Eduardo Clemente > Posto Avançado MRS - Datasul HCM > Fone: (47) 3802-8848 > Mail: kle...@da... > Antes de imprimir este e-mail, pergunte-se: "É realmente necessário?" > -----Mensagem original----- > De: dev...@li... [mailto:dev...@li...] Em nome de Alex Martin > Enviada em: segunda-feira, 19 de maio de 2008 14:20 > Para: dev...@li... > Assunto: [Dev-C++] F9 Functionality - Run if no compile needed? > > Is there any reason to have dev-cpp not run the program after pushing F9 > even if the program has already been compiled? > > I am running version 4.9.9.2 with an external cygwin environment. > > Thanks, > Alex Martin > li...@re... > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > 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 > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > 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 > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ 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 -- No virus found in this incoming message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.20/1453 - Release Date: 18-May-08 09:31 |
From: seb_kramm <seb...@ya...> - 2008-05-20 15:21:51
|
Alex Martin a écrit : > Hello, > > Thanks for the reply. So here is the situation: > > No program is running. > > I edit code. > > I push f9 -> the program compiles, then runs. > > I close the program. > > I push f9 again, (compiler log: Nothing to be done for 'all'.) -> The > program does not run. Maybe you just think it is closed, maybe there is still a process open, so DevCpp won't run it. Did you check the Windows Process manager ? It is not because you have no window nor console on screen that the app is dead. |
From: Alex M. <li...@re...> - 2008-05-19 21:35:00
|
I just want f9 to run the application, like a double click, even if it is already compiled. If it is not compiled, f9 compiles, then runs the app. If it is already compiled, why does f9 not "try to compile? compiled." then "run"? Just a wish list item I guess. Dick Kopcke wrote: > When the compiler is not running (dev-cpp v 4.9.9.2), I double-click the application file that the compiler produces and the program runs fine. > > Dick Kopcke > > Alex Martin <li...@re...> wrote: Hello, > > Thanks for the reply. So here is the situation: > > No program is running. > > I edit code. > > I push f9 -> the program compiles, then runs. > > I close the program. > > I push f9 again, (compiler log: Nothing to be done for 'all'.) -> The > program does not run. > > I would like it if the program would run even though it was already > compiled, as I see no reason for it not to run, am I wrong here? > > Thanks, > Alex Martin > li...@re... > > > Kleber Eduardo Clemente wrote: > >> I think it's happen only when the program is open. If it's already compiled, but is closed, when you push F9 the program will compile and run. >> >> [] >> >> Kleber Eduardo Clemente >> Posto Avan�ado MRS - Datasul HCM >> Fone: (47) 3802-8848 >> Mail: kle...@da... >> Antes de imprimir este e-mail, pergunte-se: "� realmente necess�rio?" >> -----Mensagem original----- >> De: dev...@li... [mailto:dev...@li...] Em nome de Alex Martin >> Enviada em: segunda-feira, 19 de maio de 2008 14:20 >> Para: dev...@li... >> Assunto: [Dev-C++] F9 Functionality - Run if no compile needed? >> >> Is there any reason to have dev-cpp not run the program after pushing F9 >> even if the program has already been compiled? >> >> I am running version 4.9.9.2 with an external cygwin environment. >> >> Thanks, >> Alex Martin >> li...@re... >> >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> 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 >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> 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 >> >> > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > 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: Kleber E. C. <kle...@da...> - 2008-05-19 18:23:47
|
Well... so I don't know. Here, I'm using the same version than you for de dev-c++ and here it works fine. Maybe, it could be a configuration but I don't know where. Kleber Eduardo Clemente Posto Avançado MRS - Datasul HCM Fone: (47) 3802-8848 Mail: kle...@da... Antes de imprimir este e-mail, pergunte-se: "É realmente necessário?" -----Mensagem original----- De: Alex Martin [mailto:li...@re...] Enviada em: segunda-feira, 19 de maio de 2008 14:56 Para: Kleber Eduardo Clemente Cc: dev...@li... Assunto: Re: [Dev-C++] RES: F9 Functionality - Run if no compile needed? Hello, Thanks for the reply. So here is the situation: No program is running. I edit code. I push f9 -> the program compiles, then runs. I close the program. I push f9 again, (compiler log: Nothing to be done for 'all'.) -> The program does not run. I would like it if the program would run even though it was already compiled, as I see no reason for it not to run, am I wrong here? Thanks, Alex Martin li...@re... Kleber Eduardo Clemente wrote: > I think it's happen only when the program is open. If it's already compiled, but is closed, when you push F9 the program will compile and run. > > [] > > Kleber Eduardo Clemente > Posto Avançado MRS - Datasul HCM > Fone: (47) 3802-8848 > Mail: kle...@da... > Antes de imprimir este e-mail, pergunte-se: "É realmente necessário?" > -----Mensagem original----- > De: dev...@li... [mailto:dev...@li...] Em nome de Alex Martin > Enviada em: segunda-feira, 19 de maio de 2008 14:20 > Para: dev...@li... > Assunto: [Dev-C++] F9 Functionality - Run if no compile needed? > > Is there any reason to have dev-cpp not run the program after pushing F9 > even if the program has already been compiled? > > I am running version 4.9.9.2 with an external cygwin environment. > > Thanks, > Alex Martin > li...@re... > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > 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 > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > 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: Alex M. <li...@re...> - 2008-05-19 17:56:47
|
Hello, Thanks for the reply. So here is the situation: No program is running. I edit code. I push f9 -> the program compiles, then runs. I close the program. I push f9 again, (compiler log: Nothing to be done for 'all'.) -> The program does not run. I would like it if the program would run even though it was already compiled, as I see no reason for it not to run, am I wrong here? Thanks, Alex Martin li...@re... Kleber Eduardo Clemente wrote: > I think it's happen only when the program is open. If it's already compiled, but is closed, when you push F9 the program will compile and run. > > [] > > Kleber Eduardo Clemente > Posto Avançado MRS - Datasul HCM > Fone: (47) 3802-8848 > Mail: kle...@da... > Antes de imprimir este e-mail, pergunte-se: "É realmente necessário?" > -----Mensagem original----- > De: dev...@li... [mailto:dev...@li...] Em nome de Alex Martin > Enviada em: segunda-feira, 19 de maio de 2008 14:20 > Para: dev...@li... > Assunto: [Dev-C++] F9 Functionality - Run if no compile needed? > > Is there any reason to have dev-cpp not run the program after pushing F9 > even if the program has already been compiled? > > I am running version 4.9.9.2 with an external cygwin environment. > > Thanks, > Alex Martin > li...@re... > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > 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 > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > 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: Kleber E. C. <kle...@da...> - 2008-05-19 17:27:23
|
I think it's happen only when the program is open. If it's already compiled, but is closed, when you push F9 the program will compile and run. [] Kleber Eduardo Clemente Posto Avançado MRS - Datasul HCM Fone: (47) 3802-8848 Mail: kle...@da... Antes de imprimir este e-mail, pergunte-se: "É realmente necessário?" -----Mensagem original----- De: dev...@li... [mailto:dev...@li...] Em nome de Alex Martin Enviada em: segunda-feira, 19 de maio de 2008 14:20 Para: dev...@li... Assunto: [Dev-C++] F9 Functionality - Run if no compile needed? Is there any reason to have dev-cpp not run the program after pushing F9 even if the program has already been compiled? I am running version 4.9.9.2 with an external cygwin environment. Thanks, Alex Martin li...@re... ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ 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: Alex M. <li...@re...> - 2008-05-19 17:19:44
|
Is there any reason to have dev-cpp not run the program after pushing F9 even if the program has already been compiled? I am running version 4.9.9.2 with an external cygwin environment. Thanks, Alex Martin li...@re... |
From: Pink B. <da...@ya...> - 2008-05-10 03:08:26
|
Per Westermark sez, > 5 points for unreadable code - also incomplete which also > goes for your help request. No way, that unreadable code goes to eleven. It looks like C code written by someone who learned to program in tiny basic (4k of ram baby!) and never looked back or forward for that matter. If it was me, I'd rewrite the code from scratch or carefully try and unroll it into something sensible. Mr Foo --- Actually shipped production code in tiny basic since 1984. |
From: Per W. <pw...@ia...> - 2008-05-10 02:56:10
|
5 points for unreadable code - also incomplete which also goes for yuor help request. What do you want help with? You haven't mentioned what your problem is... /pwm On Fri, 9 May 2008, Kenneth Chung wrote: > > are there any errors in this code as it is not working. > > if (c> dCol && ((sq[r][c - 1] != '#' && sq[r][c - 1] != ' ') || (sq[r + 1][c] != '#' && sq[r + 1][c] != ' ') || > (sq[r][c + 1] != '#' && sq[r][c + 1] != ' ') || (sq[r - 1][c] != '#' && sq[r - 1][c] != ' ')) && > sq[r][c - 1] <= sq[r + 1][c] && sq[r][c - 1] <= sq[r][c + 1] && sq[r][c - 1] <= sq[r - 1][c]) > spmw1(r, c - 1); > else > if (c < dCol && ((sq[r][c + 1] != '#' && sq[r][c + 1] != ' ') || (sq[r - 1][c] != '#' && sq[r - 1][c] != ' ') || > (sq[r][c - 1] != '#' && sq[r][c - 1] != ' ') || (sq[r + 1][c] != '#' && sq[r + 1][c] != ' ')) && > sq[r][c + 1] <= sq[r - 1][c] && sq[r][c + 1] <= sq[r][c - 1] && sq[r][c + 1] <= sq[r + 1][c]) > spmw1(r, c + 1); > else > if |
From: Robert A. <ral...@gm...> - 2008-05-10 01:56:30
|
It would be really nice if you could give a little description of what you thought the code was suppose to do as well as what it's really doing. Most importantly you are using a number of variables which are not obvious. What is 'c' and 'dCol' I assume that 'sq' is a two dimensional array with 'r' and 'c' acting as indexes but it's unclear what type the array is and what it looks like. On Fri, May 9, 2008 at 10:24 AM, Kenneth Chung <ken...@ho...> wrote: > > are there any errors in this code as it is not working. After trying to decode your code: Reference Square: 1 2 3 4 5 6 7 8 9 if ( c> dCol && ( (sq[r][c - 1] != '#' && sq[r][c - 1] != ' ') || // Square 4 Not Equal to # or ' ' (sq[r + 1][c] != '#' && sq[r + 1][c] != ' ') || // Square 8 Not Equal to # or ' ' (sq[r][c + 1] != '#' && sq[r][c + 1] != ' ') || // Square 6 Not Equal to # or ' ' (sq[r - 1][c] != '#' && sq[r - 1][c] != ' ') // Square 2 Not Equal to # or ' ' ) && sq[r][c - 1] <= sq[r + 1][c] && // Square 4 <= Square 8 sq[r][c - 1] <= sq[r][c + 1] && // Square 4 <= Square 6 sq[r][c - 1] <= sq[r - 1][c] // Square 4 <= Square 2 ) spmw1(r, c - 1); else if (c < dCol && ( (sq[r][c + 1] != '#' && sq[r][c + 1] != ' ') || // Square 6 Not Equal to # or ' ' (sq[r - 1][c] != '#' && sq[r - 1][c] != ' ') || // Square 2 Not Equal to # or ' ' (sq[r][c - 1] != '#' && sq[r][c - 1] != ' ') || // Square 4 Not Equal to # or ' ' (sq[r + 1][c] != '#' && sq[r + 1][c] != ' ') // Square 8 Not Equal to # or ' ' ) && sq[r][c + 1] <= sq[r - 1][c] && // Square 6 <= Square 2 sq[r][c + 1] <= sq[r][c - 1] && // Square 6 <= Square 4 sq[r][c + 1] <= sq[r + 1][c] // Square 6 <= Square 8 ) spmw1(r, c + 1); else if ...... It looks like a lot of your tests are duplicates, so you might want to nest some of your tests. For example... If (( sq[r-1][c] != '#' && sq[r-1][c] != ' ') || (sq[r][c - 1] != '#' && sq[r][c - 1] != ' ') || (sq[r][c + 1] != '#' && sq[r][c + 1] != ' ') ||(sq[r + 1][c] != '#' && sq[r + 1][c] != ' ') ) { if ( c < dCol ) && sq[r][c + 1] <= sq[r - 1][c] &&sq[r][c + 1] <= sq[r][c - 1] && sq[r][c + 1] <= sq[r + 1][c] ) spmw1(r, c + 1); else if ( c> dCol ) && sq[r][c - 1] <= sq[r - 1][c] && sq[r][c - 1] <= sq[r][c + 1] && sq[r][c - 1] <= sq[r + 1][c] ) spmw1(r, c - 1) } But I still can't even tell you what your code is trying to do. -Robert |
From: João M. R. S. T. <ta...@fe...> - 2008-05-09 18:27:36
|
---------------------------------------------------------------------------- --------------------- (Apologies for cross-posting) Special Track Computational Bioimaging and Visualization International Symposium on Visual Computing (ISVC08) Las Vegas, Nevada, USA, December 1-3, 2008 http://www.isvc.net We would appreciate if you could distribute this information by your colleagues and co-workers. ---------------------------------------------------------------------------- --------------------- Dear Colleague, Within the ISVC08 - International Symposium on Visual Computing (http://www.isvc.net), to be held in Las Vegas, Nevada, USA, in December 1-3, 2008, we are organizing the Special Track Computational Bioimaging and Visualization. The main goal of the Special Track Computational Bioimaging and Visualization is to bring together researchers involved in the related fields (Image Acquisition, Image Segmentation, Objects Tracking, Objects Matching, Shape Reconstruction, Motion and Deformation Analysis, Medical Imaging, Scientific Visualization, Software Development, Grid Computing, etc.), in order to set the major lines of development for the near future. Therefore, this Special Track will bring researchers representing various fields related to Computational Vision, Computer Graphics, Computational Mechanics, Scientific Visualization, Mathematics, Statistics, Medical Imaging, etc. Thus, it will endeavor to contribute to obtain better solutions for more realistic computational living models from images, and attempts to establish a bridge between the researchers from these diverse fields. Due to your research activities in those fields, we would like to invite you to submit your work and participate in the Special Track Computational Bioimaging and Visualization. Topics In this Special Track the following topics will be considered (not limited to): - Image Processing and Analysis for Computational Bioimaging and Visualization; - Segmentation, Reconstruction, Tracking and Motion Analyse in Medical Images; - Biomedical Signal and Image Acquisition and Processing; - Objects Simulation and Virtual Reality; - Computer Aided Diagnosis, Surgery, Therapy, Treatment and Telemedicine Systems; - Software Development for Computational Bioimaging and Visualization; - Grid and High Performance Computing for Computational Bioimaging and Visualization. Submission/Proceedings Instructions for authors are available in the website of ISVC'08 (http://www.isvc.net/author.html). Authors should submit electronically their contributions through the website of ISVC'08 (http://www.isvc.net), selecting the Special Track Computational Bioimaging and Visualization. Accepted papers will appear in the symposium proceedings which will be published by Springer-Verlag in the Lecture Notes in Computer Science (LNCS) series. Important dates - Submission deadline: July 21, 2008; - Notification of acceptance: September 1, 2008; - Camera-ready version: September 15, 2008. Scientific Committee Alberto De Santis, Italy Ana Mafalda Reis, Portugal Arrate Muñoz Barrutia, Spain Barbara Caputo, Switzerland Chang-Tsun Li, UK Christos E. Constantinou, USA Constantine Kotropoulos, Greece Daniela Iacoviello, Italy Dinggang Shen, USA Eduardo Borges Pires, Portugal Enrique Alegre Gutiérrez, Spain Filipa Sousa, Portugal Francisco Perales, Spain Gerhard A. Holzapfel, Sweden Hélder C. Rodrigues, Portugal Hemerson Pistori, Brasil João Manuel R. S. Tavares, Portugal Jorge M. G. Barbosa, Portugal Jorge S. Marques, Portugal Jose M. García Aznar, Spain Luís Paulo Reis, Portugal Manuel González Hidalgo, Spain Maria Elizete Kunkel, Germany Michel A. Audette, Germany Miguel Angel Guevara, Cuba Patrick Dubois, France Renato M. N. Jorge, Portugal Reneta P. Barneva, USA Roberto Bellotti, Italy Sabina Tangaro, Italy Samrat Goswami, USA Sónia I. Gonçalves-Verheij, The Netherlands Valentin Brimkov, USA Yongjie Zhan, USA Xavier Roca Marvà, Spain With kind regards, João Manuel R. S. Tavares - University of Porto, Portugal (ta...@fe...) Renato Natal Jorge - University of Porto, Portugal (rn...@fe...) Samrat Goswami - University of Texas at Austin, USA (ta...@gm...) (Organizers of the Special Track Computational Bioimaging and Visualization) |
From: Kenneth C. <ken...@ho...> - 2008-05-09 14:25:48
|
are there any errors in this code as it is not working. if (c> dCol && ((sq[r][c - 1] != '#' && sq[r][c - 1] != ' ') || (sq[r + 1][c] != '#' && sq[r + 1][c] != ' ') || (sq[r][c + 1] != '#' && sq[r][c + 1] != ' ') || (sq[r - 1][c] != '#' && sq[r - 1][c] != ' ')) && sq[r][c - 1] <= sq[r + 1][c] && sq[r][c - 1] <= sq[r][c + 1] && sq[r][c - 1] <= sq[r - 1][c]) spmw1(r, c - 1); else if (c < dCol && ((sq[r][c + 1] != '#' && sq[r][c + 1] != ' ') || (sq[r - 1][c] != '#' && sq[r - 1][c] != ' ') || (sq[r][c - 1] != '#' && sq[r][c - 1] != ' ') || (sq[r + 1][c] != '#' && sq[r + 1][c] != ' ')) && sq[r][c + 1] <= sq[r - 1][c] && sq[r][c + 1] <= sq[r][c - 1] && sq[r][c + 1] <= sq[r + 1][c]) spmw1(r, c + 1); else if _________________________________________________________________ Are you paid what you're worth? Find out: SEEK Salary Centre http://a.ninemsn.com.au/b.aspx?URL=https%3A%2F%2Ffanyv88.com%3A443%2Fhttp%2Fninemsn%2Eseek%2Ecom%2Eau%2Fcareer%2Dresources%2Fsalary%2Dcentre%2F%3Ftracking%3Dsk%3Ahet%3Asc%3Anine%3A0%3Ahot%3Atext&_t=764565661&_r=OCT07_endtext_salary&_m=EXT |
From: Kenneth C. <ken...@ho...> - 2008-05-09 14:20:30
|
what's wrong with the following code as it is not working. if (c> dCol && sq[r][c - 1] != '#' && sq[r][c - 1] != ' ') { if (sq[r][c] == ' ' && sq[r][c + 1] != ' ') { spmtn1(r, c - 1); } } if (c> dCol && sq[r][c - 1] != '#' && sq[r][c - 1] != ' ') { if (sq[r][c] == ' ' && sq[r][c + 1] == ' ') { if ((sq[r][c]>= sq[r][c + 1] && sq[r][c - 1]>= sq[r][c]) || (sq[r][c] <= sq[r][c + 1] && sq[r][c - 1] <= sq[r][c])) { spmtn1(r, c - 1); } } } else if (c < dCol && sq[r][c + 1] != '#' && sq[r][c + 1] != ' ') { -->if this line is false then jump to the next else if, but if it is true if (sq[r][c] == ' ' && sq[r][c - 1] != ' ') {-->if this line is true then execute the statement, the below if statements won't be executed, but if it is false spmtn1(r, c + 1); } } if (c < dCol && sq[r][c + 1] != '#' && sq[r][c + 1] != ' ') {-->as this line still remain as true, same first if statement as above if (sq[r][c] == ' ' && sq[r][c - 1] == ' ') {-->if the above second if statement is false then this line will always be true if ((sq[r][c]>= sq[r][c - 1] && sq[r][c + 1]>= sq[r][c]) || (sq[r][c] <= sq[r][c - 1] && sq[r][c + 1] <= sq[r][c])) {-->then check this line, if it is true then execute the statement, if it is false then jump to the next else if spmtn1(r, c + 1); } } } else if _________________________________________________________________ Never miss another e-mail with Hotmail on your mobile. http://www.livelife.ninemsn.com.au/article.aspx?id=343869 |
From: Per W. <pw...@ia...> - 2008-05-08 11:03:24
|
If the preprocessor picks up the ENGLISH part, that means that you somewhere have that symbol defined. Without any symbol at all, you should get the default, i.e. your Czech text. You have to look into your Makefile to see what preprocessor defines that are used when processing the RC file. /pwm On Thu, 8 May 2008, Jan Mura wrote: > Hello, > > I would like to ask if it is possible to work with preprocessor directives > in resource files, I actually use for defining some window menu. It means > .rc files. > > In main.c I've got > > #define LANG CZECH > > and in the rc file I have got something like: > > #if LANG == ENGLISH > ...Code for english... > #else > ...Code for czech... > #endif > > But only the code for english is done. > I suppose it should work even in rc file because I made some mistakes there > and the errors has been showed. > > Thank you for suggestions. > > Jan Mura > jan...@vo... > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > 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: Jan M. <jan...@vo...> - 2008-05-08 10:26:08
|
Hello, I would like to ask if it is possible to work with preprocessor directives in resource files, I actually use for defining some window menu. It means .rc files. In main.c I've got #define LANG CZECH and in the rc file I have got something like: #if LANG == ENGLISH ...Code for english... #else ...Code for czech... #endif But only the code for english is done. I suppose it should work even in rc file because I made some mistakes there and the errors has been showed. Thank you for suggestions. Jan Mura jan...@vo... |
From: Per W. <pw...@ia...> - 2008-05-05 12:12:42
|
It is a bit hard to know which thread you are answering, since you didn't edit the subject line. Is it about file-based configuration? /pwm On Sun, 4 May 2008 Geo...@ao... wrote: > Take a look at this information from "The C Programming Language by K&R". > Page 148. > > Unions may hold objects of different types and sizes, with the compiler > keeping track of size and alignment requirements. > > struct { > char *name; > int flags; > int utype; // Use utype to indicate what the variable type is..... > union u_tag { > int ival; > float fval; > char *sval; > } u; > } symtab[NSYM]; > > the member ival is referred to as symtab[i].u.ival > the first character of the string sval by either of *symtab[i].u.sval or > symtab[i].u.sval[0] > > u is large enough to hold the largest of the three types; the specific size > is implementation-dependent. > > if (utype == INT) Do Something; > else if (utype == FLOAT) Do Something; > else if (utype == STRING) Do Something; > else Do Something; > > I typed it in fast so check it out. Hope this gives you a clue. > > George > > > > > > **************Wondering what's for Dinner Tonight? Get new twists on family > favorites at AOL Food. > (http://food.aol.com/dinner-tonight?NCID=aolfod00030000000001) > |
From: <Geo...@ao...> - 2008-05-04 19:23:15
|
Take a look at this information from "The C Programming Language by K&R". Page 148. Unions may hold objects of different types and sizes, with the compiler keeping track of size and alignment requirements. struct { char *name; int flags; int utype; // Use utype to indicate what the variable type is..... union u_tag { int ival; float fval; char *sval; } u; } symtab[NSYM]; the member ival is referred to as symtab[i].u.ival the first character of the string sval by either of *symtab[i].u.sval or symtab[i].u.sval[0] u is large enough to hold the largest of the three types; the specific size is implementation-dependent. if (utype == INT) Do Something; else if (utype == FLOAT) Do Something; else if (utype == STRING) Do Something; else Do Something; I typed it in fast so check it out. Hope this gives you a clue. George **************Wondering what's for Dinner Tonight? Get new twists on family favorites at AOL Food. (http://food.aol.com/dinner-tonight?NCID=aolfod00030000000001) |
From: João M. R. S. T. <ta...@fe...> - 2008-05-02 13:46:20
|
(Our apologies for cross-posting. We appreciate if you kindly distribute this information by your co-workers and colleagues.) **************************************************************************** ********************* Symposium Image Processing and Analysis International Conference on Computational & Experimental Engineering and Sciences 2009 (ICCES'09) Phuket, Thailand, 8-13 April 2009 http://icces.org/cgi-bin/ices09/pages/index **************************************************************************** ********************* Dear Colleague, Within the International Conference on Computational & Experimental Engineering and Sciences 2009 (ICCES'09), to be held in Phuket, Thailand, in 8-13 April 2009, we are organizing the Symposium Image Processing and Analysis. Examples of some topics that will be considered in that symposium are: Image restoring, Description, Compression, Segmentation and Description; Objects tracking, Matching, Reconstruction and Registration; Visualization Enhance; Simulation and Animation; Software Development for Image Processing and Analysis; Grid Computing in Image Processing and Analysis; Applications of Image Processing and Analysis. Due to your research activities in those fields, we would like to invite you to submit your work and participate in the Symposium Image Processing and Analysis. For instructions and submission, please access to the conference website at: http://icces.org/cgi-bin/ices09/pages/index. Please note, when submitting your work you should choose the Symposium Image Processing and Analysis. Important dates and Instructions: - 15 Oct 2008: Start abstract submission; - 1 Jan 2009: Deadline for abstract submission; - 10 Jan 2009: End of abstract selection. If you intend to submit your work please notify as soon as possible the main organizer of your intention (ta...@fe...); Instructions for authors are available at: http://icces.org/cgi-bin/ices09/pages/guide. With kind regards, Yours sincerely, The Organizers, João Manuel R. S. Tavares (ta...@fe...) (main organizer) Faculty of Engineering of University of Porto, Porto, Portugal Yongjie (Jessica) Zhan (jes...@an...) Department of Mechanical Engineering, Carnegie Mellon University, Pittsburgh, USA Maria João M. Vasconcelos (mar...@fe...) Faculty of Engineering of University of Porto, Porto, Portugal |
From: Per W. <pw...@ia...> - 2008-04-30 16:35:13
|
Yes, we are well aware that the MinGW compiler supports the long double data type as distinct from the double type. But the big question is: Why do you _need_ to print long double values? The double data type has 15 significant digits - is this really too little? The biggest reason for the long double data type is to get improved precision for internal values in numeric algorithms, where you may sum a nuge number of small numbers or where you may subtract similarly sized numbers and get calcellation effects. Most situations where the end result is expected to have 20 or more significant digits are well suited for big-number libraries and fixed-point arithmetic. Then you can produce results with 1000 or 1000000 significant digits if you want to. It doesn't matter how large fp data types you have available - floating point numbers can not store most values without rounding errors, and the conversion from binary format to decimal format done by printf() will result in rounding. The only question is how many correctly rounded digits you get. All you need to do to print your long double values are simple typecasts in the printf() calls. Your next alternative is to switch to cygwin instead. The cygwin library supports %Lg for printing extended-precision floating-point values. However, you must distribute your application with the cygwin support dll. /pwm On Wed, 30 Apr 2008, André Macário Barros wrote: > But MigGW does this distinction. > > Please try: > printf(sizeof(double)) and > printf(sizeof(long double)) > > Does anybody know who wrote a printf or > a full stdio.h (fprintf, sprintf, etc) which > supports long doubles for MingGW? > > Regards > André > > > -----Mensagem original----- > De: Per Westermark [mailto:pw...@ia...] > Enviada em: terça-feira, 29 de abril de 2008 02:39 > Para: André Macário Barros > Cc: Lista do Dev-C++ > Assunto: Re: [Dev-C++] Reading and printing long double values > > > MinGW is using the M$ libraries, so to my knowledge it isn't possible to > print a long double using printf(). > > Note that M$ does not distinguish between double and long double, so they > don't have a need for a long double formatting prefix. > > /pwm > > On Sun, 27 Apr 2008, André Macário Barros wrote: > > > Dear users, > > > > I´m having some problems trying to read/print > > a long double value in C. > > > > Based on a documentation I´ve found, one of the > > attempts was: > > > > ... > > long double var=3.0; > > ... > > printf("printing a long double value-->%5.0Lg\n", var); > > ... > > > > I´ve already tested: %LE and %LF and none of these > > options worked. > > > > Does anybody know how to read and print? > > Thanks! > > > > Andre > > > > No virus found in this outgoing message. > > Checked by AVG. > > Version: 7.5.524 / Virus Database: 269.23.5/1400 - Release Date: 27/4/2008 > > 09:39 > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > Don't miss this year's exciting event. There's still time to save $100. > > Use priority code J8TL2D2. > > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javao > ne > > _______________________________________________ > > 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 > > > > No virus found in this incoming message. > Checked by AVG. > Version: 7.5.524 / Virus Database: 269.23.5/1401 - Release Date: 28/4/2008 > 07:18 > > No virus found in this outgoing message. > Checked by AVG. > Version: 7.5.524 / Virus Database: 269.23.6/1407 - Release Date: 30/4/2008 > 11:35 > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > 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 > |