Server Help

ASSS Questions - Compiling in cygwin.

Cyan~Fire - Mon Mar 21, 2005 7:37 pm
Post subject: Compiling in cygwin.
I'm getting all sorts of redefinition errors realting to pthreads. Names pid_t, struct timespec, _POSIX_THREAD_SAFE_FUNCTIONS, _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_PRIORITY_SCHEDULING, pthread_t, pthread_attr_t, pthread_once_t, pthread_key_t, and uhh all those things. They seem to be defined in the cygwin types headers and the asss stuff.

Also, O_BINARY is already defined in /usr/include/sys/fcntl.h with a value other than 0.

Thanks.
Grelminar - Tue Mar 22, 2005 3:02 am
Post subject:
Uh, I haven't tried cygwin in a while. I thought the makefile handled it properly, but it might not. Basically you should just treat it as unix. Make sure WIN32 is _not_ defined, and don't use the includes from ../windeps (or, at least not the pthread ones, since that seems to be causing you problems).
Cyan~Fire - Tue Mar 22, 2005 9:32 am
Post subject:
Oh, my bad. I was trying to use make in cygwin instead of make in Dev-C++. Makefile.devcpp (sensibly) wouldn't work in nmake and I totally forgot MinGW came with its own version of make.

Sorry, and thanks. icon_smile.gif
Cyan~Fire - Tue Mar 22, 2005 9:56 am
Post subject:
Well, I think I have a slight fix for Makefile.devcpp.

Code: Show/Hide
install:
#...
   $(INSTALL) $(DEPS)/libdb4.dll $(DEPS)/libmySQL.dll $(DEPS)/pthreadGC.dll \
      $(DEPS)/python23.dll $(DEPS)/zlib1.dll $(BINDIR)

In the above line, shouldn't $(DEPS) actually by the respective home directories? For example, I've set $(PYTHON_HOME) to C:\Python and not $(DEPS), so it's looking in the wrong place for python23.dll.

Of course, it's easily fixed for myself, but some other poor, unsuspecting dev-c++ with a different value for $(PYTHON_HOME)... icon_cry.gif

Actually... I have python23.dll in my path and it doesn't even need to be install.exe'd. But I have no clue what the protocol for that is.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group