dev-cpp-users Mailing List for Dev-C++ (Page 25)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
(115) |
Nov
(154) |
Dec
(258) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(377) |
Feb
(260) |
Mar
(249) |
Apr
(188) |
May
(152) |
Jun
(150) |
Jul
(195) |
Aug
(202) |
Sep
(200) |
Oct
(286) |
Nov
(242) |
Dec
(165) |
2002 |
Jan
(245) |
Feb
(241) |
Mar
(239) |
Apr
(346) |
May
(406) |
Jun
(369) |
Jul
(418) |
Aug
(357) |
Sep
(362) |
Oct
(597) |
Nov
(455) |
Dec
(344) |
2003 |
Jan
(446) |
Feb
(397) |
Mar
(515) |
Apr
(524) |
May
(377) |
Jun
(387) |
Jul
(532) |
Aug
(364) |
Sep
(294) |
Oct
(352) |
Nov
(295) |
Dec
(327) |
2004 |
Jan
(416) |
Feb
(318) |
Mar
(324) |
Apr
(249) |
May
(259) |
Jun
(218) |
Jul
(212) |
Aug
(259) |
Sep
(158) |
Oct
(162) |
Nov
(214) |
Dec
(169) |
2005 |
Jan
(111) |
Feb
(165) |
Mar
(199) |
Apr
(147) |
May
(131) |
Jun
(163) |
Jul
(235) |
Aug
(136) |
Sep
(84) |
Oct
(88) |
Nov
(113) |
Dec
(100) |
2006 |
Jan
(85) |
Feb
(119) |
Mar
(33) |
Apr
(31) |
May
(56) |
Jun
(68) |
Jul
(18) |
Aug
(62) |
Sep
(33) |
Oct
(55) |
Nov
(19) |
Dec
(40) |
2007 |
Jan
(22) |
Feb
(49) |
Mar
(34) |
Apr
(51) |
May
(66) |
Jun
(43) |
Jul
(116) |
Aug
(57) |
Sep
(70) |
Oct
(69) |
Nov
(97) |
Dec
(86) |
2008 |
Jan
(32) |
Feb
(47) |
Mar
(106) |
Apr
(67) |
May
(28) |
Jun
(39) |
Jul
(31) |
Aug
(25) |
Sep
(18) |
Oct
(25) |
Nov
(5) |
Dec
(21) |
2009 |
Jan
(33) |
Feb
(27) |
Mar
(27) |
Apr
(22) |
May
(22) |
Jun
(10) |
Jul
(17) |
Aug
(9) |
Sep
(21) |
Oct
(13) |
Nov
(4) |
Dec
(11) |
2010 |
Jan
(10) |
Feb
(8) |
Mar
(4) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(26) |
Nov
(9) |
Dec
(1) |
2011 |
Jan
(21) |
Feb
(16) |
Mar
(4) |
Apr
(19) |
May
(26) |
Jun
(9) |
Jul
(6) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
2012 |
Jan
(4) |
Feb
(7) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(10) |
Jul
(1) |
Aug
(1) |
Sep
(18) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
2013 |
Jan
(4) |
Feb
(2) |
Mar
(15) |
Apr
(6) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
|
2014 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(4) |
2015 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(9) |
Nov
(35) |
Dec
(6) |
2016 |
Jan
(7) |
Feb
(10) |
Mar
(10) |
Apr
(9) |
May
(13) |
Jun
(9) |
Jul
(1) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Per W. <pw...@ia...> - 2008-08-02 15:42:25
|
Do not reformulate the error messages. Cut and paste the messages you get. /pwm On Sat, 2 Aug 2008, Randy Cruz wrote: > I both have Dev C++ 4 and 5 and both of them don't work. With Dev C++ 4, whenever I compile, I see the compiling error, g++ installation problem, can exec 'cpp'. No such file or directory. For Dev C++5 the compiler displays C:\ Dev Cpp\ include\stdio.h with message type specifier omitted for parameter. What could be the problem and how can it be fix?? Thanks. > > > |
From: Randy C. <dar...@ya...> - 2008-08-02 09:16:43
|
I both have Dev C++ 4 and 5 and both of them don't work. With Dev C++ 4, whenever I compile, I see the compiling error, g++ installation problem, can exec 'cpp'. No such file or directory. For Dev C++5 the compiler displays C:\ Dev Cpp\ include\stdio.h with message type specifier omitted for parameter. What could be the problem and how can it be fix?? Thanks. |
From: Chris M. <lor...@gm...> - 2008-07-28 05:18:28
|
Noel Wallen wrote: > > Hi All; > I would like to compile and run a multithreaded cppluss program > using pthread library how is this done. Perhaps you should learn how to use a mailing list first? You should probably start a new thread, instead of hijacking someone else's. In common speak, what you've done is rude. Also try using Google. A simple search for "pthreads howto" turned up this excellent resource: http://www.yolinux.com/TUTORIALS/LinuxTutorialPosixThreads.html I would also glean that you need further training in how to use a keyboard effectively, as I've never seen the "cppluss" language before. I assume you're really talking about C++, which is a very popular language. If this new "cppluss" language is somehow superior to C++ in some way, please let me know, since I'd be very interested to see it! -- Registered Linux Addict #431495 http://profile.xfire.com/mrstalinman | John 3:16! http://www.fsdev.net/ | http://lordsauron.wordpress.com/ |
From: Noel W. <nw...@ny...> - 2008-07-28 03:46:45
|
Hi All; I would like to compile and run a multithreaded cppluss program using pthread library how is this done. HYPERLINK "outbind://35/Wally_files/image001.gif" NWallen -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Tim Rambo Sent: Friday, July 18, 2008 8:24 AM To: Per Westermark Cc: dev...@li... Subject: Re: [Dev-C++] linker error when cross compiling thru cygwin Actually, if you look at the end of the compile log, I did. > Building Makefile: "C:\Documents and Settings\student\Desktop\sepatriot\spa pc\gsl-test\Makefile.win" > Executing make... > make.exe -f "C:\Documents and Settings\student\Desktop\sepatriot\spa pc\gsl-test\Makefile.win" all > arm-unknown-linux-gnu-gcc.exe test-gsl.o -o "gsl-test.exe" -L"C:/cygwin/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/l ib" -L"C:/cygwin/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/a rm-unknown-linux-gnu/lib" -L"C:/cygwin/lib" -L/cygdrive/c/cygwin/opt/crosstool//gcc-3.3.4-glibc-2.3.2/arm-unknown-li nux-gnu/lib -L/cygdrive/c/cygwin/opt/crosstool//gcc-3.3.4-glibc-2.3.2/arm-unknown-li nux-gnu/usr/include -lgsl -lm -lgslcblas I've been thinking that its possible the library needs to be built using my crosstool, does this sound reasonable? have been attempting to get gsl built with my crosstool in cygwin. but I am having problems with that as well. >>> Per Westermark <pw...@ia...> 7/17/2008 8:11 PM >>> You don't specify what library to use. C and C++ do not automagically try all libraries, just because you add them in your search path. -L <directory> just tells the linker where to look for a library that you have explicitly included in the linking. There are a few exceptions, which allows the standard RTL to be linked without you specifying the name. If you somewhere in all the library directories you specified has a file named libgsl.a, then you should have had a -lgsl to tell the linker to make use of this gsl library. /pwm On Mon, 14 Jul 2008, Tim Rambo wrote: > hey all, > > I'm trying to use gsl to do some linear algebra, and right now I'm just trying to compile this example code from the gnu website: > > #include <stdio.h> > #include <gsl/gsl_linalg.h> > > > int > main (void) > { > double a_data[] = { 0.18, 0.60, 0.57, 0.96, > 0.41, 0.24, 0.99, 0.58, > 0.14, 0.30, 0.97, 0.66, > 0.51, 0.13, 0.19, 0.85 }; > > double b_data[] = { 1.0, 2.0, 3.0, 4.0 }; > > gsl_matrix_view m > = gsl_matrix_view_array (a_data, 4, 4); > > gsl_vector_view b > = gsl_vector_view_array (b_data, 4); > > gsl_vector *x = gsl_vector_alloc (4); > > int s; > > gsl_permutation * p = gsl_permutation_alloc (4); > > gsl_linalg_LU_decomp (&m.matrix, p, &s); > > gsl_linalg_LU_solve (&m.matrix, p, &b.vector, x); > > printf ("x = \n"); > gsl_vector_fprintf (stdout, x, "%g"); > > gsl_permutation_free (p); > gsl_vector_free (x); > return 0; > } > > > I'm using a crosstool through cygwin to compile for an ARM processor. The compile log looks like this: > > Building Makefile: "C:\Documents and Settings\student\Desktop\sepatriot\spa pc\gsl-test\Makefile.win" > Executing make... > make.exe -f "C:\Documents and Settings\student\Desktop\sepatriot\spa pc\gsl-test\Makefile.win" all > arm-unknown-linux-gnu-gcc.exe test-gsl.o -o "gsl-test.exe" -L"C:/cygwin/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/l ib" -L/cygdrive/c/cygwin/opt/crosstool//gcc-3.3.4-glibc-2.3.2/arm-unknown-li nux-gnu/lib -L/cygdrive/c/cygwin/opt/crosstool//gcc-3.3.4-glibc-2.3.2/arm-unknown-li nux-gnu/usr/include -lgsl -lm -lgslcblas > > Building Makefile: "C:\Documents and Settings\student\Desktop\sepatriot\spa pc\gsl-test\Makefile.win" > Executing make... > make.exe -f "C:\Documents and Settings\student\Desktop\sepatriot\spa pc\gsl-test\Makefile.win" all > arm-unknown-linux-gnu-gcc.exe test-gsl.o -o "gsl-test.exe" -L"C:/cygwin/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/l ib" -L"C:/cygwin/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/a rm-unknown-linux-gnu/lib" -L"C:/cygwin/lib" -L/cygdrive/c/cygwin/opt/crosstool//gcc-3.3.4-glibc-2.3.2/arm-unknown-li nux-gnu/lib -L/cygdrive/c/cygwin/opt/crosstool//gcc-3.3.4-glibc-2.3.2/arm-unknown-li nux-gnu/usr/include -lgsl -lm -lgslcblas > > test-gsl.o(.text+0x60): In function `main': > : undefined reference to `gsl_matrix_view_array' > test-gsl.o(.text+0x78): In function `main': > : undefined reference to `gsl_vector_view_array' > test-gsl.o(.text+0x80): In function `main': > : undefined reference to `gsl_vector_alloc' > test-gsl.o(.text+0x90): In function `main': > : undefined reference to `gsl_permutation_alloc' > test-gsl.o(.text+0xac): In function `main': > : undefined reference to `gsl_linalg_LU_decomp' > test-gsl.o(.text+0xc4): In function `main': > : undefined reference to `gsl_linalg_LU_solve' > test-gsl.o(.text+0xe0): In function `main': > : undefined reference to `gsl_vector_fprintf' > test-gsl.o(.text+0xe8): In function `main': > : undefined reference to `gsl_permutation_free' > test-gsl.o(.text+0xf0): In function `main': > : undefined reference to `gsl_vector_free' > collect2: ld returned 1 exit status > make.exe: *** [gsl-test.exe] Error 1 > > Execution terminated > > the reason that this confuses me is that I have the libraries stored in: C:\cygwin\lib and the includes for gsl in: C:\cygwin\usr\include. If anybody can help me out I will be eternally grateful. > > > TMR > > > Internal Virus Database is out-of-date. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.11.2/931 - Release Date: 8/1/2007 4:53 PM Internal Virus Database is out-of-date. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.11.2/931 - Release Date: 8/1/2007 4:53 PM |
From: Per W. <pw...@ia...> - 2008-07-23 07:26:34
|
You haven't specified your environment. Linux? Cygwin? Other? If Cygwin, have you installed the ioperm.sys driver? If Linux, have you read the man pages, saying typically: "You compile with -O or -O2 or similar. The functions are defined as inline macros, and will not be substituted in without optimization enabled, causing unresolved references at link time." Always make sure that you supply _ample_ information when asking questions, since the people who you want to answer your question only have the information in your mail. We can't guess what extra information you have left out. /pwm On Mon, 21 Jul 2008, frederico schardong wrote: > please see this: > > #include <stdio.h> > #include <stdlib.h> > #include <conio.h> > #include <asm/io.h> > #include <unistd.h> > > #define LPT1 0x378 > > int libera_porta(){ > if(ioperm(LPT1,3,1)==1)//libera acesso para os endereços > 0x378,0x379,0x37A > return(1); > else > return(0); > } > > fecha_porta(){ > ioperm(LPT1,3,0); > } > > main(){ > if(libera_porta() == 1) > printf("\nPorta liberada com sucesso\n"); > > else > printf("\nPorta nao liberada\n"); > > //outb(255,LPT1); > > fecha_porta(); > > } > > > I was execute on root, but never get permission to use the lpt, and when > outb is not reviewed I recive this error: (.text+0x101): undefined reference > to '__outb'. > tanks > |
From: frederico s. <fre...@gm...> - 2008-07-23 00:49:29
|
I'm trying to use the function outb, already received permission to use the function ioperm the parallel port, but the task is not writing in the output. Any ideas on this? |
From: frederico s. <fre...@gm...> - 2008-07-21 16:24:18
|
please see this: #include <stdio.h> #include <stdlib.h> #include <conio.h> #include <asm/io.h> #include <unistd.h> #define LPT1 0x378 int libera_porta(){ if(ioperm(LPT1,3,1)==1)//libera acesso para os endereços 0x378,0x379,0x37A return(1); else return(0); } fecha_porta(){ ioperm(LPT1,3,0); } main(){ if(libera_porta() == 1) printf("\nPorta liberada com sucesso\n"); else printf("\nPorta nao liberada\n"); //outb(255,LPT1); fecha_porta(); } I was execute on root, but never get permission to use the lpt, and when outb is not reviewed I recive this error: (.text+0x101): undefined reference to '__outb'. tanks |
From: Per W. <pw...@ia...> - 2008-07-18 19:50:02
|
I think you are in need of a good C or C++ book. The interface should be in a header file (*.h or *.hpp), and the compiler will make use of this header file because you #include "my_header.h". When specifying the file name with "" instead of <>, the compiler will first look for the file in your project directory, i.e. the same place as you have your *.cpp file(s). If you have multiple *.cpp files, then you just make sure that the project contains a reference to each and every *.cpp file you write. That will take care of the implementation. /pwm On Fri, 18 Jul 2008, Chryspear Solutions wrote: > Hello, > > i'm new to C++ Programming. pls how do i compile multiple source files. > > i separated the interface of a class (as a header file) from its implemetation. how do i tell the compiler to look for the header file > > thank you > > > |
From: Chryspear S. <sol...@ya...> - 2008-07-18 18:48:10
|
Hello, i'm new to C++ Programming. pls how do i compile multiple source files. i separated the interface of a class (as a header file) from its implemetation. how do i tell the compiler to look for the header file thank you |
From: Per W. <pw...@ia...> - 2008-07-18 13:14:41
|
Oops, yes you are correct - I missed that one. It is so common that people only includes their header files and specify the correct library directories that I more or less take for granted that the actual -lxx parameter is missing :) /pwm On Fri, 18 Jul 2008, Tim Rambo wrote: > Actually, if you look at the end of the compile log, I did. > > > Building Makefile: "C:\Documents and Settings\student\Desktop\sepatriot\spa pc\gsl-test\Makefile.win" > > Executing make... > > make.exe -f "C:\Documents and Settings\student\Desktop\sepatriot\spa pc\gsl-test\Makefile.win" all > > arm-unknown-linux-gnu-gcc.exe test-gsl.o -o "gsl-test.exe" -L"C:/cygwin/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/lib" -L"C:/cygwin/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib" -L"C:/cygwin/lib" -L/cygdrive/c/cygwin/opt/crosstool//gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/lib -L/cygdrive/c/cygwin/opt/crosstool//gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/usr/include -lgsl -lm -lgslcblas > I've been thinking that its possible the library needs to be built using my crosstool, does this sound reasonable? have been attempting to get gsl built with my crosstool in cygwin. but I am having problems with that as well. > > > >>> Per Westermark <pw...@ia...> 7/17/2008 8:11 PM >>> > You don't specify what library to use. > > C and C++ do not automagically try all libraries, just because you add > them in your search path. -L <directory> just tells the linker where to > look for a library that you have explicitly included in the linking. There > are a few exceptions, which allows the standard RTL to be linked without > you specifying the name. > > If you somewhere in all the library directories you specified has a file > named libgsl.a, then you should have had a -lgsl to tell the linker to > make use of this gsl library. > > /pwm > > On Mon, 14 Jul 2008, Tim Rambo wrote: > > > hey all, > > > > I'm trying to use gsl to do some linear algebra, and right now I'm just trying to compile this example code from the gnu website: > > > > #include <stdio.h> > > #include <gsl/gsl_linalg.h> > > > > > > int > > main (void) > > { > > double a_data[] = { 0.18, 0.60, 0.57, 0.96, > > 0.41, 0.24, 0.99, 0.58, > > 0.14, 0.30, 0.97, 0.66, > > 0.51, 0.13, 0.19, 0.85 }; > > > > double b_data[] = { 1.0, 2.0, 3.0, 4.0 }; > > > > gsl_matrix_view m > > = gsl_matrix_view_array (a_data, 4, 4); > > > > gsl_vector_view b > > = gsl_vector_view_array (b_data, 4); > > > > gsl_vector *x = gsl_vector_alloc (4); > > > > int s; > > > > gsl_permutation * p = gsl_permutation_alloc (4); > > > > gsl_linalg_LU_decomp (&m.matrix, p, &s); > > > > gsl_linalg_LU_solve (&m.matrix, p, &b.vector, x); > > > > printf ("x = \n"); > > gsl_vector_fprintf (stdout, x, "%g"); > > > > gsl_permutation_free (p); > > gsl_vector_free (x); > > return 0; > > } > > > > > > I'm using a crosstool through cygwin to compile for an ARM processor. The compile log looks like this: > > > > Building Makefile: "C:\Documents and Settings\student\Desktop\sepatriot\spa pc\gsl-test\Makefile.win" > > Executing make... > > make.exe -f "C:\Documents and Settings\student\Desktop\sepatriot\spa pc\gsl-test\Makefile.win" all > > arm-unknown-linux-gnu-gcc.exe test-gsl.o -o "gsl-test.exe" -L"C:/cygwin/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/lib" -L/cygdrive/c/cygwin/opt/crosstool//gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/lib -L/cygdrive/c/cygwin/opt/crosstool//gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/usr/include -lgsl -lm -lgslcblas > > > > Building Makefile: "C:\Documents and Settings\student\Desktop\sepatriot\spa pc\gsl-test\Makefile.win" > > Executing make... > > make.exe -f "C:\Documents and Settings\student\Desktop\sepatriot\spa pc\gsl-test\Makefile.win" all > > arm-unknown-linux-gnu-gcc.exe test-gsl.o -o "gsl-test.exe" -L"C:/cygwin/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/lib" -L"C:/cygwin/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib" -L"C:/cygwin/lib" -L/cygdrive/c/cygwin/opt/crosstool//gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/lib -L/cygdrive/c/cygwin/opt/crosstool//gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/usr/include -lgsl -lm -lgslcblas > > > > test-gsl.o(.text+0x60): In function `main': > > : undefined reference to `gsl_matrix_view_array' > > test-gsl.o(.text+0x78): In function `main': > > : undefined reference to `gsl_vector_view_array' > > test-gsl.o(.text+0x80): In function `main': > > : undefined reference to `gsl_vector_alloc' > > test-gsl.o(.text+0x90): In function `main': > > : undefined reference to `gsl_permutation_alloc' > > test-gsl.o(.text+0xac): In function `main': > > : undefined reference to `gsl_linalg_LU_decomp' > > test-gsl.o(.text+0xc4): In function `main': > > : undefined reference to `gsl_linalg_LU_solve' > > test-gsl.o(.text+0xe0): In function `main': > > : undefined reference to `gsl_vector_fprintf' > > test-gsl.o(.text+0xe8): In function `main': > > : undefined reference to `gsl_permutation_free' > > test-gsl.o(.text+0xf0): In function `main': > > : undefined reference to `gsl_vector_free' > > collect2: ld returned 1 exit status > > make.exe: *** [gsl-test.exe] Error 1 > > > > Execution terminated > > > > the reason that this confuses me is that I have the libraries stored in: C:\cygwin\lib and the includes for gsl in: C:\cygwin\usr\include. If anybody can help me out I will be eternally grateful. > > > > > > TMR > > > > > > > > |
From: Tim R. <tm...@al...> - 2008-07-18 12:22:45
|
Actually, if you look at the end of the compile log, I did. > Building Makefile: "C:\Documents and Settings\student\Desktop\sepatriot\spa pc\gsl-test\Makefile.win" > Executing make... > make.exe -f "C:\Documents and Settings\student\Desktop\sepatriot\spa pc\gsl-test\Makefile.win" all > arm-unknown-linux-gnu-gcc.exe test-gsl.o -o "gsl-test.exe" -L"C:/cygwin/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/lib" -L"C:/cygwin/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib" -L"C:/cygwin/lib" -L/cygdrive/c/cygwin/opt/crosstool//gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/lib -L/cygdrive/c/cygwin/opt/crosstool//gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/usr/include -lgsl -lm -lgslcblas I've been thinking that its possible the library needs to be built using my crosstool, does this sound reasonable? have been attempting to get gsl built with my crosstool in cygwin. but I am having problems with that as well. >>> Per Westermark <pw...@ia...> 7/17/2008 8:11 PM >>> You don't specify what library to use. C and C++ do not automagically try all libraries, just because you add them in your search path. -L <directory> just tells the linker where to look for a library that you have explicitly included in the linking. There are a few exceptions, which allows the standard RTL to be linked without you specifying the name. If you somewhere in all the library directories you specified has a file named libgsl.a, then you should have had a -lgsl to tell the linker to make use of this gsl library. /pwm On Mon, 14 Jul 2008, Tim Rambo wrote: > hey all, > > I'm trying to use gsl to do some linear algebra, and right now I'm just trying to compile this example code from the gnu website: > > #include <stdio.h> > #include <gsl/gsl_linalg.h> > > > int > main (void) > { > double a_data[] = { 0.18, 0.60, 0.57, 0.96, > 0.41, 0.24, 0.99, 0.58, > 0.14, 0.30, 0.97, 0.66, > 0.51, 0.13, 0.19, 0.85 }; > > double b_data[] = { 1.0, 2.0, 3.0, 4.0 }; > > gsl_matrix_view m > = gsl_matrix_view_array (a_data, 4, 4); > > gsl_vector_view b > = gsl_vector_view_array (b_data, 4); > > gsl_vector *x = gsl_vector_alloc (4); > > int s; > > gsl_permutation * p = gsl_permutation_alloc (4); > > gsl_linalg_LU_decomp (&m.matrix, p, &s); > > gsl_linalg_LU_solve (&m.matrix, p, &b.vector, x); > > printf ("x = \n"); > gsl_vector_fprintf (stdout, x, "%g"); > > gsl_permutation_free (p); > gsl_vector_free (x); > return 0; > } > > > I'm using a crosstool through cygwin to compile for an ARM processor. The compile log looks like this: > > Building Makefile: "C:\Documents and Settings\student\Desktop\sepatriot\spa pc\gsl-test\Makefile.win" > Executing make... > make.exe -f "C:\Documents and Settings\student\Desktop\sepatriot\spa pc\gsl-test\Makefile.win" all > arm-unknown-linux-gnu-gcc.exe test-gsl.o -o "gsl-test.exe" -L"C:/cygwin/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/lib" -L/cygdrive/c/cygwin/opt/crosstool//gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/lib -L/cygdrive/c/cygwin/opt/crosstool//gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/usr/include -lgsl -lm -lgslcblas > > Building Makefile: "C:\Documents and Settings\student\Desktop\sepatriot\spa pc\gsl-test\Makefile.win" > Executing make... > make.exe -f "C:\Documents and Settings\student\Desktop\sepatriot\spa pc\gsl-test\Makefile.win" all > arm-unknown-linux-gnu-gcc.exe test-gsl.o -o "gsl-test.exe" -L"C:/cygwin/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/lib" -L"C:/cygwin/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib" -L"C:/cygwin/lib" -L/cygdrive/c/cygwin/opt/crosstool//gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/lib -L/cygdrive/c/cygwin/opt/crosstool//gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/usr/include -lgsl -lm -lgslcblas > > test-gsl.o(.text+0x60): In function `main': > : undefined reference to `gsl_matrix_view_array' > test-gsl.o(.text+0x78): In function `main': > : undefined reference to `gsl_vector_view_array' > test-gsl.o(.text+0x80): In function `main': > : undefined reference to `gsl_vector_alloc' > test-gsl.o(.text+0x90): In function `main': > : undefined reference to `gsl_permutation_alloc' > test-gsl.o(.text+0xac): In function `main': > : undefined reference to `gsl_linalg_LU_decomp' > test-gsl.o(.text+0xc4): In function `main': > : undefined reference to `gsl_linalg_LU_solve' > test-gsl.o(.text+0xe0): In function `main': > : undefined reference to `gsl_vector_fprintf' > test-gsl.o(.text+0xe8): In function `main': > : undefined reference to `gsl_permutation_free' > test-gsl.o(.text+0xf0): In function `main': > : undefined reference to `gsl_vector_free' > collect2: ld returned 1 exit status > make.exe: *** [gsl-test.exe] Error 1 > > Execution terminated > > the reason that this confuses me is that I have the libraries stored in: C:\cygwin\lib and the includes for gsl in: C:\cygwin\usr\include. If anybody can help me out I will be eternally grateful. > > > TMR > > > |
From: Ben M. <ili...@at...> - 2008-07-18 02:03:24
|
I am trying to write a small OS kernel, and i need binary output for that. So, why don't you start your request by telling exactly what you need a your binary file for? Are you trying to write a BIOS for your computer? /pwm On Wed, 16 Jul 2008, Ben Melikant wrote: > > Hello everybody. I am trying to use MinGW to make a flat binary image, > > but am unsure how to do it. I tried to compile using the following > > commands: > > > > gcc -c program.c > > ld program.o -o program.bin --oformat=binary --Ttext=0x0 > > > > this told me that I could not perform PE operations on non-PE file > > program.bin. I also tried this: > > > > gcc -c program.c > > ld -o test.bin -Ttext 0x0 -e _main test.o > > > > This gave me the error: > > Undefined reference to _alloca > > Undefined reference to __main > > > > How do i specify the command line options to make the binary image? > > Also, if i cant use gcc, how can i use g++ to make the binary image? > > > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > > Build the coolest Linux based applications with Moblin SDK & win great prizes > > Grand prize is a trip for two to an Open Source event anywhere in the world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > |
From: Per W. <pw...@ia...> - 2008-07-18 00:17:40
|
You can not pass an arbitrary plane of a three-dimensional array. You can pass a reference to the full array, together with a parameter that specify if you mean an X plane, an Y plane or an Z plane, and an index that specifies which plane. Then the function will itself have to locate the entries in that plane. To do that, the function must also know the size of your cube in all three dimensios. You may have to specify even more parameters if it is important that the function processes this plane in the correct order, i.e. you may have to specify u and v vectors, where the u vector may specify that the function should walk the cube from high z to low z, and the v vector may specify that the function should walk the cube from low y to high y. /pwm On Mon, 14 Jul 2008, piyush goswami wrote: > Hi, I am working on a C source file that uses a 3-dimensional array > declared as pointer-to a pointer-to a pointer. Could anybody tell me > as to how I can pass a particular plane of this 3-d array to a > function. > Also, if anybody can provide/suggest C code for calculating FFT (fast > fourier transform) and its inverse of a 2-dimensional complex array. > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
From: Per W. <pw...@ia...> - 2008-07-18 00:12:02
|
You don't specify what library to use. C and C++ do not automagically try all libraries, just because you add them in your search path. -L <directory> just tells the linker where to look for a library that you have explicitly included in the linking. There are a few exceptions, which allows the standard RTL to be linked without you specifying the name. If you somewhere in all the library directories you specified has a file named libgsl.a, then you should have had a -lgsl to tell the linker to make use of this gsl library. /pwm On Mon, 14 Jul 2008, Tim Rambo wrote: > hey all, > > I'm trying to use gsl to do some linear algebra, and right now I'm just trying to compile this example code from the gnu website: > > #include <stdio.h> > #include <gsl/gsl_linalg.h> > > > int > main (void) > { > double a_data[] = { 0.18, 0.60, 0.57, 0.96, > 0.41, 0.24, 0.99, 0.58, > 0.14, 0.30, 0.97, 0.66, > 0.51, 0.13, 0.19, 0.85 }; > > double b_data[] = { 1.0, 2.0, 3.0, 4.0 }; > > gsl_matrix_view m > = gsl_matrix_view_array (a_data, 4, 4); > > gsl_vector_view b > = gsl_vector_view_array (b_data, 4); > > gsl_vector *x = gsl_vector_alloc (4); > > int s; > > gsl_permutation * p = gsl_permutation_alloc (4); > > gsl_linalg_LU_decomp (&m.matrix, p, &s); > > gsl_linalg_LU_solve (&m.matrix, p, &b.vector, x); > > printf ("x = \n"); > gsl_vector_fprintf (stdout, x, "%g"); > > gsl_permutation_free (p); > gsl_vector_free (x); > return 0; > } > > > I'm using a crosstool through cygwin to compile for an ARM processor. The compile log looks like this: > > Building Makefile: "C:\Documents and Settings\student\Desktop\sepatriot\spa pc\gsl-test\Makefile.win" > Executing make... > make.exe -f "C:\Documents and Settings\student\Desktop\sepatriot\spa pc\gsl-test\Makefile.win" all > arm-unknown-linux-gnu-gcc.exe test-gsl.o -o "gsl-test.exe" -L"C:/cygwin/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/lib" -L/cygdrive/c/cygwin/opt/crosstool//gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/lib -L/cygdrive/c/cygwin/opt/crosstool//gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/usr/include -lgsl -lm -lgslcblas > > Building Makefile: "C:\Documents and Settings\student\Desktop\sepatriot\spa pc\gsl-test\Makefile.win" > Executing make... > make.exe -f "C:\Documents and Settings\student\Desktop\sepatriot\spa pc\gsl-test\Makefile.win" all > arm-unknown-linux-gnu-gcc.exe test-gsl.o -o "gsl-test.exe" -L"C:/cygwin/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/lib" -L"C:/cygwin/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib" -L"C:/cygwin/lib" -L/cygdrive/c/cygwin/opt/crosstool//gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/lib -L/cygdrive/c/cygwin/opt/crosstool//gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/usr/include -lgsl -lm -lgslcblas > > test-gsl.o(.text+0x60): In function `main': > : undefined reference to `gsl_matrix_view_array' > test-gsl.o(.text+0x78): In function `main': > : undefined reference to `gsl_vector_view_array' > test-gsl.o(.text+0x80): In function `main': > : undefined reference to `gsl_vector_alloc' > test-gsl.o(.text+0x90): In function `main': > : undefined reference to `gsl_permutation_alloc' > test-gsl.o(.text+0xac): In function `main': > : undefined reference to `gsl_linalg_LU_decomp' > test-gsl.o(.text+0xc4): In function `main': > : undefined reference to `gsl_linalg_LU_solve' > test-gsl.o(.text+0xe0): In function `main': > : undefined reference to `gsl_vector_fprintf' > test-gsl.o(.text+0xe8): In function `main': > : undefined reference to `gsl_permutation_free' > test-gsl.o(.text+0xf0): In function `main': > : undefined reference to `gsl_vector_free' > collect2: ld returned 1 exit status > make.exe: *** [gsl-test.exe] Error 1 > > Execution terminated > > the reason that this confuses me is that I have the libraries stored in: C:\cygwin\lib and the includes for gsl in: C:\cygwin\usr\include. If anybody can help me out I will be eternally grateful. > > > TMR > > > |
From: Per W. <pw...@ia...> - 2008-07-18 00:08:12
|
Why do you assume that it should work? The BIOS operations where defined for 16-bit MS-Dos. Dev-C++ generates code for running in protected-mode. Switch to a free edition of an old Borland C compiler if you want to write 16-bit applications that makes use of BIOS functions. Or take a look at DJGPP, a gcc port with a DOS-extender, that will simulate compatibility with 16-bit interfaces. /pwm On Wed, 16 Jul 2008, Ben Melikant wrote: > Ok, so i have a dilemma. I want to link assembler code to my C program > that will print a line pointed to by a char *. the function is defined > in my program as: extern void print_string (char *); and the assembly > code is: > > _print_string proc near > > PUSH BP > > MOV BP,SP > > MOV AH,09h > MOV DX,OFFSET [BP+4] > INT 21h > > POP BP > > RETN > > _print_string endp > > can anyone tell me why this is failing? I am trying to get the address > off of the stack and then use it to access the string. What is the > appropriate way to do this? > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
From: Per W. <pw...@ia...> - 2008-07-18 00:04:55
|
There is no limitation on double pointers. This is a limitation in your understanding of the const keyword, and what it binds to. You can have a const pointer, i.e. a pointer that may not be changed to point at a different double. You can have a pointer to a const value, i.e. you may not assign a new double value using the pointer. And you can have a const pointer to a const double, in which case neither the value of the pointer, or the value that the pointer points to may be changed. When you add a second indirection (pointer to pointer to double) you just get one more position where you can add your const, i.e. if the first pointer level allows you to change the the value of the second-level pointer. You should get the C++ standard, and look at the rules regarding const, and regarding pointer declarations. /pwm On Wed, 16 Jul 2008, Dick Kopcke wrote: > I am running Dev-Cpp 4.9.9.2 > The following generates an error at the function call: > invalid conversion from 'double**" to 'const double**' > > The program runs if the 'const double**' is changed to 'double**' in the function definition. > Conversions such as 'double *' to 'const double*' in the function pose no problems. > > This limitation on double pointers surprises me. What should I be doing differently? > > Thanks > > > > void Multiply(const > double** const M, const double * const V, > > const int n, const int m, double > * const MV) > > { > > code > > } > > > > int main() > > { > > > > code > > > > double** Matrix = > new double* [n]; > > for (int i=0; > i<n; i++) Matrix[i] = new double [m]; > > > > code > > > > Multiply(Matrix, Vector, n, m, MVproduct); > > > > code > > } > > > > > > > |
From: Per W. <pw...@ia...> - 2008-07-18 00:01:02
|
So, why don't you start your request by telling exactly what you need a your binary file for? Are you trying to write a BIOS for your computer? /pwm On Wed, 16 Jul 2008, Ben Melikant wrote: > Hello everybody. I am trying to use MinGW to make a flat binary image, > but am unsure how to do it. I tried to compile using the following > commands: > > gcc -c program.c > ld program.o -o program.bin --oformat=binary --Ttext=0x0 > > this told me that I could not perform PE operations on non-PE file > program.bin. I also tried this: > > gcc -c program.c > ld -o test.bin -Ttext 0x0 -e _main test.o > > This gave me the error: > Undefined reference to _alloca > Undefined reference to __main > > How do i specify the command line options to make the binary image? > Also, if i cant use gcc, how can i use g++ to make the binary image? > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > 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: Ben M. <ili...@at...> - 2008-07-17 02:02:40
|
Hello everybody. I am trying to use MinGW to make a flat binary image, but am unsure how to do it. I tried to compile using the following commands: gcc -c program.c ld program.o -o program.bin --oformat=binary --Ttext=0x0 this told me that I could not perform PE operations on non-PE file program.bin. I also tried this: gcc -c program.c ld -o test.bin -Ttext 0x0 -e _main test.o This gave me the error: Undefined reference to _alloca Undefined reference to __main How do i specify the command line options to make the binary image? Also, if i cant use gcc, how can i use g++ to make the binary image? |
From: Dick K. <rwk...@ya...> - 2008-07-16 15:04:52
|
I am running Dev-Cpp 4.9.9.2 The following generates an error at the function call: invalid conversion from 'double**" to 'const double**' The program runs if the 'const double**' is changed to 'double**' in the function definition. Conversions such as 'double *' to 'const double*' in the function pose no problems. This limitation on double pointers surprises me. What should I be doing differently? Thanks void Multiply(const double** const M, const double * const V, const int n, const int m, double * const MV) { code } int main() { code double** Matrix = new double* [n]; for (int i=0; i<n; i++) Matrix[i] = new double [m]; code Multiply(Matrix, Vector, n, m, MVproduct); code } |
From: Ben M. <ili...@at...> - 2008-07-16 04:50:57
|
Ok, so i have a dilemma. I want to link assembler code to my C program that will print a line pointed to by a char *. the function is defined in my program as: extern void print_string (char *); and the assembly code is: _print_string proc near PUSH BP MOV BP,SP MOV AH,09h MOV DX,OFFSET [BP+4] INT 21h POP BP RETN _print_string endp can anyone tell me why this is failing? I am trying to get the address off of the stack and then use it to access the string. What is the appropriate way to do this? |
From: Jessica C. <jes...@gm...> - 2008-07-15 16:47:56
|
Does anybody here use scon to build files and use eclipse to do debug? any idea or suggestion from scon are welcome. thank you Jessica |
From: Tim R. <tm...@al...> - 2008-07-14 18:52:38
|
hey all, I'm trying to use gsl to do some linear algebra, and right now I'm just trying to compile this example code from the gnu website: #include <stdio.h> #include <gsl/gsl_linalg.h> int main (void) { double a_data[] = { 0.18, 0.60, 0.57, 0.96, 0.41, 0.24, 0.99, 0.58, 0.14, 0.30, 0.97, 0.66, 0.51, 0.13, 0.19, 0.85 }; double b_data[] = { 1.0, 2.0, 3.0, 4.0 }; gsl_matrix_view m = gsl_matrix_view_array (a_data, 4, 4); gsl_vector_view b = gsl_vector_view_array (b_data, 4); gsl_vector *x = gsl_vector_alloc (4); int s; gsl_permutation * p = gsl_permutation_alloc (4); gsl_linalg_LU_decomp (&m.matrix, p, &s); gsl_linalg_LU_solve (&m.matrix, p, &b.vector, x); printf ("x = \n"); gsl_vector_fprintf (stdout, x, "%g"); gsl_permutation_free (p); gsl_vector_free (x); return 0; } I'm using a crosstool through cygwin to compile for an ARM processor. The compile log looks like this: Building Makefile: "C:\Documents and Settings\student\Desktop\sepatriot\spa pc\gsl-test\Makefile.win" Executing make... make.exe -f "C:\Documents and Settings\student\Desktop\sepatriot\spa pc\gsl-test\Makefile.win" all arm-unknown-linux-gnu-gcc.exe test-gsl.o -o "gsl-test.exe" -L"C:/cygwin/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/lib" -L/cygdrive/c/cygwin/opt/crosstool//gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/lib -L/cygdrive/c/cygwin/opt/crosstool//gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/usr/include -lgsl -lm -lgslcblas Building Makefile: "C:\Documents and Settings\student\Desktop\sepatriot\spa pc\gsl-test\Makefile.win" Executing make... make.exe -f "C:\Documents and Settings\student\Desktop\sepatriot\spa pc\gsl-test\Makefile.win" all arm-unknown-linux-gnu-gcc.exe test-gsl.o -o "gsl-test.exe" -L"C:/cygwin/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/lib" -L"C:/cygwin/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib" -L"C:/cygwin/lib" -L/cygdrive/c/cygwin/opt/crosstool//gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/lib -L/cygdrive/c/cygwin/opt/crosstool//gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/usr/include -lgsl -lm -lgslcblas test-gsl.o(.text+0x60): In function `main': : undefined reference to `gsl_matrix_view_array' test-gsl.o(.text+0x78): In function `main': : undefined reference to `gsl_vector_view_array' test-gsl.o(.text+0x80): In function `main': : undefined reference to `gsl_vector_alloc' test-gsl.o(.text+0x90): In function `main': : undefined reference to `gsl_permutation_alloc' test-gsl.o(.text+0xac): In function `main': : undefined reference to `gsl_linalg_LU_decomp' test-gsl.o(.text+0xc4): In function `main': : undefined reference to `gsl_linalg_LU_solve' test-gsl.o(.text+0xe0): In function `main': : undefined reference to `gsl_vector_fprintf' test-gsl.o(.text+0xe8): In function `main': : undefined reference to `gsl_permutation_free' test-gsl.o(.text+0xf0): In function `main': : undefined reference to `gsl_vector_free' collect2: ld returned 1 exit status make.exe: *** [gsl-test.exe] Error 1 Execution terminated the reason that this confuses me is that I have the libraries stored in: C:\cygwin\lib and the includes for gsl in: C:\cygwin\usr\include. If anybody can help me out I will be eternally grateful. TMR |
From: Luis A. G. R. <la...@ho...> - 2008-07-14 17:57:45
|
use this trick put the 3-d array into a structure like this typedef struct ARRAY3d{ int ***Data; }; now it can be easy to pass between functions :) > Date: Mon, 14 Jul 2008 22:22:53 +0530 > From: pec...@gm... > To: dev...@li... > Subject: [Dev-C++] Passing a plane of 3-d array in C > > Hi, I am working on a C source file that uses a 3-dimensional array > declared as pointer-to a pointer-to a pointer. Could anybody tell me > as to how I can pass a particular plane of this 3-d array to a > function. > Also, if anybody can provide/suggest C code for calculating FFT (fast > fourier transform) and its inverse of a 2-dimensional complex array. > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > 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 _________________________________________________________________ Blog your life in 3D with Windows Live Writer. http://www.windowslive.com/overview.html?ocid=TXT_TAGLM_Wave2_wl_writer_022008 |
From: piyush g. <pec...@gm...> - 2008-07-14 16:52:57
|
Hi, I am working on a C source file that uses a 3-dimensional array declared as pointer-to a pointer-to a pointer. Could anybody tell me as to how I can pass a particular plane of this 3-d array to a function. Also, if anybody can provide/suggest C code for calculating FFT (fast fourier transform) and its inverse of a 2-dimensional complex array. |
From: Ben M. <ili...@at...> - 2008-07-14 15:23:23
|
Hello. I was wondering if anyone could tell me how to output a flat binary image from c source in dev-cpp. |