Compilation errors not shown properly in Cygwin

Tim Prince tprince@computer.org
Sat Aug 21 14:43:00 GMT 2004


At 11:32 AM 8/20/2004, Rajagopalan, Karthik wrote:

>Hi Cygwin_Techies,
>
>I  have been trying to install working packages of Cygwin for our
>current project but fails in every attempt with some issues. Currently I
>find  the Cygwin doesn't report the compilation errors from  Microsoft
>Visual Studio C Compiler. Let me explain the problem clearly. I am
>trying to compile a C program through "Makefile" from Cygwin. This C
>program has syntax errors which are supposed to be shown by Cygwin when
>running  C compiler. It just indicates the following lines and stops :
>
>make: *** [/cygdrive/h/test.obj] Error 1
>
>If I run the C program without using "Makefile" from Cygwin, errors are
>properly indicated. I feel the problem exists with "make.exe" of Cygwin
>and their dependency executables.
>Can anyone spot the problem happening here and highlght a solution for
>this?

Where did you explain your problem "clearly?"   Make doesn't have default 
rules to deal with .obj.  Did you write in a rule?  e.g.
.c.o:
         cl /c $*.c
         mv $*.obj $*.o

or, if you don't want to rename the .obj files, did you add .obj in 
.SUFFIXES and add rules about how to make .obj from .c and .exe from .obj?



Tim Prince 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list