undefined reference uuid_generate ubuntu
ubuntu, uuid
Solution
I have resolved the above issue. Instead of using terminal to install the uuid generator, following is my step that i followed:
- call sudo apt-get install uuid-dev command on terminal
- Go to properties menu item, under project menu and add uuid library by selecting add package option.
- Then do include header #include uuid/uuid.h
Problem
I have installed libuuid using the command below. ``` sudo apt-get install uuid-dev ``` And is properly installed from the terminal. Then, i include `<uuid/uuid.h>` header file. But while calling function uuid-generate as under it is giving reference error ``` uuid_t newUUID; uuid_generate(newUUID); ```