From: <n...@ze...> - 2006-08-19 10:25:46
|
Hey, Can anyone help me with configuring libYaml in linux. I got from the internet and configured it as intructed. I did it as under. ./configure make make install make check ( which generated sample programs with outputs ) Then i run the outputs of sample programs. It worked. But when i try to compile the sample programs then it give the following errors... /nazeer@nazeer:~/YAML/tests$ gcc -o test-version test-version.c /tmp/ccuxGMpT.o: In function `main': test-version.c:(.text+0x41): undefined reference to `yaml_get_version' test-version.c:(.text+0x69): undefined reference to `yaml_get_version_string' collect2: ld returned 1 exit status The header file (yaml.h) is included then why is the sample program giving error and not linking. I am new with linux. Can anyone help me. Am i not configuring yaml correctly, or there is some other problem. Can anyone help me plz. The output for same program is correct which is shown as under. (The output file was generated by "make check".) nazeer@nazeer:~/YAML/tests$ ./test-version sizeof(token) = 40 sizeof(event) = 56 sizeof(parser) = 232 Can anyone help me please. Regards Nazeer Khan _________________________________________________________________ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ |