Questions tagged [pelles-c]

Pelles C is a lightweight freeware integrated development environment for Windows and Pocket PC programming in the C language.

Pelles C is a complete development kit for Windows (and Windows Mobile, but this platform is fading away). It contains among other things an optimizing C compiler, a macro assembler, a linker, a resource compiler, a message compiler, a code signing utility, a make utility and an install builder.

It also contains an integrated development environment (IDE) with project management, debugger, profiler, source code editor, and resource editors for dialogs, menus, string tables, accelerator tables, bitmaps, icons, cursors, animated cursors, animation videos (AVI's without sound), versions and XP manifests.

The compiler is originally based on LCC (by Chris Fraser and David Hanson), but since then enhanced with support for C99 and C11, a global optimizer, a new register allocator, a function inliner, intrinsic functions, and many Microsoft C extensions.

The install builder for Windows is originally based on NSIS from Nullsoft.

Reference: The Official Website

23 questions
5
votes
2 answers

Cannot get SHGetKnownFolderPath() function working

I am having troubles using SHGetKnownFolderPath() function. I am getting the following error message: Type error in argument 1 to 'SHGetKnownFolderPath'; expected 'const struct _GUID *' but found 'struct _GUID'. In the KnowFolders.h we have the…
Jan Bodnar
  • 10,969
  • 6
  • 68
  • 77
3
votes
1 answer

Variadic Function Overloading in C

After a bit of research and a lot of mucking about I've come up with this: #include // Variadic Function Overloading: #define VOID "__variadic_VOID__" #define variadic_count(...) variadic_count_(__VA_ARGS__, 6, 5, 4, 3, 2, 1,…
2
votes
3 answers

Exception: Access Violation when trying to use fscanf()

I'm trying to read a file, which contains three lines of text, and store its contents into an array. It should be rather straightforward, but I keep getting an "Exception: Access Violation", as per title. This is my code: #include
Eptagon
  • 68
  • 7
2
votes
3 answers

In pelles c windows.h doesn't compile

I'm using pelles c. when I compile this code: #include #include void main(void) { printf("Hello World"); } I get this error: D:\Program Files\PellesC\Include\Win\basetsd.h(53): error #2001: Syntax error: expected ';' but…
nima
  • 6,566
  • 4
  • 45
  • 57
2
votes
1 answer

Pelles C and GCC give different result with this C primality test

I compile this code with this compilers. For number i write 18446744073709551615 (2^64-1). Pelles's executable says "18446744073709551615 is prime" but GCC's executable says "18446744073709551615 isn't prime". Why results are different? #include…
jarulfi-r
  • 23
  • 4
2
votes
1 answer

Why do I get an Access Violation in atio6axx.dll when calling glBindBuffer?

Leading up to the problem: Learning about OpenGL using C, by making a (supposedly easy) tile-based game of my own design. Originally I was drawing only ~10 triangles or so for testing, and I set up the buffer data and indices like so: const float…
Hydronium
  • 793
  • 1
  • 11
  • 28
1
vote
2 answers

Why does this code have a "EOF in inline file" error and what can I do to fix it?

I got this source code straight from the manufacturer and I cannot get it to compile. I always get a EOF in file error. I am using Pelles C to compile on Windows 10 X64. It seems that it should be pretty straight forward but I cant figure it out. It…
Tim Yorba
  • 13
  • 3
1
vote
1 answer

Link to a DLL in Pelles C

I have a 218KB .dll and a 596KB .so file, both with identical names. I want to link to the .dll to avoid the "unresolved external symbol" error that the linker returns, but I can't find a way to link to the DLL file. According to this Pelles C forum…
wizzwizz4
  • 6,140
  • 2
  • 26
  • 62
1
vote
1 answer

C language equivalent to ./folder?

I am working on a C project in Pelles C and I am looking to fopen csv files within a subdirectory of my project folder. Right now I have my absolute pathway to the files like so: fopen("F:my/path/projectfolder/datafolder/data.csv", "r"); and this…
Madi_FTW
  • 13
  • 2
1
vote
1 answer

POLINK:error: Unresolved external symbol. Pelles C

I'm new to programming. I'm using Pelles C ide to compile C and it was working yesterday but now there is this error. Here is the code from the project: #include int main(void) { double operand1; double result; char operator; double…
somethingSomething
  • 830
  • 7
  • 20
  • 43
1
vote
1 answer

Is PellesC strictly-conforming to standard C99?

I have found in http://en.wikipedia.org/wiki/C99 that Pelles C has full support for C99. However I have doubts. As probably you know, the GCC project has not yet reached full support for C99. The details in which GCC is conforming or not are very…
pablo1977
  • 4,281
  • 1
  • 15
  • 41
1
vote
2 answers

Code can stop working with compiler optimization

I'm using the PellesC C compiler. Sometimes my code randomly stops working. A particular statement can trigger it. For example, I multiplied a variable by sin(c) (c is a double) and my code seemed to just finish execution with no result. Sometimes…
Void Star
  • 2,401
  • 4
  • 32
  • 57
0
votes
1 answer

How to remove or hide component in Pelle C IDE

I want to remove or hide some components from my window (button, combobox, etc). How can I do that?
FruitDealer
  • 164
  • 1
  • 11
0
votes
3 answers

Dos.h + Pc.h in C and Windows Vista

I am currently looking to work with Mesa3D to create a software rendered graphic application with OpenGL. I am looking a a few tutorials right now on how to use it, and many are written with DOS or older versions of Windows in mind. As I run Vista…
Ewan
  • 357
  • 1
  • 4
  • 15
0
votes
3 answers

Weird output with pelles c

float f=44268/107402; printf("\n%f",f); output : 0.000000 How can this happen! I am using pelles c ide on win 7.
Alex David
  • 585
  • 1
  • 11
  • 32
1
2