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

Unexpected or invalid argument '-c' #92

Open
eruizc-dev opened this issue Dec 7, 2020 · 2 comments
Open

Unexpected or invalid argument '-c' #92

eruizc-dev opened this issue Dec 7, 2020 · 2 comments

Comments

@eruizc-dev
Copy link

I followed the installation instructions but I ran into an issue: both arguments '-c' and '--cc' throw an error. I managed to compile the hello world example without any flags, but if that flag was removed I'd suggest removing it from the README and instead of throwing an error display an 'obsolete' warning.

Repro steps

1 - Clone the repo following main README instructions

git clone https://github.com/adam-mcdaniel/oakc
cd oakc
cargo install -f --path .

2 - Try and compile hello_world.ok example with -c or --cc flag:

oak c examples/hello_world.ok -c

3 - Watch error:

image

@adam-mcdaniel
Copy link
Owner

adam-mcdaniel commented Dec 7, 2020 via email

@Spoiledpay
Copy link

I imagine that the command line issue has not been fixed. It only compiles without -C.
oak c hello_world.ok <= It works.

C:\temp\oakc\examples>oak c hello_world.ok -c <=Does not work.
error: Found argument '-c' which wasn't expected, or isn't valid in this context

When we don't choose which compiler is functional. Which will be the standard, GCC or GO?

Can you tell how to choose the file name, as it compiles and becomes main.exe

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