compilation problems

Cal Thorne ct@rmorton.com
Sun Oct 31 19:54:00 GMT 1999


Jean,

The only problem I could see was the dreaded '^M' at the end of your file.
Must've been opened with a DOS prog or something (I'm still not clear on all
the semantics of the nl/cr issue).  Anyway, I think I deleted it in the file
I include with this post.

Good Luck!

Cal

-----Original Message-----
From: Jean Michel Cirba [ mailto:jmcirba@cella.fr ]
Sent: Thursday, October 14, 1999 9:09 AM
To: 'cygwin@sourceware.cygnus.com'
Subject: compilation problems


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