Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile error #1

Open
soaschas opened this issue Aug 11, 2014 · 0 comments
Open

compile error #1

soaschas opened this issue Aug 11, 2014 · 0 comments

Comments

@soaschas
Copy link

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 >

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant