This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Help with errors while compiling
Afflictedd2 wrote:
> Well,
>
> Now that you say that. I will simplify my makefile, but then it doesn't know
> what pthread_create is.. or anything related to pthread.
> C:\Users\Viper\Documents\Cpp\Pthreads>"C:\Program Files\SlickEdit
> 2009\win\vsbuild" -signal 9009 -command make -f "Makefile" CFG=Debug
> VSLICKERRORPATH="C:\Users\Viper\Documents\Cpp\Pthreads"
Hey, no fair, you never mentioned all that before!
> mingw32-make: *** [Debug/Pthreads.o] Error 1
And you're not even using cygwin make. Clearly this "vsbuild" thing has no
idea how to drive Cygwin's gcc and it's getting all your paths and environment
variables mixed up.
> The Pthreads.cpp file is perfect, I've tried it in Linux..
And I've tried it in Cygwin:
> $ mkdir Debug
>
> admin@ubik /tmp/pthread
> $ g++ -c -g -o "Debug/Pthreads.o" Pthreads.cpp
>
> admin@ubik /tmp/pthread
> $ echo $?
> 0
>
> admin@ubik /tmp/pthread
> $
... so it's all down to some problem in the IDE you're using. Which seems to
be expecting to work with visual studio. No wonder the poor thing's confused!
cheers,
DaveK
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple