Hi,
Simple questions, How to find where types are defined?
And, how can I find which paths are considered standard by my g++?
I get,
error: 'off_t' does not name a type
I know that if I add the following bunch
#include <sys/stat.h>
#include <sys/mman.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
it will go away. but how can I find which exactly .h file defines the
type off_t?
Ref:
$ apropos off_t
$ man -k off_t
PS. I know the .h is not the "correct" include syntax for cpp files, but
this is a legacy cpp program that I want to alter as little as possible.
thanks
--
Simple questions, How to find where types are defined?
And, how can I find which paths are considered standard by my g++?
I get,
error: 'off_t' does not name a type
I know that if I add the following bunch
#include <sys/stat.h>
#include <sys/mman.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
it will go away. but how can I find which exactly .h file defines the
type off_t?
Ref:
$ apropos off_t
$ man -k off_t
PS. I know the .h is not the "correct" include syntax for cpp files, but
this is a legacy cpp program that I want to alter as little as possible.
thanks
--
Comment