Skip to content

compile error #1

@soaschas

Description

@soaschas

make results this:

g++ -g -o qpu-asm qpu-asm.cpp
qpu-asm.cpp: In function ‘int main(int, char*)’:
qpu-asm.cpp:872:42: error: ‘getopt’ was not declared in this scope
while ((c = getopt(argc, argv, "o:c:")) != -1) {
^
qpu-asm.cpp:875:28: error: ‘optarg’ was not declared in this scope
outfname = optarg;
^
Makefile:4: recipe for target 'qpu-asm' failed
make: *
* [qpu-asm] Error 1

resolved:

#include < getopt.h >

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions