Skip to content

Instantly share code, notes, and snippets.

@gideondsouza
Created October 11, 2013 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gideondsouza/6939174 to your computer and use it in GitHub Desktop.
Save gideondsouza/6939174 to your computer and use it in GitHub Desktop.
Gideons-Mac-mini:compiler gideon$ g++ -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS=1 -o parser parser.cpp tokens.cpp main.cpp
Undefined symbols for architecture x86_64:
"_LLVMLinkInJIT", referenced from:
(anonymous namespace)::ForceJITLinking::ForceJITLinking()in ccax3uOX.o
"CodeGenContext::generateCode(NBlock&)", referenced from:
_main in ccax3uOX.o
"CodeGenContext::runCode()", referenced from:
_main in ccax3uOX.o
"llvm::getGlobalContext()", referenced from:
CodeGenContext::CodeGenContext()in ccax3uOX.o
"llvm::Module::Module(llvm::StringRef, llvm::LLVMContext&)", referenced from:
CodeGenContext::CodeGenContext()in ccax3uOX.o
"vtable for NAssignment", referenced from:
NAssignment::NAssignment(NIdentifier&, NExpression&)in cc2RCwuq.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"vtable for NIdentifier", referenced from:
NIdentifier::NIdentifier(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in cc2RCwuq.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"vtable for NMethodCall", referenced from:
NMethodCall::NMethodCall(NIdentifier const&, std::vector<NExpression*, std::allocator<NExpression*> >&)in cc2RCwuq.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"vtable for NBinaryOperator", referenced from:
NBinaryOperator::NBinaryOperator(NExpression&, int, NExpression&)in cc2RCwuq.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"vtable for NExpressionStatement", referenced from:
NExpressionStatement::NExpressionStatement(NExpression&)in cc2RCwuq.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"vtable for NFunctionDeclaration", referenced from:
NFunctionDeclaration::NFunctionDeclaration(NIdentifier const&, NIdentifier const&, std::vector<NVariableDeclaration*, std::allocator<NVariableDeclaration*> > const&, NBlock&)in cc2RCwuq.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"vtable for NVariableDeclaration", referenced from:
NVariableDeclaration::NVariableDeclaration(NIdentifier const&, NIdentifier&)in cc2RCwuq.o
NVariableDeclaration::NVariableDeclaration(NIdentifier const&, NIdentifier&, NExpression*)in cc2RCwuq.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"vtable for NBlock", referenced from:
NBlock::NBlock()in cc2RCwuq.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"vtable for NDouble", referenced from:
NDouble::NDouble(double)in cc2RCwuq.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"vtable for NInteger", referenced from:
NInteger::NInteger(long long)in cc2RCwuq.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
@rsaxvc
Copy link

rsaxvc commented Feb 16, 2014

You need to comment out codegen()s in node.h until you complete the next step in the examples.

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