Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2008 May : Problem with C code in Release mode (VS 2005)

www.cryer.info
Managed Newsgroup Archive

Problem with C code in Release mode (VS 2005)

Subject:Problem with C code in Release mode (VS 2005)
Posted by:"David J Taylor" (david-tayl..@blueyonder.co.not-this-bit.nor-this-part.uk)
Date:Wed, 7 May 2008 17:28:49

Yes, I know this looks like the wrong group, but as I am not fluent in C I
thought I might get a more polite and understandable answer here!

I have the C code I make into a DLL.  I /think/ it compiled perfectly with
VS2003, and it compiles perfectly in a Debug build in VS2005.  But in a
Release build in VS2005, I get errors like this in one unit (huffd.c):

1>huffd.c
1>..\huffd.c(546) : warning C4047: '=' : 'int *__w64 ' differs in levels
of indirection from 'long'
1>..\huffd.c(546) : error C2106: '=' : left operand must be l-value
1>..\huffd.c(546) : warning C4047: '=' : 'int *__w64 ' differs in levels
of indirection from 'int'
1>..\huffd.c(546) : error C2106: '=' : left operand must be l-value
1>..\huffd.c(546) : warning C4047: '=' : 'int *__w64 ' differs in levels
of indirection from 'long'
1>..\huffd.c(546) : error C2106: '=' : left operand must be l-value
1>..\huffd.c(546) : error C2106: '=' : left operand must be l-value

Line 546 is:

  HuffDecode (dctbl,&s);

I can't find __w64 anywhere in the source text, and this is 32-bit code,
not 64-bit code, so I'm stuck to getting any further.

Any ideas from someone more fluent in C or VS2005?  The entire thing is
only 31K zipped....I could post it in .attachments....

Thanks,
David

Replies:

www.cryer.info
Managed Newsgroup Archive