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

error: command 'gcc' failed with exit status 1 #57

Closed
welbeckzhou opened this issue Sep 21, 2019 · 2 comments
Closed

error: command 'gcc' failed with exit status 1 #57

welbeckzhou opened this issue Sep 21, 2019 · 2 comments

Comments

@welbeckzhou
Copy link

welbeckzhou commented Sep 21, 2019

When Compile c++ files to .so for python use:

python setup.py build_ext -i
the error occurs.

I use python 3.6, and the default gcc version in my anaconda env is 7.3.0

mesh_core.cpp:349:31: error: no matching function for call to ‘std::basic_ofstream::basic_ofstream(std::__cxx11::string&)’

@zhuhaozh
Copy link

zhuhaozh commented Jan 3, 2020

I solved this by modified mesh_core.cpp (line 349)
from

    ofstream obj_file(filename);

to

    ofstream obj_file(filename.c_str());

reference: link

@gangeqian
Copy link

this bug always exits in project,
I also solved this issue by modifiing
ofstream obj_file(filename.c_str());

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

3 participants