Created
December 26, 2012 21:10
-
-
Save mattetti/4383203 to your computer and use it in GitHub Desktop.
$ brew install libxml2
$ go build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ go build | |
# gokogiri/xpath | |
error: 'xmlXPathContextSetDeadline' undeclared (first use in this function) | |
error: (Each undeclared identifier is reported only once | |
error: 'time_t' undeclared (first use in this function) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package xpath | |
/* | |
#cgo CFLAGS: -I/usr/local/opt/libxml2/include/libxml2 | |
#cgo LDFLAGS: -lxml2 -L/usr/local/opt/libxml2/lib | |
#include <libxml/xpath.h> | |
#include <libxml/xpathInternals.h> | |
#include <libxml/parser.h> | |
xmlNode* fetchNode(xmlNodeSet *nodeset, int index) { | |
return nodeset->nodeTab[index]; | |
} | |
*/ |
Ignore me. The master branch is just completely messed. That function doesn't exist anywhere.
Strolling the same path...
So what revision did you use then?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey. How did you solve this? I'm trying to test gokogiri and getting this same error.