dlang-community / Pegged

A Parsing Expression Grammar (PEG) module, using the D programming language.
534 stars 66 forks source link

How do you link or compile with pegged in Visual D? #184

Open enjoysmath opened 8 years ago

enjoysmath commented 8 years ago

I'm getting all of these errors with the pegged directory in my source folder:

Severity Code Description Project File Line Error Error 42: Symbol Undefined _D6pegged7dynamic7grammar7grammarFAyaHAyaDFS6pegged3peg9ParseTreeZS6pegged3peg9ParseTreeZS6pegged7dynamic7grammar14DynamicGrammar (pegged.dynamic.grammar.DynamicGrammar pegged.dynamic.grammar.grammar(immutable(char)[], pegged.peg.ParseTree delegate(pegged.peg.ParseTree)[immutable(char)[]])) C:\MyProjectsLIGHTSHOWAPPLIGHTSHOWAPP\ConsoleApp2\
Error Error 42: Symbol Undefined _D6pegged3peg9ParseTree9xtoHashFNbNeKxS6pegged3peg9ParseTreeZk (nothrow @trusted uint pegged.peg.ParseTree.xtoHash(ref const(pegged.peg.ParseTree))) C:\MyProjectsLIGHTSHOWAPPLIGHTSHOWAPP\ConsoleApp2\
Error Error 42: Symbol Undefined _D6pegged3peg9ParseTree11xopEqualsFKxS6pegged3peg9ParseTreeKxS6pegged3peg9ParseTreeZb (bool pegged.peg.ParseTree.xopEquals(ref const(pegged.peg.ParseTree), ref const(pegged.peg.ParseTree))) C:\MyProjectsLIGHTSHOWAPPLIGHTSHOWAPP\ConsoleApp2\
Error Error 42: Symbol Undefined _D6pegged3peg7arrayZ C:\MyProjects__LIGHTSHOWAPPLIGHTSHOWAPP\ConsoleApp2\
Error Error 42: Symbol Undefined _D6pegged6parser42T13GenericPeggedTS6pegged3peg9ParseTreeZ13GenericPegged6Pegged6opCallFAyaZS6pegged3peg9ParseTree (pegged.peg.ParseTree pegged.parser.GenericPegged!(pegged.peg.ParseTree).GenericPegged.Pegged.opCall(immutable(char)[])) C:\MyProjects__LIGHTSHOWAPPLIGHTSHOWAPP\ConsoleApp2\
Error Error 42: Symbol Undefined _D6pegged3peg9ParseTree8toStringMxFAyaZAya (const(immutable(char)[] function(immutable(char)[])) pegged.peg.ParseTree.toString) C:\MyProjectsLIGHTSHOWAPPLIGHTSHOWAPP\ConsoleApp2\
Error Error 42: Symbol Undefined _D6pegged13introspection8ruleInfoFNaS6pegged3peg9ParseTreeZHAyaS6pegged13introspection8RuleInfo (pure pegged.introspection.RuleInfo[immutable(char)[]] pegged.introspection.ruleInfo(pegged.peg.ParseTree)) C:\MyProjectsLIGHTSHOWAPPLIGHTSHOWAPP\ConsoleApp2\
Error Error 42: Symbol Undefined _D6pegged13introspection8RuleInfo11xopEqualsFKxS6pegged13introspection8RuleInfoKxS6pegged13introspection8RuleInfoZb (bool pegged.introspection.RuleInfo.xopEquals(ref const(pegged.introspection.RuleInfo), ref const(pegged.introspection.RuleInfo))) C:\MyProjectsLIGHTSHOWAPPLIGHTSHOWAPP\ConsoleApp2\
Error Error 42: Symbol Undefined _D6pegged13introspection8RuleInfo9xtoHashFNbNeKxS6pegged13introspection8RuleInfoZk (nothrow @trusted uint pegged.introspection.RuleInfo.xtoHash(ref const(pegged.introspection.RuleInfo))) C:\MyProjectsLIGHTSHOWAPPLIGHTSHOWAPP\ConsoleApp2\
Error Error 42: Symbol Undefined _D6pegged3peg530T5namedS4956pegged3peg473T7discardS4576pegged3peg431T10zeroOrMoreS4116pegg1CCFBD33887A22619286C44DDF0CC267 C:\MyProjects__LIGHTSHOWAPPLIGHTSHOWAPP\ConsoleApp2\
Error Error 42: Symbol Undefined _D6pegged3peg530T5namedS4956pegged3peg473T7discardS4576pegged3peg431T10zeroOrMoreS4116pegg43BBC026FB8ABB41C0494D653635CB0F C:\MyProjects__LIGHTSHOWAPPLIGHTSHOWAPP\ConsoleApp2\
Error Error 42: Symbol Undefined _D6pegged3peg642T5namedS6006pegged3peg581T4fuseS5686pegged3peg537T15discardChildrenS5126peD787FCA5048530FFBEDA8319BFCF8F79 C:\MyProjects__LIGHTSHOWAPPLIGHTSHOWAPP\ConsoleApp2\
Error Error 42: Symbol Undefined _D6pegged3peg9ParseTree6initZ C:\MyProjects__LIGHTSHOWAPPLIGHTSHOWAPP\ConsoleApp2\
Error Error 42: Symbol Undefined _D6pegged13introspection12ModuleInfoZ C:\MyProjects__LIGHTSHOWAPPLIGHTSHOWAPP\ConsoleApp2\
Error Error 42: Symbol Undefined _D6pegged7dynamic7grammar12ModuleInfoZ C:\MyProjects__LIGHTSHOWAPPLIGHTSHOWAPP\ConsoleApp2\
Error Error 42: Symbol Undefined _D6pegged6parser12ModuleInfoZ C:\MyProjects__LIGHTSHOWAPPLIGHTSHOWAPP\ConsoleApp2\

veelo commented 8 years ago

These look like link errors to me. How are you compiling and linking, with what options and arguments?