Skip to content

Instantly share code, notes, and snippets.

@seanhandley
Created February 18, 2011 16:33
Show Gist options
  • Save seanhandley/833931 to your computer and use it in GitHub Desktop.
Save seanhandley/833931 to your computer and use it in GitHub Desktop.
Scanning dependencies of target watchedit-cli
[ 89%] Building C object watchedit-cli/CMakeFiles/watchedit-cli.dir/main.c.o
Linking CXX executable watchedit-cli
Undefined symbols:
"_XML_ParseBuffer", referenced from:
_sd_domnode_fread in liblog4c.a(domnode-expat.o)
"_XML_SetUserData", referenced from:
_sd_domnode_read in liblog4c.a(domnode-expat.o)
_sd_domnode_fread in liblog4c.a(domnode-expat.o)
"_XML_SetStartElementHandler", referenced from:
_sd_domnode_read in liblog4c.a(domnode-expat.o)
_sd_domnode_fread in liblog4c.a(domnode-expat.o)
"_XML_GetErrorCode", referenced from:
_sd_domnode_read in liblog4c.a(domnode-expat.o)
_sd_domnode_fread in liblog4c.a(domnode-expat.o)
"_XML_SetCharacterDataHandler", referenced from:
_sd_domnode_read in liblog4c.a(domnode-expat.o)
_sd_domnode_fread in liblog4c.a(domnode-expat.o)
"_XML_GetCurrentLineNumber", referenced from:
_sd_domnode_read in liblog4c.a(domnode-expat.o)
_sd_domnode_fread in liblog4c.a(domnode-expat.o)
"_XML_SetEndElementHandler", referenced from:
_sd_domnode_read in liblog4c.a(domnode-expat.o)
_sd_domnode_fread in liblog4c.a(domnode-expat.o)
"_XML_GetBuffer", referenced from:
_sd_domnode_fread in liblog4c.a(domnode-expat.o)
"_XML_GetCurrentByteIndex", referenced from:
_sd_domnode_read in liblog4c.a(domnode-expat.o)
_sd_domnode_fread in liblog4c.a(domnode-expat.o)
"_XML_GetCurrentColumnNumber", referenced from:
_sd_domnode_read in liblog4c.a(domnode-expat.o)
_sd_domnode_fread in liblog4c.a(domnode-expat.o)
"_XML_SetCommentHandler", referenced from:
_sd_domnode_read in liblog4c.a(domnode-expat.o)
_sd_domnode_fread in liblog4c.a(domnode-expat.o)
"_XML_ParserFree", referenced from:
_sd_domnode_read in liblog4c.a(domnode-expat.o)
_sd_domnode_fread in liblog4c.a(domnode-expat.o)
"_XML_ParserCreate", referenced from:
_sd_domnode_read in liblog4c.a(domnode-expat.o)
_sd_domnode_fread in liblog4c.a(domnode-expat.o)
"_XML_ErrorString", referenced from:
_sd_domnode_read in liblog4c.a(domnode-expat.o)
_sd_domnode_fread in liblog4c.a(domnode-expat.o)
"_XML_Parse", referenced from:
_sd_domnode_read in liblog4c.a(domnode-expat.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [watchedit-cli/watchedit-cli] Error 1
make[1]: *** [watchedit-cli/CMakeFiles/watchedit-cli.dir/all] Error 2
make: *** [all] Error 2
@leehambley
Copy link

I just found this gist googling for _sd_domnode_read in liblog4c.a(domnode-expat.o) -- lol, turns out the answer is to add target_link_libraries(libwatcheditTest log4c)

@seanhandley
Copy link
Author

\o/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment