using make without cygwin terminal

Matt D. matt@codespunk.com
Thu Jul 10 22:42:00 GMT 2014


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



More information about the Cygwin mailing list