delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/08/00:34:47

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4B1DE586.5050900@ateb.com>
Date: Tue, 08 Dec 2009 00:35:02 -0500
From: Reid Thompson <reid DOT thompson AT ateb DOT com>
Reply-To: reid DOT thompson AT ateb DOT com
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Help with errors while compiling
References: <26683356 DOT post AT talk DOT nabble DOT com> <4B1D68ED DOT 8090501 AT gmail DOT com> <26684236 DOT post AT talk DOT nabble DOT com> <4B1D7973 DOT 7010603 AT gmail DOT com> <26686564 DOT post AT talk DOT nabble DOT com> <4B1DB360 DOT 30200 AT ateb DOT com> <26687648 DOT post AT talk DOT nabble DOT com>
In-Reply-To: <26687648.post@talk.nabble.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Afflictedd2 wrote:
> what... ? what are you implying.. that doesn't help !
> 
> jreidthompson wrote:
>> Afflictedd2 wrote:
>>> Thank you Dave! I hadn't thought of doing it directly in the cygwin
>>> console,
>>> because I had tried it on my regular console which also has the cygwin
>>> path
>>> in it, but it also has the mingw32 path.. which I think that's the root
>>> of
>>> all evil :\
>>>
>>>>  Hey, no fair, you never mentioned all that before!
>>> Sorry I forgot :\
>>>
>>> It works great like that, also with my makefile.. but I want it to work
>>> with
>>> the IDE, because I like a lot of its features, and I'm I don't like the
>>> cygwin console much. I just need to know what environment I need to
>>> create
>>> in it. Any clues where I could find this type of information?
>>>
>>> I know I used mingw-make32 but.. I've also tried using the
>>> C:\Cygwin\bin\make, and I get the same errors, so if there could be a way
>>> to
>>> put the same environment that cygwin console has, into my IDE. Where is
>>> this
>>> environment information listed?
>>>
>>> Ed.
>>>
>>>
>>> Dave Korn-6 wrote:
>>>> 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 AT ubik /tmp/pthread
>>>>> $ g++ -c   -g -o "Debug/Pthreads.o"  Pthreads.cpp
>>>>>
>>>>> admin AT ubik /tmp/pthread
>>>>> $ echo $?
>>>>> 0
>>>>>
>>>>> admin AT 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
>>>>
>> "C:\Program Files\SlickEdit  so perhaps the user guide at
>> http://www.slickedit.com/products/slickedit/product-documentation
>>

Based on the data you've posted I guessed that you are using slickedit
    >>>>> C:\Users\Viper\Documents\Cpp\Pthreads>"C:\Program Files\SlickEdit
as your IDE.
Is this an incorrect assumption?
If it is, then you need to provide more information -- what IDE are you using?

You asked this question ->>>I just need to know what environment I need to
 >>> create
 >>> in it. Any clues where I could find this type of information?

I thought perhaps that the slickedit user guide might provide clues on how to setup various build environments.
Assuming that slickedit is your ide, I googled for slickedit cygwin configuration and found 
http://community.slickedit.com/index.php?topic=4551.msg18553 which may or may not be of help...

If your IDE and it's documentation do not provide enough information for you to setup the environment, then 
you may want to consider a different IDE.  CodeBlocks www.codeblocks.com works well on windows and is fairly 
easy to configure for all the compiler environments I have on my box
cygwin (i had to explicitly configure Settings/compiler & debuger/cygwin gcc/ to point to gcc-3 and g++-3
as I have /etc/alternatives configured and codeblocks could not use the symlink)
borland
OpenWatcom
as well as the built-in ?mingw? gcc environment

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019