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

ld: symbol(s) not found for architecture x86_64 #16

Open
terryzhouke opened this issue Mar 3, 2022 · 1 comment
Open

ld: symbol(s) not found for architecture x86_64 #16

terryzhouke opened this issue Mar 3, 2022 · 1 comment

Comments

@terryzhouke
Copy link

mac下无法gcc 编译
gcc ./src/parser.c ./src/scanner.cc -fPIC -I./ --shared -o vue.so

报错
"/Library/Developer/CommandLineTools/usr/bin/ld" -demangle -lto_library /Library/Developer/CommandLineTools/usr/lib/libLTO.dylib -no_deduplicate -dynamic -dylib -arch x86_64 -macosx_version_min 10.15.0 -syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -o vue.so /var/folders/mr/_vf8pfn14_sbg5szyxc259040000gp/T/parser-bd11ec.o /var/folders/mr/_vf8pfn14_sbg5szyxc259040000gp/T/scanner-d8dada.o -L/usr/local/lib -lSystem /Library/Developer/CommandLineTools/usr/lib/clang/11.0.0/lib/darwin/libclang_rt.osx.a
Undefined symbols for architecture x86_64:

@it-coder
Copy link

使用g++ ./src/parser.c ./src/scanner.cc -fPIC -I./ --shared -o vue.so

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