X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 	tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4B1D7973.7010603@gmail.com>
Date: Mon, 07 Dec 2009 21:53:55 +0000
From: Dave Korn <dave.korn.cygwin@googlemail.com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Help with errors while compiling
References: <26683356.post@talk.nabble.com> <4B1D68ED.8090501@gmail.com> <26684236.post@talk.nabble.com>
In-Reply-To: <26684236.post@talk.nabble.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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

