You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by Will Sappington <ws...@ndma.us> on 2006/12/01 21:11:41 UTC

line breaks in VC6 workspace/project files?

Sorry for the noob questions, but I'm not sure which way to go here.
Again, I've searched the archives but didn't find anything about this.
Perhaps my question will make more sense if I give it some context.
Here we do development for both Win32 and Linux.  We are trying to move
away from Win32 but in the meantime there is a very strong interest in
developing a source code base that will run on both platforms with the
help of Cygwin for migrating Linux code to Win32.  

 

I've recently built 2.7.0 on my Linux dev box from the source tarball
and, with Dave B's help, built for Cygwin on my XP box from the same
tarball.  I tried to build for VC6 using the same source that I built
for Cygwin, but VC6 won't open the xerces-all.dsw.  The problem is with
the line breaks, the files in the tarball all have UNIX newlines, not
DOS CR/LF's.  

 

I'm thinking the .zip format of the source will probably be DOS line
breaks, but I'd rather not have 2 different installations of the same
source.  I'm wondering if I can just go through all the dsp/dsw files
and convert them to CR/LF (any gotcha's there?) or should I d/l the zip
file and build for VC6 in a completely separate source tree.  

 

In the meantime I'm going to go ahead and try converting the ds? files
and see what that gets me.

 

TIA for any help,

 

-will


RE: line breaks in VC6 workspace/project files?

Posted by Will Sappington <ws...@ndma.us>.
> 
> 
> -----Original Message-----
> From: Will Sappington [mailto:wsappington@ndma.us] 
> Sent: Friday, December 01, 2006 3:12 PM
> To: c-users@xerces.apache.org
> Subject: line breaks in VC6 workspace/project files?

(snip)

> I tried to build for VC6 using the same source that I built
> for Cygwin, but VC6 won't open the xerces-all.dsw.  The problem is
with
> the line breaks, the files in the tarball all have UNIX newlines, not
> DOS CR/LF's.  
> 
> I'm thinking the .zip format of the source will probably be DOS line
> breaks, but I'd rather not have 2 different installations of the same
> source.  I'm wondering if I can just go through all the dsp/dsw files
> and convert them to CR/LF (any gotcha's there?) or should I d/l the
zip
> file and build for VC6 in a completely separate source tree.  
> 
> In the meantime I'm going to go ahead and try converting the ds? files
> and see what that gets me.
> 
> TIA for any help,
> 
> -will

FYI, this is resolved.  I ran a script using "find" and "unix2dos" to
convert the line breaks in all the .ds? files and then opened the
"xerces-all" workspace and built everything successfully in VC++ from
the tarballed source.

-will