From: "Richard Ellingworth" Newsgroups: comp.os.msdos.djgpp Subject: Problems installing PMCOM library. Date: Sun, 27 Feb 2000 15:42:33 -0000 Organization: GXSN Lines: 50 Message-ID: <89bgnq$og8$1@gxsn.com> NNTP-Posting-Host: 195.147.233.41 X-Trace: 951666234 1NNUCNF1GE929C393C gxsn.com X-Complaints-To: abuse AT gxsn DOT com X-Newsreader: Microsoft Outlook Express 4.71.1712.3 X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I am having a few problems installing the PMCOM serial communications library, written by Peter Marinov. I have done this before on another machine, and I don't remember any serious problems, but this just won't play. This may be a problem with Windows 95 (which I am using). Firstly, when I try to make the debug version of the library with : make -DEBUG=1 It has a problem trying to make the object file wrap_g.o from the assembler source wrap_g.s. Initially it gave the message : make.exe: *** No rule to make target `dbg/wrap_g.o', needed by `dbg/com.a'. Stop. However, I got around this by editing the file makefile so that the rule : $(OUTPUTDIR)/%.o: %.S gcc -c $(GCCOPTIONS) $(TOPTION) $(PREOPTION) -o $@ $< was changed to : $(OUTPUTDIR)/%.o: %.s gcc -c $(GCCOPTIONS) $(TOPTION) $(PREOPTION) -o $@ $< I think there was a problem with the case of the filenames. Windows 95 sometimes generates filenames which are uppercase, sometimes lowercase and I have had problems with this before. Anyway, now I get another error : wrap_g.s(35) Error: Error: invalid character '_' in opcode The line in question in wrap_g.s is here : .text #define IRQWRAP(x) ; \ _IRQWrap##x: ; \ pushw %ds /* save registers */ ; \ pushw %es ; \ pushw %fs ; \ pushw %gs ; \ It is the line that starts _IRQWrap. I don't know why the assember is trying to interpret this as an opcode instead of a label, and I don't know what to do about it. Any ideas? Why doesn't the makefile work? Any help appreciated. Regards Richard Ellingworth.