Skip to content

Instantly share code, notes, and snippets.

@jbr
Created August 28, 2010 22:51
Show Gist options
  • Save jbr/555672 to your computer and use it in GitHub Desktop.
Save jbr/555672 to your computer and use it in GitHub Desktop.
#!/bin/bash
gcc -o src/html_document.o -c\
-I/opt/local/include/libxml2\
-I/opt/local/include\
src/html_document.cc\
-I/usr/nodejs/v0.2.0/include/node/
gcc -o src/html_parser.o -c\
-I/opt/local/include/libxml2\
-I/opt/local/include\
src/html_parser.cc\
-I/usr/nodejs/v0.2.0/include/node/
gcc -o src/libxmljs.o -c\
-I/opt/local/include/libxml2\
-I/opt/local/include\
src/libxmljs.cc\
-I/usr/nodejs/v0.2.0/include/node/
gcc -o src/xml_attribute.o -c\
-I/opt/local/include/libxml2\
-I/opt/local/include src/xml_attribute.cc\
-I/usr/nodejs/v0.2.0/include/node/
gcc -o src/xml_document.o -c\
-I/opt/local/include/libxml2\
-I/opt/local/include\
src/xml_document.cc\
-I/usr/nodejs/v0.2.0/include/node/
gcc -o src/xml_element.o -c\
-I/opt/local/include/libxml2\
-I/opt/local/include src/xml_element.cc\
-I/usr/nodejs/v0.2.0/include/node/\
-L/usr/nodejs/v0.2.0/lib
gcc -o src/xml_namespace.o -c\
-I/opt/local/include/libxml2\
-I/opt/local/include\
src/xml_namespace.cc\
-I/usr/nodejs/v0.2.0/include/node/\
-L/usr/nodejs/v0.2.0/lib
gcc -o src/xml_node.o -c -I/opt/local/include/libxml2\
-I/opt/local/include\
src/xml_node.cc\
-I/usr/nodejs/v0.2.0/include/node/\
-L/usr/nodejs/v0.2.0/lib
gcc -o src/xml_parser.o -c\
-I/opt/local/include/libxml2\
-I/opt/local/include\
src/xml_parser.cc\
-I/usr/nodejs/v0.2.0/include/node/ -L/usr/nodejs/v0.2.0/lib
gcc -o src/xml_sax_parser.o -c\
-I/opt/local/include/libxml2\
-I/opt/local/include\
src/xml_sax_parser.cc\
-I/usr/nodejs/v0.2.0/include/node/\
-L/usr/nodejs/v0.2.0/lib
gcc -o src/xml_syntax_error.o -c\
-I/opt/local/include/libxml2\
-I/opt/local/include\
src/xml_syntax_error.cc\
-I/usr/nodejs/v0.2.0/include/node/\
-L/usr/nodejs/v0.2.0/lib
gcc -o src/xml_xpath_context.o -c\
-I/opt/local/include/libxml2\
-I/opt/local/include\
src/xml_xpath_context.cc\
-I/usr/nodejs/v0.2.0/include/node/\
-L/usr/nodejs/v0.2.0/lib
gcc -o libxmljs\
src/html_document.o\
src/html_parser.o\
src/libxmljs.o\
src/xml_attribute.o\
src/xml_document.o\
src/xml_element.o\
src/xml_namespace.o\
src/xml_node.o\
src/xml_parser.o\
src/xml_sax_parser.o\
src/xml_syntax_error.o\
src/xml_xpath_context.o\
-L/opt/local/lib\
-L/usr/nodejs/v0.2.0/lib
Undefined first referenced
symbol in file
v8::External::Value() const src/html_parser.o
main /usr/lib/crt1.o
xmlEncodeEntitiesReentrant src/xml_attribute.o
v8::Value::ToNumber() const src/xml_element.o
v8::Value::IsNumber() const src/xml_element.o
operator new(unsigned int) src/html_parser.o
xmlFreeParserCtxt src/xml_sax_parser.o
v8::Value::IsFunction() const src/xml_document.o
xmlUnlinkNode src/xml_node.o
xmlCreateFileParserCtxt src/xml_sax_parser.o
v8::Function::NewInstance(int, v8::Handle<v8::Value>*) constsrc/html_parser.o
xmlNewDoc src/xml_document.o
v8::Undefined() src/html_parser.o
v8::Context::GetCurrent() src/libxmljs.o
v8::Object::Set(v8::Handle<v8::Value>, v8::Handle<v8::Value>, v8::PropertyAttribute)src/html_parser.o
xmlGetNodePath src/xml_element.o
xmlStrdup src/xml_document.o
xmlStrlen src/xml_attribute.o
v8::Array::New(int) src/html_parser.o
v8::Boolean::Value() const src/xml_sax_parser.o
xmlBufferContent src/xml_node.o
xmlSaveToBuffer src/xml_node.o
xmlSetStructuredErrorFunc src/html_parser.o
v8::Signature::New(v8::Handle<v8::FunctionTemplate>, int, v8::Handle<v8::FunctionTemplate>*)src/xml_attribute.o
v8::Message::GetEndColumn() const src/libxmljs.o
v8::Context::Global() src/libxmljs.o
v8::String::Empty() src/xml_element.o
v8::Object::GetPropertyNames() src/xml_element.o
xmlDocCopyNode src/xml_element.o
v8::TryCatch::Message() const src/libxmljs.o
v8::ObjectTemplate::New() src/libxmljs.o
vtable for __cxxabiv1::__si_class_type_infosrc/html_parser.o
xmlXPathFreeNodeSet src/xml_element.o
xmlAddNextSibling src/xml_element.o
xmlAddPrevSibling src/xml_element.o
v8::Message::PrintCurrentStackTrace(__FILE*) src/libxmljs.o
xmlParseDocument src/xml_sax_parser.o
v8::V8::DisposeGlobal(v8::internal::Object**) src/html_parser.o
v8::False() src/libxmljs.o
et cetera
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment