From: Jonathan T. <tec...@ka...> - 2005-08-07 17:50:55
|
Earnie Boyd wrote: > On 7:21:29 am 2005-06-06 Jonathan Turkanis > <tec...@ka...> wrote: >> Hi, >> >> I'm trying to execute a makefile designed for use with GNU make and >> the Microsoft C++ command-line tools. I find that the environment >> translates some command-line swicthes as if they were file pathnames. >> For instance, /EHsc becomes C:/Tools/msys/1.0/EHsc. It only happens >> in some cases; for example, the linker option /OUT: doesn't get >> translated. >> >> I've found I can disable this behavior by changing the makefile to >> use "//" instead of "/". This is not an acceptable solution, however, >> since it would render the makefile unusable in other environments. >> >> What can I do to disable the translations? >> > > Does ``make --win32'' help? I get the errors shown below. > Earnie Jonathan ----- $ make --win32 -fvc-explicit-cmd.mak cl /c /nologo /EHsc /GR /Fohello hello.cpp Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86 Copyright (C) Microsoft Corporation 1984-2002. All rights reserved. cl : Command line warning D4024 : unrecognized source file type 'c:/', object file assumed cl : Command line warning D4024 : unrecognized source file type 'C:/Tools/msys/1.0/nologo', object file assumed cl : Command line warning D4024 : unrecognized source file type 'C:/Tools/msys/1.0/EHsc', object file assumed |