Questions tagged [lcc-win32]

lcc-win32 is an integrated development environment package for Microsoft Windows which includes a fork of LCC, a small, retargetable compiler for the ANSI C programming language.

lcc-win32 is an integrated development environment package for Microsoft Windows which includes a fork of LCC,a retargetable compiler for the ANSI C programming language. An amd64 counterpart named lcc-win64 exists, which is in development and is not yet stable.

15 questions
26
votes
1 answer

LCC-- How to stop debugger from breaking at the start of the application?

I'm not sure of how many users there are out there that use the LCC C compiler and the WEdit GUI for Windows but it has a "feature" that is can get to be quite annoying. When you start an application with the debugger, it breaks the application at…
RLH
  • 15,230
  • 22
  • 98
  • 182
7
votes
7 answers

How to check if a file has content or not using C?

I have a source file file1 and a destination file file2, here I have to move content from file1 to file2. So I have to do some validation first. I must check source file is existing or not? I can check using this: fp = fopen( argv[1],"r" ); if…
user1853112
4
votes
1 answer

LCC: Forward Declaration of Typedef'd Enum Failing?

The following code snippet compiles just fine on Mac OS X with gcc, but fails to compile on Windows with lcc-win32: typedef enum Foo Foo; // Other code here enum Foo { Bar = 1 }; And gives this error: unknown enumeration 'Foo' In my particular…
Steve
  • 31,144
  • 19
  • 99
  • 122
3
votes
0 answers

how to compile a 64-bit .dll on windows with lcc-win?

Using Windows 7 64-bit and lcc-win32 2 source files: Hello.c HelloImpl.c The following: lcc -shadows -unused -v -IC:\lcc\include -I"C:\Program Files\Java\jdk1.7.0_45\include" -I"C:\Program Files\Java\jdk1.7.0_45\include\win32" -g2 %1.c lcc -shadows…
David Price
  • 151
  • 11
1
vote
1 answer

Using the lcc-win compiler from the command line

I have installed the lcc compiler so that I can compile c programs on my windows machine - but I am having troubles getting it to work... I added C:\lcc\bin to my PATH environment variable, but when I type in: lcc args into my command line, I get…
Toadums
  • 2,772
  • 8
  • 44
  • 67
1
vote
2 answers

LCC: Initializing Structs Containing Structs?

The following code snippet compiles just fine on Mac OS X with gcc, but fails to compile on Windows with lcc-win32: typedef struct Foo Foo; typedef struct Bar Bar; struct Bar { int age; int height; }; struct Foo { Bar barOne; Bar barTwo; }; //…
Steve
  • 31,144
  • 19
  • 99
  • 122
1
vote
1 answer

How to run console with a c++ application

I need to run a console when the app starts (for debug, log, etc) without a .bat file. I use the LCC compiler on Windows 7 x86.
0
votes
1 answer

Segment violation writing to variable in DLL (lcc-win32)

I've built a DLL with a few functions and global variables. Then I've used buildlib to create an import library for it. The .exp file is: CSC_FFSW.dll _CSC_FFSW_B _CSC_FFSW_B data _CSC_FFSW_DWork _CSC_FFSW_DWork …
Miguel Muñoz
  • 326
  • 1
  • 6
0
votes
1 answer

Using D2XX of FTDI with C

I'm trying to use ftd2xx.lib with lcc-win32 compiler but the linker fails. I used CDM v2.12.14 but also previous FTDI driverd give the same errors. I tried to compile on Windows XP and Windows7; same results. If I link the static library I will get…
J.Nathan
  • 1
  • 4
0
votes
3 answers

open file path from other file in c

i am trying to open a file handler to a path i got from file, i have input file which has a full path in it for example : c:\def\es1.txt i replaced the "\" char to double "\" so it will fit string format and then i am using : myfile =…
Omega Doe
  • 325
  • 1
  • 2
  • 17
0
votes
1 answer

linking to GSL library using lccwin64 compiler

Linking to the Gnu Scientific Library is very well documented using gcc for Linux & Cygwin. Here, I'm working on Windows 7, and all I have is the lcc compiler (http://www.cs.virginia.edu/~lcc-win32/ , which includes lcc64 and lcclnk64) and GSL…
user2105469
  • 1,413
  • 3
  • 20
  • 37
0
votes
0 answers

SIMULINK - use .dll and .OBJ files (compiled using visual studio compiler) in a host machine (with different compiler)

I need to use some library file that have been build using Visual Studio 2010 Professional (MSVCRT2010 compiler?!) and I am having trouble building my s-functions in another host machine. My target host machine does not have Visual Studio so MATLAB…
ha9u63a7
  • 6,233
  • 16
  • 73
  • 108
0
votes
2 answers

Insertion Sort Doing Nothing

I wrote the following insertion sort yesterday (I started learning C 3 days ago). For some reason, the sort does not modify the array AT ALL. #include int *insert(int arr[], int index, int item); int *isort(int arr[]); int main() { int…
Bobby Tables
  • 1,154
  • 4
  • 15
  • 25
0
votes
2 answers

gcc and lccwin32:different result

i try to compile this code: #include void print(FILE *a) { int main(); int count=20; int c; int stop=0; char answer; while(!stop){ while((c=getc(a))!=EOF){ fprintf(stdout,"%c",c); if(c=='\n'){ …
-1
votes
2 answers

lcc compiles large exe's

I wrote this in notepad and then compiled it with lcc-win, using the command lc hello.c #include int main(void) { printf("Hello World\n"); return 0; } The resulting exe was 100 KB. Seems kind of huge for a program that just prints…
MxLDevs
  • 19,048
  • 36
  • 123
  • 194