Search:

Type: Posts; User: elliptic

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,143

    Setting GCC version

    Hi all
    I'm on Windows XP running cygwin, but I also have the MinGW gcc. Some libraries I'm using will only compile with the latter. So how do I tell the cygwin environment to use the MinGW...
  2. Replies
    3
    Views
    1,966

    Help with printf

    Hi all
    I'm having some problems with this code:


    struct Note{
    float duration;
    float ampvalue;
    float pitchvalue;
    };
  3. Replies
    1
    Views
    1,211

    path problem in cygwin

    I'm running cygwin on Win2k. In cygwin, I built a C program called prog, which takes a number and a file as cmdline parameters. prog is in /usr/coding. If I save the input file in that directory,...
  4. Replies
    4
    Views
    1,147

    Oh. I thought that Red[7] would decompose to...

    Oh. I thought that Red[7] would decompose to Red[0][7]. Sorry.
  5. Replies
    4
    Views
    1,147

    Question about array values

    So I have an array (several, actually), which holds the RGB values of an image. I'm then doing some calculations with each of these arrays (let's say we're doing Red. Then Red[i][j] is the...
  6. Replies
    10
    Views
    10,424

    after receiving lots of help, I know how to do...

    after receiving lots of help, I know how to do this for a TIFF image, if that will help you...
  7. Replies
    17
    Views
    2,060

    Well, it doesn't run for very long. I tried...

    Well, it doesn't run for very long. I tried adding a

    for(;;) into it, but then it aborted for some reason.
  8. Replies
    17
    Views
    2,060

    Is there any way I can find out how much memory...

    Is there any way I can find out how much memory my program is using while its running? I'm looking at the documentation for gdb, but not finding anything
  9. Replies
    17
    Views
    2,060

    Okay y'all were completely correct (I think). ...

    Okay y'all were completely correct (I think). Here is my new code


    #include <stdio.h>
    #include <stdlib.h>
    #include <math.h>
    #include <tiffio.h>

    int main()
    {
  10. Replies
    17
    Views
    2,060

    Thanks for your replies. I'm on Win2k, running...

    Thanks for your replies. I'm on Win2k, running cygwin. I have 256 MB memory, if that matters.
    Here's some results of messing around. If I comment out the insides of the inner loop, it still...
  11. Replies
    17
    Views
    2,060

    Here is the readout from gdb. $ gdb prog2...

    Here is the readout from gdb.


    $ gdb prog2
    ...a bunch of gdb stuff...
    (gdb) run
    Starting program: /usr/coding/prog2.exe

    Program received signal SIGSEGV, Segmentation fault
    0x004012e3 in...
  12. Replies
    17
    Views
    2,060

    Thanks for the reply,bivhitscar, but I think...

    Thanks for the reply,bivhitscar, but I think under C99 you can declare arrays dynamically like that, though it isn't "standard." In any event, I've tested declaring them like that in another...
  13. Replies
    17
    Views
    2,060

    different data types

    So I have a TIFF raster image, which is 1200x959. Using the libtiff library, I get its dimensions and store them in two variables, w (width) and h (height). But both of these are of type uint32,...
  14. Replies
    5
    Views
    2,266

    Never mind; I just copied the dll to the same...

    Never mind; I just copied the dll to the same folder as the executable and it ran. Now I just I have a segmentation fault to deal with...
    Thanks everyone
  15. Replies
    5
    Views
    2,266

    Thanks all. I have another problem now. Here is...

    Thanks all. I have another problem now. Here is my setup: The library I'm using is called libtiff.
    Using cygwin on XP.
    The files (libtiff.def, libtiff.dll.a, libtiff-bcc.lib, libtiff.lib) are...
  16. Replies
    5
    Views
    2,266

    Including libraries in project?

    Hi
    I was having a problem building some code (the compile went fine, but I got unresolved externals when I tried to link). I asked around on the mailing list for the library I was using, and...
  17. Replies
    4
    Views
    1,643

    Thanks for your help everyone!

    Thanks for your help everyone!
  18. Replies
    4
    Views
    1,643

    More of a GCC question

    So I have a library (libtiff) and its associated header "tiffio.h." But I'm not entirely sure how to make the compiler (I'm using gcc under mingw) "see" the library and the header. Do I need to put...
Results 1 to 18 of 18