News:

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

Main Menu

Recent posts

#31
Beginner questions / Re: Pomake incompatibility
Last post by TimoVJL - November 12, 2025, 03:15:54 PM
POMAKE: example2.mak(9): warning: The system cannot read from the specified device.You also forgot CR/LF from last line.
#32
Beginner questions / Re: Pomake incompatibility
Last post by John Z - November 12, 2025, 01:35:56 PM
Hi italofutura,

Are you sure you are using version 13?  It seems you are using a very old version.
Even look at copyright you provided 2004 - new version copyright 13.0.0 is 2025 -

Perhaps version 13 was not fully installed for some reason.

Below are screen shots of pomake.exe details in Pelles C v13.

John Z

ALSO notice that the example provided by TimoVJL shows pomake version 13.0.0
I believe the '10' he mentions is the WINDOWS version -

results on Windows 11 - testing pomake v10-v13
Windows 11
-------
# Sample makefile

all: file2.obj file1.obj

file2.obj: file2.c
        type $*.c

file1.obj: file1.c
        type $*.c
-------
PATH=C:\Program Files\PellesC_V10\Bin
c:\POMAKE>pomake -f example2.mak
        type file2.c
// file 2
int k;
        type file1.c
// file1
int k;
-------
PATH=C:\Program Files\PellesC_V11\Bin
c:\POMAKE>pomake -f example2.mak
POMAKE: example2.mak(9): warning: The system cannot read from the specified device.
        type file2.c
// file 2
int k;
        type file1.c
// file1
int k;
-------
PATH=C:\Program Files\PellesC_V12\Bin
c:\POMAKE>pomake -f example2.mak
POMAKE: example2.mak(9): warning: The system cannot read from the specified device.
        type file2.c
// file 2
int k;
        type file1.c
// file1
int k;
-------
PATH=C:\Program Files\PellesC_V13\Bin
c:\POMAKE>pomake -f example2.mak
POMAKE: example2.mak(9): warning: The system cannot read from the specified device.
        type file2.c
// file 2
int k;
        type file1.c
// file1
int k;
-------
#33
Beginner questions / Re: Pomake incompatibility
Last post by italofutura - November 12, 2025, 08:50:46 AM
Quote from: TimoVJL on November 11, 2025, 11:43:12 PMMissing CR from last line.

Since version 11 something is wrong with it.
pomake v.10 works with a your example.


My problem is with PellesC 13.00

QuotePelles Make Utility, Version 2.80.0
Copyright (c) Pelle Orinius 1995-2004
#34
Beginner questions / Re: Pomake incompatibility
Last post by TimoVJL - November 11, 2025, 11:43:12 PM
Missing CR/LF from last line.

Since version 11 something is wrong with it.
pomake v.10 works with a your example.

EDIT:
Pelles Make Utility, Version 13.00.0
Copyright (c) Pelle Orinius 1995-2025

>pomake -f example1.mak
        type file1.c
// I am file1
        type file2.c
// I am file2
#35
Beginner questions / Re: Error #2158 Unrecognized t...
Last post by TimoVJL - November 11, 2025, 08:20:13 PM
Quote/Go Accepts 'old' names for C runtime functions.
#ifndef _SSIZE_T_DEFINED
#define _SSIZE_T_DEFINED
typedef __SSIZE_TYPE__ _ssize_t;
#ifdef __POCC__OLDNAMES
typedef __SSIZE_TYPE__ ssize_t;
#endif /* __POCC__OLDNAMES */
#endif /* SSIZE_T_DEFINED */
#36
Beginner questions / Error #2158 Unrecognized type ...
Last post by Jerry - November 11, 2025, 07:07:32 PM
Dear all,

I am working on adding a graphical user interface to one of my curve-fitting codes. The code compiles and runs correctly with several other compilers (CodeBlocks 2025, Visual Studio, Intel OneAPI, and GCC), but Pelles C reports the following error:

Error #2158: Unrecognized type 'ssize_t'


I have already checked previous discussions on this forum and tried the common suggestions, including adding:

#include <sys/types.h>
#define __STDC_WANT_LIB_EXT2__ 1


Unfortunately, the error persists.

Does anyone know how to properly enable or define ssize_t in Pelles C? My understanding is that ssize_t should be available by default, as it is in the other compilers I have tested.

Any suggestions or guidance would be greatly appreciated. Thank you.
#37
Beginner questions / Pomake incompatibility
Last post by italofutura - November 11, 2025, 01:44:55 PM
Hi I try to run this makefile.

Isend here in order to not spam the bug reports (in case I misuse pomake)

Jom 1.1.4 Windows 11 x64

and

Nmake ("c:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\bin\Hostx64\x64\nmake.exe")

work fine.

Pomake runs the first two dependency lines and crashes with Access Violation.
#38
User contributions / Re: Boot time
Last post by Vortex - November 10, 2025, 08:25:51 PM
Hi Timo,

There is also the GetTickCount function. The documentation states that :

QuoteNtQuerySystemInformation may be altered or unavailable in future versions of Windows.

https://learn.microsoft.com/en-us/windows/win32/api/winternl/nf-winternl-ntquerysysteminformation
#39
User contributions / Re: Boot time
Last post by TimoVJL - November 10, 2025, 09:10:14 AM
Quote from: Vortex on November 09, 2025, 08:22:44 PMAnother method to get the boot time is to use the GetTickCount64 API function.
Works only since Vista.

This is quite short.
    NtQuerySystemInformation(SystemTimeOfDayInformation, &stodi, sizeof(stodi), 0);
    // (*(LONGLONG*)&stodi.BootTime) -= (*(LONGLONG*)&stodi.TimeZoneBias);
    stodi.BootTime.QuadPart -= stodi.TimeZoneBias.QuadPart;
    (*(LONGLONG*)&ft) = (*(LONGLONG*)&stodi.BootTime);
    FileTimeToSystemTime(&ft, &st);
#40
User contributions / Re: Boot time
Last post by Vortex - November 09, 2025, 08:22:44 PM
Hi Timo,

Another method to get the boot time is to use the GetTickCount64 API function.