Building ng-spice with Microsoft Visual C++ for Windows
More problems building v13 using MSVC for Windows.
Main.c doesn't compile due to the following errors related to command line
options.
static struct option long_options[] = {
{"help", 0, 0, 'h'},
{"version", 0, 0, 'v'},
{"batch", 0, 0, 'b'},
{"circuitfile", 0, 0, 'c'},
{"interactive", 0, 0, 'i'},
{"no-spiceinit", 0, 0, 'n'},
{"output", 0, 0, 'o'},
{"completion", 0, 0, 'q'},
{"rawfile", 1, 0, 'r'},
{"server", 0, 0, 's'},
{"terminal", 1, 0, 't'},
{0, 0, 0, 0}
};
main.c(343) : error C2079: 'long_options' uses undefined struct
'long_options'
case 'c': /* Circuit file */
if (optarg)
main.c(378) : error C2065: 'optarg' : undeclared identifier
if (optind == argc && !istty) {
append_to_stream(tempfile, stdin);
main.c(561) : error C2065: 'optind' : undeclared identifier
Main.c is the correct main file for the ng-spice engine, right?
Where's the definition for struct option?
Where are optind and optarg declared?
Jon Engelbert
President, Beige Bag Software
279 E. Liberty, Ann Arbor, MI 48105
jon@beigebag.com
Partial thread listing: