[antlr-interest] DLL under MSVC
Jörg Werner
joerg+computer.antlr at bodensee.pi5.physik.uni-stuttgart.de
Mon Feb 16 12:30:48 PST 2004
Hi!
Just wanted to let you know, that I am now able to link to antlr.dll. The
error was in my code, I was assigning an null to an ASTRef instead of using
an nullAST. Why static linking was working, and the dll linking was not
working, I don't know.
Thanks,
Jörg
On Sunday 08 February 2004 00.22, Jörg Werner wrote:
> Hi!
>
> I'm trying to compile antlr-2.7.3rc2 as a dll using MSVC 7.1. When trying
> to link my project with the dll i get the following error:
>
> unresolved external symbol '"__declspec(dllimport) public: class
> antlr::ASTRefCount<class antlr::AST> & __thiscall antlr::ASTRefCount<class
> antlr::AST>::operator=(class antlr::AST *)"
> (__imp_??4?$ASTRefCount at VAST@antlr@@@antlr@@QAEAAV01 at PAVAST@1@@Z)',
> verwiesen in Funktion '"public: void __thiscall
> MatlabWalker::patternExecuteStatement(class antlr::ASTRefCount<class
> antlr::AST>)"
> (?patternExecuteStatement at MatlabWalker@@QAEXV?$ASTRefCount at VAST@antlr@@@ant
>lr@@@Z)'
>
> Linking with a statically linked antlr-lib works.
> Can anyone help me getting rid of this error?
>
> Jörg
>
> --
>
> Jörg Werner
> j.werner at physik.uni-stuttgart.de
--
Dipl-Phys. Jörg Werner j.werner at physik.uni-stuttgart.de
Universität Stuttgart
5. physikalisches Institut Telefon: 0711/685-4951
Pfaffenwaldring 57 Telefax: 0711/685-3810
D-70550 Stuttgart
Visit our Homepage:
http://www.physik.uni-stuttgart.de/institute/pi/5/index.html
My private Homepage: http://schreibubi.pi5.physik.uni-stuttgart.de/
GPG-Key fingerprint: 6630 6A73 7725 483C 1594 1D64 3F92 5251 8710 EDF6
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list