problem installing openTimer in cygwin

Csaba Raduly
Sun Nov 13 19:50:00 GMT 2016

On Fri, Nov 11, 2016 at 3:12 PM, kunal ghosh wrote:
> Also, I went ahead modifying the utilities.h to point to
> windows/port.h, instead of port.h.

That sounds dangerous

> And some more hacks to get rid of other errors. Now 'make' gives me
> the below errors. Not sure how to resolve this
> src/ In member function 'bool
> google::{anonymous}::LogFileObject::CreateLogfile(const string&)':
> src/ error: 'symlink' was not declared in this scope
>      if (symlink(linkdest, linkpath.c_str()) != 0) {
>                                            ^
> src/ error: 'symlink' was not declared in this scope
>        if (symlink(filename, linkpath.c_str()) != 0) {

symlink() is in unistd.h
You need to make  _DEFAULT_SOURCE or _GNU_SOURCE be defined for
symlin() to be visible on Cygwin.

It seems to me that the author of OpenTimer does not understand what
Cygwin is or what it does,
as evidenced by lines like

#if defined( WIN32) || defined(CYGWIN)

and the attempt to use Win32 instead of pthreads when compiling
Cygwin. Unfortunately (for you), I have no interest in OpenTimer, so I
can't help you any further.

GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list