Opened 16 years ago
Closed 16 years ago
#25 closed defect (fixed)
Requirement of getopt during build
Reported by: | Owned by: | MatthewWhiting | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Building/Installation | Version: | 1.1.3 |
Severity: | normal | Keywords: | |
Cc: |
Description
During a build on Suse 10.0, I get the following when I type "make"
src/param.cc: In member function `int duchamp::Param::getopts(int, char)': src/param.cc:285: `getopt' undeclared (first use this function) src/param.cc:285: (Each undeclared identifier is reported only once for each
function it appears in.)
src/param.cc:288: `optarg' undeclared (first use this function) gmake: * [src/param.o] Error 1
Note: See
TracTickets for help on using
tickets.
OK, thanks for picking that one up. All that's needed is to put a #include <unistd.h> at the start of param.cc. This is the header file that it is coming from.
It seems that in all the systems I've built Duchamp on so far, this file is pulled into the compilation somewhere down the line, but for the Suse machine that doesn't happen.
I'll add the #include statement to the code, but it's probably easier for you to add that line to your version rather than downloading the whole thing again.
Cheers, Matt Whiting.