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...
Type: Posts; User: elliptic
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...
Hi all
I'm having some problems with this code:
struct Note{
float duration;
float ampvalue;
float pitchvalue;
};
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,...
Oh. I thought that Red[7] would decompose to Red[0][7]. Sorry.
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...
after receiving lots of help, I know how to do this for a TIFF image, if that will help you...
Well, it doesn't run for very long. I tried adding a
for(;;) into it, but then it aborted for some reason.
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
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()
{
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...
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...
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...
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,...
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
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...
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...
Thanks for your help everyone!
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...