Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - VoidInt

Pages: [1]
1
Hello! This is my first time posting here and I'm a new to sfml, so I have a feeling that this might be something easy to fix... hopefully. FYI, my machine is a 2020 MacBook Air M1 running Monterey 12.0.1.

I've been having a ton of trouble getting this simple C++ sfml program to compile using vim and command line only:
(click to show/hide)

I downloaded sfml via homebrew and have verified that all the dynamic libraries are arm64:
(click to show/hide)

This is the command I use to compile with:
g++ main.cpp -I//opt/homebrew/Cellar/sfml/2.5.1_1/include -o sfml_test -L/opt/homebrew/Cellar/sfml/2.5.1_1/lib -lsfml-graphics -lsfml-window -lsfml-system

And these are the linker errors I receive upon compilation:
(click to show/hide)

Where am I going wrong here?

I'm confused why the errors are referencing "was built for newer macOS version (12.0) than being linked (11.0)". I don't really understand what that means. What are these dynamic libraries being linked to and why is it an older version? My OS is up-to-date.

Also, I confirmed that all of the dynamic library binaries are for arm 64, so I'm wondering why this error pops up: "ld: symbol(s) not found for architecture arm64".

Any insights or help would be much appreciated!

UPDATE: I just learned about the -v option for g++ and have included the output incase it might contain any useful information that I'm overlooking.
(click to show/hide)

Pages: [1]
anything