Thread View: gnu.g++.help
1 messages
1 total messages
Started by pwang
Fri, 19 Apr 1991 18:40
Mixing C and C++
Author: pwang
Date: Fri, 19 Apr 1991 18:40
Date: Fri, 19 Apr 1991 18:40
19 lines
920 bytes
920 bytes
Our g++ compiler issues a warning after seeing the function name
``flock'' inside a extern "C" { ... }
and then seeing the
struct flock { ...
...
};
in the fctlcomm.h header file on the SUN.
The warning is
flock declared `extern' and now declared again as `static' ...
Question: Why is the second declaration of flock static? How in general
to avoid such name conflicts when including C/UNIX header files?
Thanks.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads