bug-cflow
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-cflow] cflow-1.1 doesn't find main


From: Robert E. Michael
Subject: [Bug-cflow] cflow-1.1 doesn't find main
Date: Wed, 06 Sep 2006 22:37:06 -0400

    Last week I downloaded cflow-1.1.tar.gz, unpacked it, ran
configure, and then did make followed by make install on a
Sparc Ultra 1 running Solaris 9.  The compiler was gcc version 3.2.
There were no errors.
    Yet when I run it on quite a few of my own programs, the "main"
routine does not show up in the output.  A terse example is
attached.  When I run it on much larger examples, it gets a
segmentation fault.  What is going on?

Bob Michael

#include <stdio.h>

main(argc, argv)
int argc;
char *argv[];
{
        int fileidx;

        if (argc <= 1)
        {
                fprintf(stderr,"usage: sumweather <csvweatherfile> 
[<csvweatherfile> ...]\n");
                exit(1);
        }

        for (fileidx = 1; fileidx < argc; fileidx++)
        {
                printf("%s\n", argv[fileidx]);
        }

        exit(0);
}

reply via email to

[Prev in Thread] Current Thread [Next in Thread]