piekeron.blogg.se

Compiling semaphor c
Compiling semaphor c






compiling semaphor c
  1. #COMPILING SEMAPHOR C HOW TO#
  2. #COMPILING SEMAPHOR C WINDOWS#

I am not sure if the pthreads lib I grabbed is the right one. I think the issue I have now involves the semaphore.h file, which has stuff in it that referrence a threading library, namely "pthreads". Now, I have had to tell mingw to use the library when I go to compile, using the "-l" switch.

compiling semaphor c

This suggests to me that I went a step in the right direction. Note- vast majority of errors in each case are "undefined referrence to XXX". Now, when I try to compile echoserver.cpp, I have far fewer errors than my first attempt to compile. I renamed the copy that had already been there (which is larger than the one that I compiled). Here I had one problem crop up- "semaphore.h" was a duplicate (it was in the newly compiled directory, and there was a copy in the \include directory). With that info, I decided to dump the library into the \lib directory.

#COMPILING SEMAPHOR C HOW TO#

I looked into how to add said library to mingw. When I initially tried to compile this program, I did not tell mingw where the newly compiled library was obviously a lot of errors where thrown. However, I am having difficulty in compiling an example that came with the library source. I was able to compile the library using mingw32-make.

#COMPILING SEMAPHOR C WINDOWS#

I am not using cygwin, I am using the windows port of mingw32. I want to add the Sockets library (version 2.3.9.5) at to my compiler (Mingw32 version 4.5.2).








Compiling semaphor c