This project has moved and is read-only. For the latest updates, please go here.

KB 600014 Errors on Antlr3.targets

Summary

This article describes how to resolve the compilation error caused by an ANTLR bug.

Symptoms

When you download the source code and follow KB 600005, 600006, and 600007 to compile, sometimes you meet an error similar like this,

(...) lib\ANTLR\Antlr3.targets(123,5): error AC1000: Unknown build error: Exception has been thrown by the target of an invocation.

Root Cause

#SNMP depends on ANTLR C# runtime, and there is a bug that prevents the runtime from compiling the grammar file, if the default locale of underlying operating system is not English. More information can be found in the following article,

http://antlr.1301665.n2.nabble.com/C-target-td7446146.html

Workaround

You might create the expected stg file from en.stg, and then the code base should compile correctly. This discussion thread contains step by step guide on how to create the new stg file,

http://sharpsnmplib.codeplex.com/discussions/318057

More Information

N/A

References

N/A

Last edited Feb 24, 2013 at 7:19 PM by lextm, version 1