dev-cpp-users Mailing List for Dev-C++ (Page 60)
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: <Ber...@eu...> - 2007-06-05 09:28:28
|
... I searched the dev-cpp install directory, but I did not find = anything. Thanks for hints, Bernd --=20 Bernd M=FCnt Durchwahl: 030/69032-509 euroscript Deutschland GmbH Zentrale: 030/69032-300 Abteilung IT-Management Fax: 030/69032-505 Alt-Moabit 91 Mail: Ber...@eu... 10559 Berlin Web: http://www.euroscript.de |
From: Per W. <pw...@ia...> - 2007-06-05 05:53:44
|
Don't try to write functions that return arrays. Note that in C/C++, a pointer and an array is alsmost the same thing from a language perspective. The array name is always returned as a pointer to the first element in the array... Exactly what problem are you trying to solve? Let the function return a pointer to a string, and let the receiver accept this string. Why do you care about an array size? /pwm On Mon, 4 Jun 2007 fa...@un... wrote: > --===============0082291564== > Content-Type: text/plain; > Content-Transfer-Encoding: quoted-printable > > Hi, everyone,=20 > I have a problem with a string of char function. I have define a typedef = > char cad[80], and i want a function that return a char[80] type, because = > in dev-c++ is not posible return this type a write the function to return= > a pointer to char[80], in de form *cad. But, i don't get the function re= > turn the desired cad, the compiler always tell me a mismatch in the type = > to return, and the type i work. In linux-unix compiler CPP i don=B4t have= > problems, but in the windows dev-c++ version ever i had a error, or a mo= > s match. > > I agree your sugestions. > > -------------------------------------- > MENSAJE ENVIADO CON WMAIL 1.01 > UNIVERSIDAD DEL CAUCA > > > > > --===============0082291564== > Content-Type: text/plain; charset="us-ascii" > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Content-Disposition: inline > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > --===============0082291564== > Content-Type: text/plain; charset="us-ascii" > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Content-Disposition: inline > > _______________________________________________ > 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 > > --===============0082291564==-- > |
From: <fa...@un...> - 2007-06-05 03:30:13
|
Hi, everyone, I have a problem with a string of char function. I have define a typedef char cad[80], and i want a function that return a char[80] type, because in dev-c++ is not posible return this type a write the function to return a pointer to char[80], in de form *cad. But, i don't get the function return the desired cad, the compiler always tell me a mismatch in the type to return, and the type i work. In linux-unix compiler CPP i don´t have problems, but in the windows dev-c++ version ever i had a error, or a mos match. I agree your sugestions. -------------------------------------- MENSAJE ENVIADO CON WMAIL 1.01 UNIVERSIDAD DEL CAUCA |
From: Per W. <pw...@ia...> - 2007-06-01 14:01:15
|
There are no temp pointer to free. The pointers are not allocated dynamically, so need not to be released. It's the contents that the pointer points to, that needs to be released. Your print is wrong. It should be *a to write the integer value that a points to. /pwm On Fri, 1 Jun 2007, Jan Mura wrote: > Hello, > > I would like to ask and clear the problem of freeing a memory previously > allocated. > I have got a program and this a simple example of something similar: > > #include<stdlib.h> > #include<stdio.h> > > void chng (int **in_a) > { > int *temp; > > temp = malloc(sizeof(int)); > *temp = 1; > *in_a = temp; > > } > > int main() > { > int *a; > > chng(&a); > > printf ("a = %d\n", a); > free (a); > > return 0; > } > > And I would like to know if this free (a); > at the end of main() frees also a temp pointer which is used in chng() > function. > It should to do this because it adress the same part of memory if I > understand it correctly. > > If you notice any other problem with the thing above, plese tell me. > > Thank you very much > > Jan Mura > jan...@vo... > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > 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...> - 2007-06-01 13:07:43
|
Hello, I would like to ask and clear the problem of freeing a memory previously allocated. I have got a program and this a simple example of something similar: #include<stdlib.h> #include<stdio.h> void chng (int **in_a) { int *temp; temp = malloc(sizeof(int)); *temp = 1; *in_a = temp; } int main() { int *a; chng(&a); printf ("a = %d\n", a); free (a); return 0; } And I would like to know if this free (a); at the end of main() frees also a temp pointer which is used in chng() function. It should to do this because it adress the same part of memory if I understand it correctly. If you notice any other problem with the thing above, plese tell me. Thank you very much Jan Mura jan...@vo... |
From: Jonathan W. <jon...@gm...> - 2007-05-31 21:41:13
|
Hi, You have 2 options: a 100% normal application that you tell windows to start when you log on, or a "windows service" than will run invisibly in the background. This should help: http://www.codeproject.com/system/Sund_WindowService.asp Jonathan On 5/31/07, MOHAMMED SEIDU <chi...@ya...> wrote: > > Hi Everyone, > I need help regarding writing c++ application that either starts up when > windows is started or runs at the background whiles windows runs using the > Dev-C++ ide. > |
From: MOHAMMED S. <chi...@ya...> - 2007-05-31 12:51:41
|
Hi Everyone, I need help regarding writing c++ application that either starts up when windows is started or runs at the background whiles windows runs using the Dev-C++ ide. dev...@li... wrote:Send Dev-cpp-users mailing list submissions to dev...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.ncet/lists/listinfo/dev-cpp-users or, via email, send a message with subject or body 'help' to dev...@li... You can reach the person managing the list at dev...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of Dev-cpp-users digest..." Today's Topics: 1. Re: Dev-cpp-users Digest, Vol 12, Issue 9 (Luis Alfonso Giraldo) 2. Re: Dev-cpp-users Digest, Vol 12, Issue 9 (Per Westermark) 3. memory leak! (Lloyd) 4. Re: memory leak! (Jonathan Winterflood) 5. Re: memory leak! (Lloyd) 6. Re: memory leak! (Per Westermark) ---------------------------------------------------------------------- Message: 1 Date: Wed, 23 May 2007 23:21:37 -0500 From: "Luis Alfonso Giraldo" Subject: Re: [Dev-C++] Dev-cpp-users Digest, Vol 12, Issue 9 To: Message-ID: <200...@sm...> Content-Type: text/plain; charset="iso-8859-1" Hi, Please, I need code of sparse Matriz in C++: M?thods: 1. MakeDisperseMatrix(nF, nC): Matriz Dispersa vac?a 2. isEmpty(DisperseMatrix): Decide si la Matriz Dispersa est? vac?a 3. getNumberOfRows(DisperseMatrix): Indica el n?mero de filas de la Matriz Dispersa 4. getNumberOfColumns(DisperseMatrix): Indica el n?mero de columnas de la Matriz Dispersa 5. getNumberOfElements(DisperseMatrix): Indica el n?mero de elementos existentes en la Matriz Dispersa 6. printMatrix(DisperseMatrix): Imprime la matriz por filas 7. printMatrizInFile(DisperseMatrix, File): Imprime la matriz en un archivo (Guardar) 8. getRowOfInsertion(DisperseMatrix, nF, nC): Retorna una referencia a los predecesores en la fila a insertar. 9. makeNode(object, nF, nC): Crea un nodo. 10. getColumnOfInsertion(DisperseMatrix, nF, nC): Retorna una referencia a los predecesores en la columna a insertar. 11. InsertInMatriz(DisperseMatrix, nF, nC, object): Inserta "object" en la fila y columna indicada. 12. getValuePosition(DisperseMatrix, nF, nC): Retorna el valor almacenado en la fila y columna indicado. Si no existe devuelve 0. 13. getPorcentUsed(DisperseMatrix): Indica el porcentaje de elementos almacenados. 14. getMaxElements(DisperseMatrix): Indica el n?mero m?ximo de elementos que pueden ser almacenados en la matriz. 15. addDisperseMatrix(DisperseMatrix1, DisperseMatrix2): Devuelve en DisperseMatrix1 el resultado de sumar las dos matrices. 16. scaleDisperseMatrix(DisperseMatrix, valor): Retorna la matriz resultante de multiplicar cada posici?n existente por valor. 17. multDisperseMatrix (DisperseMatrix1,DisperseMatrix2, DisperseMatrix3): Retorna en DisperseMatrix3 el resultante de multiplicar las matrices DisperseMatrix1 y DisperseMatrix2(en ese orden). Thanks and excuse me :( Luis Alfonso Colombia ------------------------------ Message: 2 Date: Thu, 24 May 2007 07:34:19 +0200 (CEST) From: Per Westermark Subject: Re: [Dev-C++] Dev-cpp-users Digest, Vol 12, Issue 9 To: Luis Alfonso Giraldo Cc: dev...@li... Message-ID: Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Is this part of a school work? If your list is part of an existing library, Google should find the code. If it is part of a school assignment, you better start coding. /pwm On Wed, 23 May 2007, Luis Alfonso Giraldo wrote: > Hi, > > > Please, I need code of sparse Matriz in C++: > M?thods: > 1. MakeDisperseMatrix(nF, nC): Matriz Dispersa vac?a > 2. isEmpty(DisperseMatrix): Decide si la Matriz Dispersa est? vac?a > 3. getNumberOfRows(DisperseMatrix): Indica el n?mero de filas de la Matriz > Dispersa > 4. getNumberOfColumns(DisperseMatrix): Indica el n?mero de columnas de la > Matriz Dispersa > 5. getNumberOfElements(DisperseMatrix): Indica el n?mero de elementos > existentes en la Matriz Dispersa > 6. printMatrix(DisperseMatrix): Imprime la matriz por filas > 7. printMatrizInFile(DisperseMatrix, File): Imprime la matriz en un archivo > (Guardar) > 8. getRowOfInsertion(DisperseMatrix, nF, nC): Retorna una referencia a los > predecesores en la fila a insertar. > 9. makeNode(object, nF, nC): Crea un nodo. > 10. getColumnOfInsertion(DisperseMatrix, nF, nC): Retorna una referencia a > los predecesores en la columna a insertar. > 11. InsertInMatriz(DisperseMatrix, nF, nC, object): Inserta "object" en la > fila y columna indicada. > 12. getValuePosition(DisperseMatrix, nF, nC): Retorna el valor almacenado en > la fila y columna indicado. Si no existe devuelve 0. > 13. getPorcentUsed(DisperseMatrix): Indica el porcentaje de elementos > almacenados. > 14. getMaxElements(DisperseMatrix): Indica el n?mero m?ximo de elementos que > pueden ser almacenados en la matriz. > 15. addDisperseMatrix(DisperseMatrix1, DisperseMatrix2): Devuelve en > DisperseMatrix1 el resultado de sumar las dos matrices. > 16. scaleDisperseMatrix(DisperseMatrix, valor): Retorna la matriz resultante > de multiplicar cada posici?n existente por valor. > 17. multDisperseMatrix (DisperseMatrix1,DisperseMatrix2, DisperseMatrix3): > Retorna en DisperseMatrix3 el resultante de multiplicar las matrices > DisperseMatrix1 y DisperseMatrix2(en ese orden). > > Thanks and excuse me :( > > Luis Alfonso > Colombia > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > 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 > ------------------------------ Message: 3 Date: Thu, 24 May 2007 11:24:16 +0530 From: Lloyd Subject: [Dev-C++] memory leak! To: dev...@li... Message-ID: <1179986056.9291.6.camel@RCCF025> Content-Type: text/plain Hi, I have written a program in Linux. It opens a file and maps it to memory using mmap and unmaps and closes the file. I am using a custom written data structure as well in the program. There is no leak associated with the data structure. But some ware a big leak is present. (I dont know where) I assume it could be with mmap and munmap... Because as I open more and more files, the leak gradually increases to megabytes! but for each mam,p the munmap is called correspondingly. And the range which I give to unmap is correct. Where could be the source of problem? Even after the program exit the memory consumption remains same (not reducted to the program startup state). I see this with the aid of system monitoring tool.. please help me... Thanks and Regards, Lloyd ______________________________________ Scanned and protected by Email scanner ------------------------------ Message: 4 Date: Fri, 25 May 2007 08:28:29 +0200 From: "Jonathan Winterflood" Subject: Re: [Dev-C++] memory leak! To: ll...@cd... Cc: dev...@li... Message-ID: Content-Type: text/plain; charset="iso-8859-1" Hi, Maybe you should use valgrind to test your program for leaks (compiling with debugging symbols should help you get a digestable log) Jonathan On 5/24/07, Lloyd wrote: > > Hi, > I have written a program in Linux. > It opens a file and maps it to memory using mmap and unmaps and closes > the file. I am using a custom written data structure as well in the > program. There is no leak associated with the data structure. But some > ware a big leak is present. (I dont know where) I assume it could be > with mmap and munmap... Because as I open more and more files, the leak > gradually increases to megabytes! but for each mam,p the munmap is > called correspondingly. And the range which I give to unmap is correct. > > Where could be the source of problem? Even after the program exit the > memory consumption remains same (not reducted to the program startup > state). I see this with the aid of system monitoring tool.. > > please help me... > > Thanks and Regards, > Lloyd > > > > > ______________________________________ > Scanned and protected by Email scanner > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > 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 > -- linux, c'est une question de VI ou de MORE -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 5 Date: Fri, 25 May 2007 12:27:15 +0530 From: Lloyd Subject: Re: [Dev-C++] memory leak! To: dev...@li... Message-ID: <1180076235.12168.5.camel@RCCF025> Content-Type: text/plain Thank you Jonathan. I tried using valgrind, but my program uses wxWidgets (a GUI library). The out put of valgrind is unreadable and not understandable for me :( It shows lots of lines as output When I executed my program more and more, at the first stages (first few 100 files) of file mapping no leak is shown, but when I go further, for each 10 or 15 files 1MB to 3MB of leak is shown! I am not understanding whats happening. Is there any chance of going something in the OS? Thank you, Lloyd On Fri, 2007-05-25 at 08:28 +0200, Jonathan Winterflood wrote: > Hi, > > Maybe you should use valgrind to test your program for leaks > (compiling with debugging symbols should help you get a digestable > log) > > Jonathan > > On 5/24/07, Lloyd wrote: > Hi, > I have written a program in Linux. > It opens a file and maps it to memory using mmap and unmaps > and closes > the file. I am using a custom written data structure as well > in the > program. There is no leak associated with the data structure. > But some > ware a big leak is present. (I dont know where) I assume it > could be > with mmap and munmap... Because as I open more and more files, > the leak > gradually increases to megabytes! but for each mam,p the > munmap is > called correspondingly. And the range which I give to unmap is > correct. > > Where could be the source of problem? Even after the program > exit the > memory consumption remains same (not reducted to the program > startup > state). I see this with the aid of system monitoring tool.. > > please help me... > > Thanks and Regards, > Lloyd > > > > > ______________________________________ > Scanned and protected by Email scanner > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and > take > control of your XML. No limits. Just data. Click to get it > now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > 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 > > > > -- > linux, c'est une question de VI ou de MORE ______________________________________ Scanned and protected by Email scanner ------------------------------ Message: 6 Date: Fri, 25 May 2007 10:51:38 +0200 (CEST) From: Per Westermark Subject: Re: [Dev-C++] memory leak! To: Lloyd Cc: dev...@li... Message-ID: Content-Type: TEXT/PLAIN; charset=US-ASCII How are you deciding that the application is leaking memory? Are you just looking at amount of free memory in Linux? Note that Linux will try to use as much of it's memory as possible for file caching, i.e. if you open and read a file and then close the application, the amount of free memory will shrink, since the OS has cached the contents of the file. The only "loss" of memory I normally have seen in Linux is when applications allocates named shared memory, and forgets to release it. The kernel will keep the shared memory blocks, allowing other applications to specify the same name to get access to the memory block. /pwm On Fri, 25 May 2007, Lloyd wrote: > Thank you Jonathan. I tried using valgrind, but my program uses > wxWidgets (a GUI library). The out put of valgrind is unreadable and not > understandable for me :( > > It shows lots of lines as output > > When I executed my program more and more, at the first stages (first few > 100 files) of file mapping no leak is shown, but when I go further, for > each 10 or 15 files 1MB to 3MB of leak is shown! I am not understanding > whats happening. Is there any chance of going something in the OS? > > Thank you, > Lloyd > > > On Fri, 2007-05-25 at 08:28 +0200, Jonathan Winterflood wrote: > > Hi, > > > > Maybe you should use valgrind to test your program for leaks > > (compiling with debugging symbols should help you get a digestable > > log) > > > > Jonathan > > > > On 5/24/07, Lloyd wrote: > > Hi, > > I have written a program in Linux. > > It opens a file and maps it to memory using mmap and unmaps > > and closes > > the file. I am using a custom written data structure as well > > in the > > program. There is no leak associated with the data structure. > > But some > > ware a big leak is present. (I dont know where) I assume it > > could be > > with mmap and munmap... Because as I open more and more files, > > the leak > > gradually increases to megabytes! but for each mam,p the > > munmap is > > called correspondingly. And the range which I give to unmap is > > correct. > > > > Where could be the source of problem? Even after the program > > exit the > > memory consumption remains same (not reducted to the program > > startup > > state). I see this with the aid of system monitoring tool.. > > > > please help me... > > > > Thanks and Regards, > > Lloyd > > > > > > > > > > ______________________________________ > > Scanned and protected by Email scanner > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and > > take > > control of your XML. No limits. Just data. Click to get it > > now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > 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 > > > > > > > > -- > > linux, c'est une question de VI ou de MORE > > > ______________________________________ > Scanned and protected by Email scanner > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > 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 DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ------------------------------ _______________________________________________ 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 End of Dev-cpp-users Digest, Vol 12, Issue 11 ********************************************* --------------------------------- It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. |
From: Per W. <pw...@ia...> - 2007-05-30 22:16:50
|
Check out the gnu documentation. It contains all information needed to use the GNU-based runtime library. You can also check out the documentation available on the MinGW site. Or you can just google gettimeofday() - it's a standard function, so you will get a lot of good hits. /pwm On Wed, 30 May 2007, barreto wrote: > > Hi all. > > Is there any example of how to use gettimeofday() similar functions to > manage time in Dev-C++? > > Thanks. > |---------------------------------------| > | Prof. Marcos Ennes Barreto > | Coordenador - Computa=E7=E3o > | Centro Universit=E1rio La Salle > | www.inf.unilasalle.edu.br/~barreto > | barreto at unilasalle dot edu dot br > |---------------------------------------| > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.472 / Virus Database: 269.8.3/824 - Release Date: 29/5/2007 > 13:01 > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > 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: barreto <ba...@un...> - 2007-05-30 20:53:02
|
Hi all. Is there any example of how to use gettimeofday() similar functions to manage time in Dev-C++? Thanks. |---------------------------------------| | Prof. Marcos Ennes Barreto | Coordenador - Computa=E7=E3o | Centro Universit=E1rio La Salle | www.inf.unilasalle.edu.br/~barreto | barreto at unilasalle dot edu dot br |---------------------------------------| No virus found in this outgoing message. Checked by AVG Free Edition.=20 Version: 7.5.472 / Virus Database: 269.8.3/824 - Release Date: 29/5/2007 13:01 =20 |
From: warbad c. <wa...@ya...> - 2007-05-29 22:24:37
|
Hello all, I'm currently trying to compile a library from my own, with actually only one function which call a system call (the rest of the files are not shown here): DLLIMPORT void DumpNetConnection (void) { LPHANDLE net; WnetOpenEnum(RESOURCE_CONNECTED, RESOURCETYPE_ANY, 0, NULL, net); return; } However, i have the follwing error at compile time : dllwrap.exe --output-def libMyLib.def --implib libMyLib.a dllmain.o -L"C:/Dev-Cpp/lib" --no-export-all-symbols --add-stdcall-alias C:/Dev-Cpp/lib/libmpr.a -g3 -o MyLib.dll dllmain.o(.text+0x2d): In function `DumpNetConnection': D:/sources/MyLib/dllmain.c:13: undefined reference to `WnetOpenEnum' What goes wrong ? I linked to the correct library in project parameter. Thank's for any help. _____________________________________________________________________________ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail |
From: Jonathan W. <jon...@gm...> - 2007-05-27 17:22:18
|
You could try looking into the Virtualdub capture mode code: it supports windows' video capture interface. http://www.virtualdub.org Jonathan On 5/27/07, Rory Walsh <ror...@ea...> wrote: > > I have done this using the windows API but it was a long time ago and > that code is long gone. Try doing a search for 'Video Capture Functions > win32' in google and you should find plenty of useful info. You could > also try using directx which also has certain functions to capturing > video. Best of luck with it. > > Rory. > > hhh hhh wrote: > > Estimeed dev...@li... : > > > > Hi people... I was hoping that you could point me some guidance. I > want to > > write a little app that captures images and video from my web cam, but = i > > can't seem to find any useful sources, as they are all strangely > written, > > like private use code. > > So, if u please could help me out, I would be very much appreciated > > > > _________________________________________________________________ > > Fazer um telefonema para o PC de um amigo n=E3o custa nada. =C9 gr=E1ti= s! > > http://get.live.com/pt-pt/messenger/overview > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > 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 DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > 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 > --=20 <Morpheus> linux, c'est une question de VI ou de MORE |
From: Rory W. <ror...@ea...> - 2007-05-27 17:09:04
|
I have done this using the windows API but it was a long time ago and that code is long gone. Try doing a search for 'Video Capture Functions win32' in google and you should find plenty of useful info. You could also try using directx which also has certain functions to capturing video. Best of luck with it. Rory. hhh hhh wrote: > Estimeed dev...@li... : > > Hi people... I was hoping that you could point me some guidance. I want to > write a little app that captures images and video from my web cam, but i > can't seem to find any useful sources, as they are all strangely written, > like private use code. > So, if u please could help me out, I would be very much appreciated > > _________________________________________________________________ > Fazer um telefonema para o PC de um amigo não custa nada. É grátis! > http://get.live.com/pt-pt/messenger/overview > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > 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: hhh h. <the...@ho...> - 2007-05-27 10:56:16
|
Estimeed dev...@li... : Hi people... I was hoping that you could point me some guidance. I want to write a little app that captures images and video from my web cam, but i can't seem to find any useful sources, as they are all strangely written, like private use code. So, if u please could help me out, I would be very much appreciated _________________________________________________________________ Fazer um telefonema para o PC de um amigo não custa nada. É grátis! http://get.live.com/pt-pt/messenger/overview |
From: Per W. <pw...@ia...> - 2007-05-25 08:52:04
|
How are you deciding that the application is leaking memory? Are you just looking at amount of free memory in Linux? Note that Linux will try to use as much of it's memory as possible for file caching, i.e. if you open and read a file and then close the application, the amount of free memory will shrink, since the OS has cached the contents of the file. The only "loss" of memory I normally have seen in Linux is when applications allocates named shared memory, and forgets to release it. The kernel will keep the shared memory blocks, allowing other applications to specify the same name to get access to the memory block. /pwm On Fri, 25 May 2007, Lloyd wrote: > Thank you Jonathan. I tried using valgrind, but my program uses > wxWidgets (a GUI library). The out put of valgrind is unreadable and not > understandable for me :( > > It shows lots of lines as output > > When I executed my program more and more, at the first stages (first few > 100 files) of file mapping no leak is shown, but when I go further, for > each 10 or 15 files 1MB to 3MB of leak is shown! I am not understanding > whats happening. Is there any chance of going something in the OS? > > Thank you, > Lloyd > > > On Fri, 2007-05-25 at 08:28 +0200, Jonathan Winterflood wrote: > > Hi, > > > > Maybe you should use valgrind to test your program for leaks > > (compiling with debugging symbols should help you get a digestable > > log) > > > > Jonathan > > > > On 5/24/07, Lloyd <ll...@cd...> wrote: > > Hi, > > I have written a program in Linux. > > It opens a file and maps it to memory using mmap and unmaps > > and closes > > the file. I am using a custom written data structure as well > > in the > > program. There is no leak associated with the data structure. > > But some > > ware a big leak is present. (I dont know where) I assume it > > could be > > with mmap and munmap... Because as I open more and more files, > > the leak > > gradually increases to megabytes! but for each mam,p the > > munmap is > > called correspondingly. And the range which I give to unmap is > > correct. > > > > Where could be the source of problem? Even after the program > > exit the > > memory consumption remains same (not reducted to the program > > startup > > state). I see this with the aid of system monitoring tool.. > > > > please help me... > > > > Thanks and Regards, > > Lloyd > > > > > > > > > > ______________________________________ > > Scanned and protected by Email scanner > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and > > take > > control of your XML. No limits. Just data. Click to get it > > now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > 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 > > > > > > > > -- > > <Morpheus> linux, c'est une question de VI ou de MORE > > > ______________________________________ > Scanned and protected by Email scanner > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > 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: Lloyd <ll...@cd...> - 2007-05-25 06:50:33
|
Thank you Jonathan. I tried using valgrind, but my program uses wxWidgets (a GUI library). The out put of valgrind is unreadable and not understandable for me :( It shows lots of lines as output When I executed my program more and more, at the first stages (first few 100 files) of file mapping no leak is shown, but when I go further, for each 10 or 15 files 1MB to 3MB of leak is shown! I am not understanding whats happening. Is there any chance of going something in the OS? Thank you, Lloyd On Fri, 2007-05-25 at 08:28 +0200, Jonathan Winterflood wrote: > Hi, > > Maybe you should use valgrind to test your program for leaks > (compiling with debugging symbols should help you get a digestable > log) > > Jonathan > > On 5/24/07, Lloyd <ll...@cd...> wrote: > Hi, > I have written a program in Linux. > It opens a file and maps it to memory using mmap and unmaps > and closes > the file. I am using a custom written data structure as well > in the > program. There is no leak associated with the data structure. > But some > ware a big leak is present. (I dont know where) I assume it > could be > with mmap and munmap... Because as I open more and more files, > the leak > gradually increases to megabytes! but for each mam,p the > munmap is > called correspondingly. And the range which I give to unmap is > correct. > > Where could be the source of problem? Even after the program > exit the > memory consumption remains same (not reducted to the program > startup > state). I see this with the aid of system monitoring tool.. > > please help me... > > Thanks and Regards, > Lloyd > > > > > ______________________________________ > Scanned and protected by Email scanner > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and > take > control of your XML. No limits. Just data. Click to get it > now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > 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 > > > > -- > <Morpheus> linux, c'est une question de VI ou de MORE ______________________________________ Scanned and protected by Email scanner |
From: Jonathan W. <jon...@gm...> - 2007-05-25 06:28:33
|
Hi, Maybe you should use valgrind to test your program for leaks (compiling with debugging symbols should help you get a digestable log) Jonathan On 5/24/07, Lloyd <ll...@cd...> wrote: > > Hi, > I have written a program in Linux. > It opens a file and maps it to memory using mmap and unmaps and closes > the file. I am using a custom written data structure as well in the > program. There is no leak associated with the data structure. But some > ware a big leak is present. (I dont know where) I assume it could be > with mmap and munmap... Because as I open more and more files, the leak > gradually increases to megabytes! but for each mam,p the munmap is > called correspondingly. And the range which I give to unmap is correct. > > Where could be the source of problem? Even after the program exit the > memory consumption remains same (not reducted to the program startup > state). I see this with the aid of system monitoring tool.. > > please help me... > > Thanks and Regards, > Lloyd > > > > > ______________________________________ > Scanned and protected by Email scanner > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > 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 > -- <Morpheus> linux, c'est une question de VI ou de MORE |
From: Lloyd <ll...@cd...> - 2007-05-24 05:47:42
|
Hi, I have written a program in Linux. It opens a file and maps it to memory using mmap and unmaps and closes the file. I am using a custom written data structure as well in the program. There is no leak associated with the data structure. But some ware a big leak is present. (I dont know where) I assume it could be with mmap and munmap... Because as I open more and more files, the leak gradually increases to megabytes! but for each mam,p the munmap is called correspondingly. And the range which I give to unmap is correct. Where could be the source of problem? Even after the program exit the memory consumption remains same (not reducted to the program startup state). I see this with the aid of system monitoring tool.. please help me... Thanks and Regards, Lloyd ______________________________________ Scanned and protected by Email scanner |
From: Per W. <pw...@ia...> - 2007-05-24 05:34:37
|
Is this part of a school work? If your list is part of an existing library, Google should find the code. If it is part of a school assignment, you better start coding. /pwm On Wed, 23 May 2007, Luis Alfonso Giraldo wrote: > Hi, > > > Please, I need code of sparse Matriz in C++: > M=E9thods: > 1. MakeDisperseMatrix(nF, nC): Matriz Dispersa vac=EDa > 2. isEmpty(DisperseMatrix): Decide si la Matriz Dispersa est=E1 vac=EDa > 3. getNumberOfRows(DisperseMatrix): Indica el n=FAmero de filas de la Mat= riz > Dispersa > 4. getNumberOfColumns(DisperseMatrix): Indica el n=FAmero de columnas de = la > Matriz Dispersa > 5. getNumberOfElements(DisperseMatrix): Indica el n=FAmero de elementos > existentes en la Matriz Dispersa > 6. printMatrix(DisperseMatrix): Imprime la matriz por filas > 7. printMatrizInFile(DisperseMatrix, File): Imprime la matriz en un archi= vo > (Guardar) > 8. getRowOfInsertion(DisperseMatrix, nF, nC): Retorna una referencia a lo= s > predecesores en la fila a insertar. > 9. makeNode(object, nF, nC): Crea un nodo. > 10. getColumnOfInsertion(DisperseMatrix, nF, nC): Retorna una referencia = a > los predecesores en la columna a insertar. > 11. InsertInMatriz(DisperseMatrix, nF, nC, object): Inserta "object" en l= a > fila y columna indicada. > 12. getValuePosition(DisperseMatrix, nF, nC): Retorna el valor almacenado= en > la fila y columna indicado. Si no existe devuelve 0. > 13. getPorcentUsed(DisperseMatrix): Indica el porcentaje de elementos > almacenados. > 14. getMaxElements(DisperseMatrix): Indica el n=FAmero m=E1ximo de elemen= tos que > pueden ser almacenados en la matriz. > 15. addDisperseMatrix(DisperseMatrix1, DisperseMatrix2): Devuelve en > DisperseMatrix1 el resultado de sumar las dos matrices. > 16. scaleDisperseMatrix(DisperseMatrix, valor): Retorna la matriz resulta= nte > de multiplicar cada posici=F3n =09existente por valor. > 17. multDisperseMatrix (DisperseMatrix1,DisperseMatrix2, DisperseMatrix3)= : > Retorna en DisperseMatrix3 el resultante de multiplicar las matrices > DisperseMatrix1 y DisperseMatrix2(en ese orden). > > Thanks and excuse me :( > > Luis Alfonso > Colombia > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > 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: Luis A. G. <lgi...@te...> - 2007-05-24 04:22:18
|
Hi, Please, I need code of sparse Matriz in C++: M=E9thods: 1. MakeDisperseMatrix(nF, nC): Matriz Dispersa vac=EDa 2. isEmpty(DisperseMatrix): Decide si la Matriz Dispersa est=E1 vac=EDa 3. getNumberOfRows(DisperseMatrix): Indica el n=FAmero de filas de la = Matriz Dispersa 4. getNumberOfColumns(DisperseMatrix): Indica el n=FAmero de columnas de = la Matriz Dispersa 5. getNumberOfElements(DisperseMatrix): Indica el n=FAmero de elementos existentes en la Matriz Dispersa 6. printMatrix(DisperseMatrix): Imprime la matriz por filas 7. printMatrizInFile(DisperseMatrix, File): Imprime la matriz en un = archivo (Guardar) 8. getRowOfInsertion(DisperseMatrix, nF, nC): Retorna una referencia a = los predecesores en la fila a insertar. 9. makeNode(object, nF, nC): Crea un nodo. 10. getColumnOfInsertion(DisperseMatrix, nF, nC): Retorna una referencia = a los predecesores en la columna a insertar. 11. InsertInMatriz(DisperseMatrix, nF, nC, object): Inserta "object" en = la fila y columna indicada. 12. getValuePosition(DisperseMatrix, nF, nC): Retorna el valor = almacenado en la fila y columna indicado. Si no existe devuelve 0. 13. getPorcentUsed(DisperseMatrix): Indica el porcentaje de elementos almacenados. 14. getMaxElements(DisperseMatrix): Indica el n=FAmero m=E1ximo de = elementos que pueden ser almacenados en la matriz. 15. addDisperseMatrix(DisperseMatrix1, DisperseMatrix2): Devuelve en DisperseMatrix1 el resultado de sumar las dos matrices. 16. scaleDisperseMatrix(DisperseMatrix, valor): Retorna la matriz = resultante de multiplicar cada posici=F3n existente por valor. 17. multDisperseMatrix (DisperseMatrix1,DisperseMatrix2, = DisperseMatrix3): Retorna en DisperseMatrix3 el resultante de multiplicar las matrices DisperseMatrix1 y DisperseMatrix2(en ese orden). Thanks and excuse me :( Luis Alfonso Colombia |
From: Per W. <pw...@ia...> - 2007-05-23 22:48:43
|
You seem to have missed the difference between include (header) files and linking to libraries. An include file only contains declarations of functions and variables that are available in a library or another source file. They may be included using "filename" or <filename>. If included using the <filename> form, the include files must be available in the compiler search path. If included using the "filename" form, they must be available in the current directory (or the directory specified in the file name). If you open the project settings, you can add more directories to scan for include files by adding one or more parameters: -I path among the compiler settings, where path is an extra directory to search for include (header) files. To actually link with a library, you must add the library to the project. If a library is called libgsl.a, you must open the project settings, and among the linker commands add a line containing: -lgsl This assumes that the library is in the compiler search path for libraries. You can defined more library search directories by adding one or more linker commands on the form: -L path where path is an extra directory to search for libraries to link with. In short: You haven't started to try to link with any library yet. You have only tried to compile code that requires a couple of include files. If one of your libraries have a header file lib.h, then you should either write a line: #include "lib.h" (if the file is in the current directory) #include "gsl/lib.h" (if the file is in the gsl subdirectory) #include "/gsl/lib.h" (if the file is in the /gsl directory) #include <lib.h> (if the file is in a configured include search directory) First when you have managed to compile all source files will Dev-C++ try to link any libraries to your application. /pwm On Wed, 23 May 2007, Vassily Shvets wrote: > Hello, > I'm interested in running codes that were developed in > connection with biological models. > > I'm hoping my question will be pertinent to others who > are also interested in mathematical modeling. > > Using Dev C++, and having followed all procedures(I > think) to link libraries(GSL, dislin and a couple of > others), and trying to compile a page of the > biological model code I referred to, the preprocessing > stage replies with "<lib.h>. No such file or > directory." This same reply occurs with whichever > library I want to link(except stdio.h). > > This also applies to linking of GSL math library, > thinking to try basic bits of script right from the > gsl reference manual, and thereby to progress in > knowledge about linking of libraries. Beyond having > followed directions for linking libraries for Dev C++, > and starting a new project and file then pasting a > program into the Dev C++ workspace, perhaps a very > basic description of the process of linking the GSL > library(and other libraries) for one of the GSL math > functions would benefit a number of people who would > like to do this? > > -shfets > > > > ____________________________________________________________________________________Ready for the edge of your seat? > Check out tonight's top picks on Yahoo! TV. > http://tv.yahoo.com/ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > 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: Vassily S. <sh...@ya...> - 2007-05-23 21:49:51
|
Hello, I'm interested in running codes that were developed in connection with biological models. I'm hoping my question will be pertinent to others who are also interested in mathematical modeling. Using Dev C++, and having followed all procedures(I think) to link libraries(GSL, dislin and a couple of others), and trying to compile a page of the biological model code I referred to, the preprocessing stage replies with "<lib.h>. No such file or directory." This same reply occurs with whichever library I want to link(except stdio.h). This also applies to linking of GSL math library, thinking to try basic bits of script right from the gsl reference manual, and thereby to progress in knowledge about linking of libraries. Beyond having followed directions for linking libraries for Dev C++, and starting a new project and file then pasting a program into the Dev C++ workspace, perhaps a very basic description of the process of linking the GSL library(and other libraries) for one of the GSL math functions would benefit a number of people who would like to do this? -shfets ____________________________________________________________________________________Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. http://tv.yahoo.com/ |
From: Jan M. <jan...@vo...> - 2007-05-21 15:01:58
|
Oh, thank you. There were nothing about TABs in the a manual I took the example from. It is like in this strange script language I worked. I cannot remember how it is called. But could not find an error and it were TABs at the biginnig of the lines too. Thank you very much Jan Mura ----- Original Message ----- From: "Lloyd" <ll...@cd...> To: "Jan Mura" <jan...@vo...> Cc: <dev...@li...> Sent: Monday, May 21, 2007 2:49 PM Subject: Re: [Dev-C++] An error in makefile > > > $(CC) $(FILES) -o out_exe # here is the line 7 with a missing separator > > do you mean this? > > $(CC) $(FILES) -o $(OUT_EXE) > > Regards, > Lloyd > > On Mon, 2007-05-21 at 14:30 +0200, Jan Mura wrote: > > Hello, > > > > I would like to compile my program using make. So I have written a makefile. > > Or to be honest just copy it from somewhere. > > > > It looks like: > > > > CC = gcc > > > > FILES = main.c bet_list.c > > > > OUT_EXE = ruleta.exe > > build: $(FILES) > > $(CC) $(FILES) -o out_exe # here is the line 7 with a missing separator > > > > clean: > > rm -f *.o core > > > > rebuild: clean build > > > > $(CC) -o $(OUT_EXE) $(FILES) > > > > clean: > > rm -f *.o core > > > > When I run make the output is: > > > > makefile:7: *** missing separator. Stop. > > > > I really do not know what separator is missing. > > Anyone see the mistake? > > > > Thank you in forward > > > > Jan Mura > > jan...@vo... > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > 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 > > > __________ Informace od NOD32 2281 (20070521) __________ > > Tato zprava byla proverena antivirovym systemem NOD32. > http://www.nod32.cz > > |
From: Lloyd <ll...@cd...> - 2007-05-21 12:42:45
|
$(CC) $(FILES) -o out_exe # here is the line 7 with a missing separator do you mean this? $(CC) $(FILES) -o $(OUT_EXE) Regards, Lloyd On Mon, 2007-05-21 at 14:30 +0200, Jan Mura wrote: > Hello, > > I would like to compile my program using make. So I have written a makefile. > Or to be honest just copy it from somewhere. > > It looks like: > > CC = gcc > > FILES = main.c bet_list.c > > OUT_EXE = ruleta.exe > build: $(FILES) > $(CC) $(FILES) -o out_exe # here is the line 7 with a missing separator > > clean: > rm -f *.o core > > rebuild: clean build > > $(CC) -o $(OUT_EXE) $(FILES) > > clean: > rm -f *.o core > > When I run make the output is: > > makefile:7: *** missing separator. Stop. > > I really do not know what separator is missing. > Anyone see the mistake? > > Thank you in forward > > Jan Mura > jan...@vo... > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > 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: Jonathan W. <jon...@gm...> - 2007-05-21 12:41:14
|
Hi, make syntax requires a tabulation before command lines inside rules. ie: target: dependencies [tab]command [tab]other command One cannot replace the tab by spaces. Jonathan On 5/21/07, Jan Mura <jan...@vo...> wrote: > > Hello, > > I would like to compile my program using make. So I have written a > makefile. > Or to be honest just copy it from somewhere. > > It looks like: > > CC = gcc > > FILES = main.c bet_list.c > > OUT_EXE = ruleta.exe > build: $(FILES) > $(CC) $(FILES) -o out_exe # here is the line 7 with a missing separator > > clean: > rm -f *.o core > > rebuild: clean build > > $(CC) -o $(OUT_EXE) $(FILES) > > clean: > rm -f *.o core > > When I run make the output is: > > makefile:7: *** missing separator. Stop. > > I really do not know what separator is missing. > Anyone see the mistake? > > Thank you in forward > > Jan Mura > jan...@vo... > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > 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...> - 2007-05-21 12:30:11
|
Hello, I would like to compile my program using make. So I have written a makefile. Or to be honest just copy it from somewhere. It looks like: CC = gcc FILES = main.c bet_list.c OUT_EXE = ruleta.exe build: $(FILES) $(CC) $(FILES) -o out_exe # here is the line 7 with a missing separator clean: rm -f *.o core rebuild: clean build $(CC) -o $(OUT_EXE) $(FILES) clean: rm -f *.o core When I run make the output is: makefile:7: *** missing separator. Stop. I really do not know what separator is missing. Anyone see the mistake? Thank you in forward Jan Mura jan...@vo... |