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

compilation issue #33

Open
jaredo opened this issue Aug 18, 2020 · 3 comments
Open

compilation issue #33

jaredo opened this issue Aug 18, 2020 · 3 comments

Comments

@jaredo
Copy link

jaredo commented Aug 18, 2020

I'm having trouble compiling this on Linux. I tried both your dockerfile docker build -t tomahawk . and on our local system (centOS7.8 with gcc 7.3.1) and received the same error. It looks like a problem with the way headers are being included.

g++ -std=c++0x -O3 -msse4.2  -I../htslib/ -I./include/ -I./lib/ -I/usr/local/include/ -c -DVERSION=\"beta-0.7.1\" -o lib/header_internal.o lib/header_internal.cpp
In file included from lib/header_internal.cpp:1:0:
lib/header_internal.h:16:44: error: expected class-name before '{' token
 class VcfHeaderInternal : public VcfHeader {
                                            ^
lib/header_internal.h:37:28: error: 'string' in namespace 'std' does not name a type
  void AddSample(const std::string& sample_name);
                            ^
lib/header_internal.cpp: In function 'const bcf_hrec_t* tomahawk::GetPopulatedHrec(const bcf_idpair_t&)':
lib/header_internal.cpp:12:2: error: 'cerr' is not a member of 'std'
  std::cerr << "No populated hrec in idPair. Error in htslib." << std::endl;
  ^
lib/header_internal.cpp:12:66: error: 'endl' is not a member of 'std'
  std::cerr << "No populated hrec in idPair. Error in htslib." << std::endl;
...

best,

Jared

@DamienFr
Copy link

DamienFr commented Jan 8, 2021

Dear all,

Same problem here,

Best,

@detr22
Copy link

detr22 commented Jan 21, 2021

I've encountered the same issue.

@edexter
Copy link

edexter commented May 5, 2023

I'm having the same problem as well.

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

4 participants