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

Need to include a directory for using c2go on a file #854

Open
Crystal-Lilith opened this issue Apr 22, 2020 · 1 comment
Open

Need to include a directory for using c2go on a file #854

Crystal-Lilith opened this issue Apr 22, 2020 · 1 comment

Comments

@Crystal-Lilith
Copy link

Hello, i am wondering if i am able to include a full directory with c2go, as i am turning a big C project into a go project for testing, and to do so, i need to be able to include my Include folder, any help appreciated

@elliotchance
Copy link
Owner

Hi @Crystal-Lilith, off the top of my head you have three options:

  1. Perform each file at a time, to produce one go file for each C input file. Something like find . -name "*.c" | xargs -n1 | c2go transpile
  2. Supply multiple input files. Something like c2go transpile $(find . -name "*.c")
  3. Use the clang preprocessor first (see here)

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