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

modified: makefile #3

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

modified: makefile #3

wants to merge 2 commits into from

Conversation

0sama-Mirza
Copy link

@0sama-Mirza 0sama-Mirza commented Feb 4, 2024

Hi there,

I encountered an issue while trying to compile the project using the provided makefile on linux. The original makefile specifies the -cstd flag, which is causing an error on Linux systems. I've made a simple fix to update the makefile to specify the -std=c++14 flag instead, and use clang++ which resolves the issue.

  • Error Message:
    When running the original makefile on Linux, I encountered the following error:
$ make
clang -o blackjack -cstd
clang-16: error: unknown argument: '-cstd'
clang-16: error: no input files
make: *** [makefile:2: blackjack] Error 1
  • Updated makefile:
blackjack: blackjack.cpp
    clang++ -o blackjack blackjack.cpp -std=c++14

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

Successfully merging this pull request may close these issues.

1 participant