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

Remove Compilation Error #23

Open
kfletcher88 opened this issue Mar 9, 2017 · 1 comment
Open

Remove Compilation Error #23

kfletcher88 opened this issue Mar 9, 2017 · 1 comment

Comments

@kfletcher88
Copy link

Hi, when compiling from the clone I noticed a couple of things:

  1. MakeFile has commands for target remove twice, so the binary is not compiled:
    remove: remove.cpp $(OBJ)
    $(CXX) $(CXXFLAGS) -o remove remove.cpp $(OBJ)

remove: counter.cpp $(OBJ)
$(CXX) $(CXXFLAGS) -o counter counter.cpp $(OBJ)

$ make
Makefile:37: warning: overriding commands for target remove' Makefile:34: warning: ignoring old commands for target remove'

  1. When I change this, remove is still not compiled.
    Output:
    remove.cpp: In function ‘int main(int, char**)’:
    remove.cpp:215:9: error: ‘gzFile’ was not declared in this scope
    gzFile fp;
    ^
    remove.cpp:215:16: error: expected ‘;’ before ‘fp’
    gzFile fp;
    ^
    remove.cpp:216:9: error: ‘kseq_t’ was not declared in this scope
    kseq_t *seq;
    ^
    remove.cpp:216:17: error: ‘seq’ was not declared in this scope
    kseq_t *seq;
    ^
    remove.cpp:217:17: error: ‘buf’ was not declared in this scope
    kseq_t *buf = 0;

I can remove the offending lines and remove then compiles, but I doubt this is a good fix. However as I only want to use the extract function it is ok for now.

Thanks

@goat-anti-rabbit
Copy link

Hi developers,

I'm facing a couple of problems that seem to be related to aforementioned problems. I think it is also related to other compilation errors mentioned in other threads. I do not think it is a gcc version problem, since I'm running gcc-8 without problems for other software.

So, the makefile specifies a recipe for "remove" twice. This causes "make" to err and installation to fail. I presumed that the second "remove" should actually be called "counter". Could that be right? Now, if I change this in the makefile, I still get trouble, now referring to the remove.cpp code, with the errors mentioned above.

Also, if I just try to run ./cookiecutter from within Cookiecutter/src, it errors on remove.cpp

File "./cookiecutter", line 112 print i ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(print i)?

Are these all bugs, or are we doing something wrong?
Thanks for your time guys!

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

2 participants