Description:
The lcc C Compiler and related topics.
|
|
|
LCC-Win32 stringlib minor bug
|
| |
Being curious as to how lcc-win32's stringlib handles memory, I noticed this in the calculate_new_capacity function: if (capacity % 2 > requested_size){ I expect that "%" should really be "/". Jason.
|
|
LCC-Win32 labs bug
|
| |
There's a bug with labs - it just clears the sign bit. C:\Language\lcc>lcc -v Logiciels/Informatique lcc-win32 version 3.8. Compilation date: Jun 22 2009 18:05:34 C:\Language\lcc>type labs.c ...int main( void ) { printf( "labs( -1 ) = %ld\n", labs( -1 ) ); return 0; ...C:\Language\lcc>lc labs.c... more »
|
|
Bug report - incorrect sign when using long long variables
|
| |
I reported a bug for this program some time ago. The value printed for x was incorrect. With the version of lcc-win32 that I downloaded yesterday, the absolute values of x and t-4b are now both correct, but they are both incorrectly considered to be negative! ...int main(void) { long long t=15528312597606, b=1762289, x;... more »
|
|
isprint (and friends)
|
| |
If you use the macro/function isprint in win-lcc for the integer 9 (TAB), you get a result <> 0. All other compilers results in 0. You see the output of the program compiled with different compilers at the end of this text (source below) . Only for LCC-WIN32 the result of isprint(TAB) is true and false for the other programs.... more »
|
|
Wedit.exe uses dll-function rated "XP or higher OS"
|
| |
This bug description was added to the QSS-Bug pages yesterday...: lcc-win32 download: 2009-05-17, OS: W2K SP4 Trying to open Wedit.exe, an error occurs like "procedure SHGetFolderPathAndSubDirW not found in shell32.dll". Win SDK (XP SP2) says about SHGetFolderPathAndSubDir (a ~W procedure isn't mentioned... more »
|
|
extraneous old-style parameter list
|
| |
ISC_QUAD * encode_date (yy, mm, dd); int * yy; int * mm; int * dd; { struct tm t; t.tm_year = yy; t.tm_mon = mm; t.tm_day = dd; t.tm_sec = 0; t.tm_min = 0; t.tm_hour = 0; t.tm_isdst = 0; return gen_ib_date(&t); ...Wedit output window build: Fri Jun 12 22:15:13 2009 Error e:\c\freeudflibc\date_function s.c: 83 extraneous old-style... more »
|
|
linking multiple c files together
|
| |
I cannot seem to find out how to link 4 c files in my project. I have 3 c files date.c, mathfunc.c, strfunc.c they are not referencing together. how do i do it?
|
|
Serious bug in lcc-win32
|
| |
...But you failed to cross-post this message to that newsgroup. What good does setting follow-ups do? Brian
|
|
Bugs
|
| |
Hi, 1) what does it mean if I get the error message ------------------- "xxx compiler error in d:\lcc\mc77\types.c-assertion failure at line 630 compiler error (trap). Stopping compilation" ------------------- ?? This happens in a big project, and I have not been able to reproduce it in a minimal example so far.... more »
|
|
fseeki64() return value
|
| |
It looks like the lcc-win32 implementation of fseeki64() uses: long long fseeki64(FILE *f,long long offset,int origin); The mingw32 implementation of fseeko64() uses: int fseeko64(FILE *f, long long offset, int origin); And, of course, fseek() uses: int fseek ( FILE *f, long int offset, int origin );... more »
|
|
|