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

Undefined symbols for architecture arm64:.... #6

Open
cmezavalle opened this issue Apr 20, 2023 · 1 comment
Open

Undefined symbols for architecture arm64:.... #6

cmezavalle opened this issue Apr 20, 2023 · 1 comment

Comments

@cmezavalle
Copy link

Hello,

First, thanks for the great code. It is very helpful to have something nice to visualize the c++ results.

I have go through the code and it seems I am compiling it correctly. However, I am having the following error after the compilation:

"Undefined symbols for architecture arm64:
"_engClose", referenced from:
_main in MatlabPlot-8d1732.o
"_engEvalString", referenced from:
_main in MatlabPlot-8d1732.o
"_engGetVariable", referenced from:
_main in MatlabPlot-8d1732.o
"_engOpen", referenced from:
_main in MatlabPlot-8d1732.o
"_engOutputBuffer", referenced from:
_main in MatlabPlot-8d1732.o
"_engPutVariable", referenced from:
_main in MatlabPlot-8d1732.o
"_mxCreateDoubleMatrix_800", referenced from:
_main in MatlabPlot-8d1732.o
"_mxDestroyArray_800", referenced from:
_main in MatlabPlot-8d1732.o
"_mxGetClassName_800", referenced from:
_main in MatlabPlot-8d1732.o
"_mxGetPr_800", referenced from:
_main in MatlabPlot-8d1732.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)"

I wonder if there is a solution for this. I am running in an M1 MacBook Pro.

Thanks in advance.

@Cryoris
Copy link
Owner

Cryoris commented May 3, 2023

I don't have access to an M1 mac unfortunately and I haven't seen that particular error before, but it's true that the compilation on the M1 can be tricky... This looks like a similar issue, maybe that could help? PyO3/pyo3#2136

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