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

Unable to build with C++ proto models #89

Open
aley1 opened this issue Mar 28, 2023 · 1 comment
Open

Unable to build with C++ proto models #89

aley1 opened this issue Mar 28, 2023 · 1 comment

Comments

@aley1
Copy link

aley1 commented Mar 28, 2023

Hi,

I am trying to build my generated proto models in my C++ project and I get the following errors:
/usr/bin/ld: CMakeFiles/MyProject.dir/main.cpp.o: in function FBE::uuid_t::sequential()': /home/Projects/MyProject/proto/fbe.cpp:170: undefined reference to uuid_generate_time'
/usr/bin/ld: CMakeFiles/MyProject.dir/main.cpp.o: in function FBE::uuid_t::random()': /home/Projects/MyProject/proto/fbe.cpp:220: undefined reference to uuid_generate_random'

These functions uuid_generate_time and uuid_generate_random does not seem to be defined anywhere in the source files.

@wg485733
Copy link

they are defined in the uuid lib, which you might have to link manually.

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