compilation problems

Jean Michel Cirba jmcirba@cella.fr
Thu Oct 14 07:09:00 GMT 1999


Hi !

I'm impressed by your product package (the unix-like api, gcc and gdb) which
has allowed me to write, debug and run my programs as i would do in an Unix
environment.
Besides, the api is very similar and contains nearly all the unix and shell
commands.

However i have a strange problem:
when compiling from a file that contains the different gcc lines, OK !
when using a makefile and make (UNIX mode), i have the persistent following
error message:
	missing separator

I have unix-like makefiles :
directories described using forward slashes (with or without full path
description ie /cygnus/cygwin-b20/cgi or c:/cygnus/...). I've also tried the
backslashes
variable description of the like : DIR_EXE=/cygnus/... and calling with
$(DIR_EXE)/bin
the standard gcc options (which i use in the text file i compile from)


Have you got any idea ??

(i've included a sample makefile)

 <<makefile>> 
-------------- next part --------------
# Makefile pour guest.cgi
# cr?ation sous Windows
# target : any
# date : 13/10/99

DIR_CGI=/cygnus/cygwin-b20/cgi
INCLUDE_SYS=/cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32/include
INCLUDE_APPLI=$DIR_CGI/include
CC=/cygnus/cygwin-b20/H-i586-cygwin32/bin/gcc.exe
DIR_EXE=$DIR_CGI/bin
DIR_INSTALL=d:/devinternet/cgi


clean:
        rm $DIR_EXE/*
        rm $DIR_CGI/*

install:
        cp $(DIR_EXE)/guest.cgi $(DIR_INSTALL)

guest.cgi: $(DIR_CGI)/guest.o
        $(CC) -g $(DEBUG) -o $(DIR_EXE)/guest.cgi $(DIR_CGI)/guest.o

guest.o: $(DIR_CGI)/guest.c
        $(CC) -c -g $(DEBUG) $(DIR_CGI)/guest.c -I$(INCLUDE_SYS) -I$(INCLUDE_APPLI)



More information about the Cygwin mailing list