Skip to content

Instantly share code, notes, and snippets.

@jbl0ndie
Last active November 17, 2023 17:10
Show Gist options
  • Save jbl0ndie/e46349ab534c7e32429b to your computer and use it in GitHub Desktop.
Save jbl0ndie/e46349ab534c7e32429b to your computer and use it in GitHub Desktop.
clang: error: linker command failed with exit code 1 (open frameworks)
This means you have two files which have a function called "main" in them -- the compiler compiles all the code fine, but when it goes to link, it sees two object symbols that have the same name.
This usually happens when you include the example code from the an addon (by dragging the addon into a project, for example, but neglecting to remove the addon's example code).
@vincentNtabaazi
Copy link

how do we solve it ??

@jbl0ndie
Copy link
Author

It's been a long time, @vincentNtabaazi but as far as I can tell from my gist, you've probably got two main.cpp files in your project.
There must only be one main.cpp file or you will get that error.

Do you have a public repository in GitHub?

@ibrahimgguven
Copy link

Hello how can ı solve it

@ibrahimgguven
Copy link

Linker command failed with exit code 1 (use -v to see invocation)
MacOS xcode app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment