D
djbitchpimp
Please forgive the newb question but I cannot seem to find why this
code is giving me the following error:
]gcc parse_uuid.c
/tmp/ccGKD3b0.o(.text+0x18): In function `main':
: undefined reference to `uuid_generate'
collect2: ld returned 1 exit status
Here is the code:
#include <uuid/uuid.h>
int main (int argc, char **argv) {
uuid_t theID ;
uuid_parse (argv [1], theID) ;
//uuid_generate (theID) ;
printf ("Original UUID: %s\nIn Hex: %i\n", argv [1], theID) ;
return 1 ;
}
Any suggestions would be greatly appreciated, thanks!
-Greg
code is giving me the following error:
]gcc parse_uuid.c
/tmp/ccGKD3b0.o(.text+0x18): In function `main':
: undefined reference to `uuid_generate'
collect2: ld returned 1 exit status
Here is the code:
#include <uuid/uuid.h>
int main (int argc, char **argv) {
uuid_t theID ;
uuid_parse (argv [1], theID) ;
//uuid_generate (theID) ;
printf ("Original UUID: %s\nIn Hex: %i\n", argv [1], theID) ;
return 1 ;
}
Any suggestions would be greatly appreciated, thanks!
-Greg