News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Recent posts

#61
Work in progress / Re: ChatGPT examples
Last post by Phil - October 12, 2025, 07:06:58 PM
I use Gemini free and it is a good tool. The thing I don't like is that it doesn't know Windows System File.

The code generated by Gemini contains 2% of bugs.

The code is well commented.

We always must control what it proposing. It is a way to improve code or to learn more for a library.

Now I am using for making ephemeris Using novas library. It helps me to use the de440.xxx files.

It is an example but win a lot of time.

It is surprising.

I tested Chatgpt and perplexity very bad. Three questions and you have to wait for 24 hours.

I. Have tested Mistral, French, it is very good.

I am only using the free versions.
To pay 15 or 20 euros for writing some code is too expensive
#62
User contributions / Re: Hint_SA (Standalone)
Last post by Phil - October 12, 2025, 06:51:46 PM
A Crazy work for a tool programer cannot ignore.
#63
Add-ins / Re: Hint Add-IN
Last post by John Z - October 10, 2025, 02:12:19 PM
Hi All,

Here is a new release of the Hint Add-In.  There are very minor code changes, but a significant enhancement to the DB3 database.  It now contains 10,043 functions with the base header and library names as well as basic function descriptions for all but about 600 functions.

The post contains the dll in case someone does not want to do a rebuild but sources are included.

Since it is just an sqlite db3 of course one could write their own interface to it - have fun.

In any case it now should be more useful than before. 

Functions might be added in the future but I think the DB structure won't change.  A new table also has been added for possibly linking functions to the Github docs in a download zip, or perhaps as internet links but not populated. 

John Z

#64
User contributions / Re: Hint_SA (Standalone) Vers...
Last post by John Z - October 10, 2025, 01:55:58 PM
Hi All,

Here is the release of Hint_SA version 1.2.  Very minor code changes but a significant change in the db3 database.  The database now contain 10043 functions with the base Header and library required as well as the basic function description for all but about 600 functions. The old DB3 has this for only about 1800 functions.

The DB3 and the source code are posted below. The exe is included in case one does not want to or can't build it.

John Z

Hint Add-in has been updated too, so check under the Add-in topics
#65
Beginner questions / Re: conio.h trouble
Last post by Pelle - October 09, 2025, 08:43:58 PM
__declspec() is a Microsoft invention (I think) used by the compiler to attach extra attributes to a function or data object.
I see you found __attribute__() which is GNU's way of doing the same thing (more or less).

I'm starting to wonder if you are mixing include files (*.h) from different C compilers...? This is a pretty sure way of getting weird problems.

If you suspect this is the case, try adding the compiler option /V1 for more during compilation. The path for "stdio.h" should be to the directory where Pelles C (and only Pelles C) is installed.
#66
Chit-Chat / Re: Permission to include Pell...
Last post by Vortex - October 08, 2025, 10:38:34 AM
Hi Pelle,

Many thanks for your permission.
#67
Beginner questions / Re: conio.h trouble
Last post by PhilG57 - October 07, 2025, 11:34:17 PM
This is only thing I see:

 :-[ Find "define printf".
"C:\Users\philg\Documents\C Programming\RCSW\Native Windows_04_11_2020\config.h" (196)   #define  printf_string( m, n )      __attribute__ ( ( format (printf, m, n ) ) )
"C:\Users\philg\Documents\C Programming\RCSW\Native Windows_04_11_2020\config.h" (198)   #define  printf_string( m, n )
"C:\Users\philg\Documents\C Programming\RCSW\Native Windows_04_11_2020\config.h" (203)   #define  printf_string_exiting( m, n )   __attribute__ ( ( format (printf, m, n ), noreturn ) )
"C:\Users\philg\Documents\C Programming\RCSW\Native Windows_04_11_2020\config.h" (205)   #define  printf_string_exiting( m, n )   printf_string ( m, n )
4 hit(s)

This code, these modules, are ancient and originally written as console programs. 
#68
Beginner questions / Re: conio.h trouble
Last post by Pelle - October 07, 2025, 11:11:58 PM
The _CRTCHK(printf,1,2) part of line 50 will expand from this:
#define _CRTCHK(f,n,m)  __declspec(vaformat(f,n,m))which normally works fine with Pelles C.

I'm not sure why things are failing for you. Wild guess: do you have a conflicting #define printf somewhere?
#69
Chit-Chat / Re: Permission to include Pell...
Last post by Pelle - October 07, 2025, 11:01:08 PM
Sure... go ahead...
#70
Beginner questions / conio.h trouble
Last post by PhilG57 - October 07, 2025, 10:18:00 PM
Trying to rebuild an old program and now get complaints about conio.h:

C:\Program Files\Pelles C\Include\conio.h(50): error #2019: Invalid use of __declspec(vaformat).

Line 50 in conio.h looks like:

extern _CRTIMP _CRTCHK(printf,1,2) int __cdecl _cprintf(const char * restrict, ...);

The code with which I am working looks like this:

   #include <conio.h>      /* for textcolor and backgroundcolor */
   _textcolor(1);   /* dark blue; very hard to see */
   fprintf(stderr, "rlog %s: ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789\n\r", gszCmdId);
   _textcolor(2);   /* green; very hard to see */

I googled __declspec and saw references to C++ and MSVC but couldn't really figure out anything.  What am I doing wrong?  Thanks.