From cstrato at aon.at  Wed Sep 15 23:22:57 2010
From: cstrato at aon.at (cstrato)
Date: Wed, 15 Sep 2010 23:22:57 +0200
Subject: [Rd] Problem with WARNING...headers with CRLF line endings
In-Reply-To: <19601.12781.231933.777847@max.nulle.part>
References: <4C8E9297.5050806@aon.at>	<77EB52C6DD32BA4D87471DCD70C8D700036E87E6@NA-PA-VBE03.na.tibco.com>	<4C8FBE96.6080604@aon.at>	<69C89B57-A641-44D3-A95D-D95A5AD6B2A6@r-project.org>	<4C8FE527.6060308@aon.at>	<4C8FE9EE.60604@fhcrc.org>	<4C8FF01B.6060208@aon.at>	<4C8FF268.9010500@fhcrc.org>	<4C8FF78F.5020407@gmail.com>	<4C900C09.2010509@fhcrc.org>	<4C912EEF.5050701@aon.at>
	<19601.12781.231933.777847@max.nulle.part>
Message-ID: <4C913931.5050807@aon.at>

Dear Dirk,

Thank you for this suggestion, however since I am not very good in 
creating Makefiles I would appreciate if you could explain how to filter 
at the compile stage.

These are the lines which I think are essential:

xps.dll:  $(MYOBJ)
	$(LINK) /dll /def:xps.def /out:xps.dll fp10.obj $(SOFLAGS) $(LDFLAGS) 
$(GLIBS) *.obj
	
xpsDict.cxx: $(MYHDR) xpsLinkDef.h
	@echo "Generating dictionary $@..."
	@rootcint -f $@ -c $(MYHDR) xpsLinkDef.h
	
xpsDict.obj: xpsDict.cxx xpsDict.h
	$(CL) /I"${ROOTSYS}/include" /FIw32pragma.h /MT /EHsc /Ox /D "MSVC" /D 
"WIN32" /c xpsDict.cxx

clean:
	rm -f $(MYOBJ) *.a *.d *.rc

The line @rootcint creates the xpsLinkDef.h file.

Do I have to add something after the compilation step of xpsDict.obj?

Thank you in advance.
Best regards
Christian


On 9/15/10 10:51 PM, Dirk Eddelbuettel wrote:
>
> On 15 September 2010 at 22:39, cstrato wrote:
> | Dear Duncan, dear Herve,
> |
> | Thank you both for your help and suggestions. I think that you are both
> | right:
> |
> | In principle I do not want to put these files in the source tarball (and
> | I did not in the past), however because of the way R CMD check works
> | this seems to be the only possibility to get rid of the warning message.
> |
> | I agree that it is weird to get this warning message although these
> | files are not in the source tarball.
> |
> | Since I have a Makefile, as Herve mentions, I can try to remove these
>
> If you have a Makefile, then you have implicit rules as well as explicit
> ones.  That is how the file gets created.
>
> Now modify the rules and insert another layer which will do the filtering. As
> the saying goes:  "there is no problem that cannot be solved by adding
> another layer of indirection".  Instead of requiring the generated file,
> require the generated and filtered file.
>
> | files in the clean step, which currently is:
> |
> | clean:
> | 	rm -f $(MYOBJ) *.a *.d *.rc
> |
> | I will try to change this part but I am not sure if this will solve the
> | problem.
>
> I fear that the clean step runs too late.  You want the file filtered at the
> compile stage.
>
> Dirk
>



[Rd] Problem with WARNING...headers with CRLF line endings
cstrato