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

make fails with undefined reference #1

Open
ashnur opened this issue Aug 18, 2016 · 0 comments
Open

make fails with undefined reference #1

ashnur opened this issue Aug 18, 2016 · 0 comments

Comments

@ashnur
Copy link

ashnur commented Aug 18, 2016

./get-libsnark runs without issues but then:

→ make
g++ -o test.o src/test.cpp -c -g -Wall -Wextra -Wno-unused-parameter -std=c++11 -fPIC -Wno-unused-variable -I depinst/include -I depinst/include/libsnark -DUSE_ASM -DCURVE_ALT_BN128
g++ -o test test.o -g -Wall -Wextra -Wno-unused-parameter -std=c++11 -fPIC -Wno-unused-variable -I depinst/include -I depinst/include/libsnark -DUSE_ASM -DCURVE_ALT_BN128 -flto -L depinst/lib -Wl,-rpath depinst/lib -L . -lsnark -lgmpxx -lgmp -lboost_system
depinst/lib/libsnark.so: undefined reference to `gadgetlib2::VariableArray::VariableArray(unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
depinst/lib/libsnark.so: undefined reference to `gadgetlib2::VariableArray::VariableArray(unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
make: *** [Makefile:14: all] Error 1
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

1 participant