POV-Ray : Newsgroups : povray.unofficial.patches : Hgpovray38, current state : Re: Hgpovray38, current state Server Time
28 Apr 2024 03:04:19 EDT (-0400)
  Re: Hgpovray38, current state  
From: jr
Date: 2 Jun 2020 14:55:01
Message: <web.5ed69f59b933d8374d00143e0@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:
> ...
> jr@crow:2:tmp$ cat mr.c
> #include <stdio.h>
> int main(void) {
>   ssize_t a, b, c;
>   a = -1, b = 0, c = 1;
>   printf("ssize_t vals: %zd  %zd  %zd\n", a, b, c);
>   return 0;
> }
> ...

and, although I don't "speak" C++, I was able to confirm that it should work if
you include 'stdio.h'.

jr@crow:6:tmp$ c### [at] mrcpp
#include <iostream>
#include <stdio.h>

int main(void) {
  ssize_t a, b, c;
  a = -1, b = 0, c = 1;
  std::cout << "ssize_t vals:" << a << "  " << b << "  " << c << "\n";
  return 0;
}

jr@crow:7:tmp$ c++ mr.cpp
jr@crow:8:tmp$ ./a.out
ssize_t vals:-1  0  1
jr@crow:9:tmp$


regards, jr.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.