[antlr-interest] MSVC7.1 ANTLR2.7.3 rc2 Dll link error

Ric Klaren klaren at cs.utwente.nl
Tue Feb 10 02:26:03 PST 2004


Hi,

On Mon, Feb 09, 2004 at 10:44:51PM -0000, gwind04 wrote:
> I built the DLL file of ANTLR2.7.3rc2 with MSVC7.1. I then generated 
> c++ files of Calculator example. However, I could not link them 
> successfully. The error message of the DLL is :
> 
> "Calc fatal error LNK1136: invalid or corrupt file"
> 
> If I don't use the dll file, and just simpley put everything 
> including ANTLR files into the project and build them together, they 
> worked fine. 

Could it be that there was an old .o file around that got picked up ?

> btw, the release version of the dll file is 32kb, the debug version 
> is 324kb.

You are using the same settings #define wise for the release and debug
build ? Debug versions can be a lot bigger due to symbols. 32Kb looks a bit
on the small side though.

You did build the dll while including dll.cpp and included the patch that
flew over the list just now ?

Cheers,

Ric

PS I don't have MSVC so I can only give generic help with respect to these
compilers.
--
-----+++++*****************************************************+++++++++-------
    ---- Ric Klaren ----- j.klaren at utwente.nl ----- +31 53 4893722  ----
-----+++++*****************************************************+++++++++-------
  "You can't expect to wield supreme executive power just because some
   watery tot throws a sword at you!"
  --- Monty Python and the Holy Grail


 
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