From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25389 invoked by alias); 10 Jul 2014 22:42:47 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 25341 invoked by uid 89); 10 Jul 2014 22:42:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: p3plsmtpa12-05.prod.phx3.secureserver.net Received: from p3plsmtpa12-05.prod.phx3.secureserver.net (HELO p3plsmtpa12-05.prod.phx3.secureserver.net) (68.178.252.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 10 Jul 2014 22:42:41 +0000 Received: from [10.0.1.110] ([72.209.18.161]) by p3plsmtpa12-05.prod.phx3.secureserver.net with id Qmif1o01a3UWwwg01migHr; Thu, 10 Jul 2014 15:42:40 -0700 Message-ID: <53BF16CE.4070406@codespunk.com> Date: Thu, 10 Jul 2014 22:42:00 -0000 From: "Matt D." User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: using make without cygwin terminal References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-07/txt/msg00127.txt.bz2 Rob, You need to setup your environment paths to include both the compiler's include and libs directories as well as the targeted platform sdk, if you're using one. I use a custom tool chain with Cygwin/GNU Make in my build system with support for every version of Visual Studio, including 6. Here is an example of the required paths: Includes: vs6/vc98/include vs6/vc98/mfc/include vs6/vc98/atl/include Libs: vs6/vc98/lib vs6/vc98/mfc/lib Visual Studio 6 is compatible with the Windows platform SDK up to "Windows Server 2003 R2 Platform SDK", but you shouldn't need it. Your shell environment will need to be setup for both the compiler (cl.exe) and the linker (link.exe). See here: http://msdn.microsoft.com/en-us/library/aa236630(v=vs.60).aspx http://msdn.microsoft.com/en-us/library/aa270757(v=vs.60).aspx Matt D. On 7/10/2014 6:14 PM, Robert Pendell wrote: > On Thu, Jul 10, 2014 at 12:46 PM, Okan Erat wrote: >> Dear Cygwin users, >> >> I am trying to compile a project using VS6 compiler and makefiles >> generated by imake. >> When i run make from cygwin terminal it compiles everything without any problem. >> However if i run make from windows terminal (c:/cygwin/bin is already in Path) >> VS6 complains about various problems. >> such as: >> >> winbase.h(1011) : error C2733: second C linkage of overloaded function >> 'InterlockedIncrement' not allowed >> >> mswsock.h(69) : error C2065: 'SOCKET' : undeclared identifier >> >> winsock2.h(85) : error C2378: 'SOCKET' : redefinition; symbol cannot >> be overloaded with a typedef >> >> Why make works with cygwin terminal but not with windows terminal. >> >> Thanks for your answers > > Those errors are not coming from cygwin make. That's coming from VS6 > make. Cygwin make doesn't have errors formatted that way. > > With that in mind Visual Studio is a Microsoft product and not really > supported here. > > Robert Pendell > A perfect world is one of chaos. > > -- > 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 > > > -- 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