From 294ca42c4813041060d471e89241f107397b4183 Mon Sep 17 00:00:00 2001 From: jesusc Date: Fri, 16 Apr 2004 22:57:08 +0000 Subject: [PATCH] *.dsw and *.dsp file must have 0x0d, 0x0a line terminations to work git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3290 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 5 +++ doc/sdccman.lyx | 88 +++++++++++++++++++++++++++++++++++-------------- 2 files changed, 68 insertions(+), 25 deletions(-) diff --git a/ChangeLog b/ChangeLog index daa3f42c..204b7c0b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-04-16 Jesus Calvino-Fraga + + * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and + .dsp files from Unix to DOS. + 2004-04-16 Erik Petrich * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding diff --git a/doc/sdccman.lyx b/doc/sdccman.lyx index 5e093fb8..a1782c96 100644 --- a/doc/sdccman.lyx +++ b/doc/sdccman.lyx @@ -2,6 +2,7 @@ \lyxformat 221 \textclass book \begin_preamble + \usepackage[ pdftitle={SDCC Compiler User Guide}, pdfauthor={SDCC development team}, @@ -1718,10 +1719,10 @@ Install paths \begin_inset Tabular - - - - + + + + \begin_inset Text @@ -3169,6 +3170,43 @@ bin before running SDCC. \newline +\newline +WARNING: Visual studio is very picky with line terminations; it expects + the 0x0d, 0x0a DOS style line endings, not the 0x0a Unix style line endings. + If you are getting a message such as "This makefile was not generated by + Developer Studio etc. + etc. +\begin_inset Quotes srd +\end_inset + + when opening the sdcc.dsw workspace or any of the *.dsp projects, then you + need to convert the Unix style line endings to DOS style line endings. + To do so you can use the +\begin_inset Quotes sld +\end_inset + +unix2dos +\begin_inset Quotes srd +\end_inset + + utility freely available on the internet. + Doug Hawkins reported in the sdcc-user list that this works: +\newline + +\newline +C: +\backslash +Programming +\backslash +SDCC> unix2dos sdcc.dsw +\newline +C: +\backslash +Programming +\backslash +SDCC> for /R %I in (*.dsp) do @unix2dos "%I" +\newline + \newline In order to build SDCC with MSVC you need win32 executables of bison.exe, flex.exe, and gawk.exe. @@ -12269,8 +12307,8 @@ For signed & unsigned int (16 bit) and long (32 bit) variables, division, \begin_inset Tabular - - + + \begin_inset Text @@ -12563,8 +12601,8 @@ SDCC supports IEEE (single precision 4 bytes) floating point numbers.The \begin_inset Tabular - - + + \begin_inset Text @@ -13895,8 +13933,8 @@ The compiler creates the following #defines \begin_inset Tabular - - + + \begin_inset Text @@ -14895,8 +14933,8 @@ PIC16 port defines the following preprocessor macros while translating a \begin_inset Tabular - - + + \begin_inset Text @@ -14957,10 +14995,10 @@ PIC16 port uses the following directories for searching header files and \begin_inset Tabular - - - - + + + + \begin_inset Text @@ -15182,9 +15220,9 @@ Memory model affects the default size of pointers within the source. \begin_inset Tabular - - - + + + \begin_inset Text @@ -15334,9 +15372,9 @@ large \begin_inset Tabular - - - + + + \begin_inset Text @@ -15442,8 +15480,8 @@ Return values from functions are placed to the appropriate registers following \begin_inset Tabular - - + + \begin_inset Text @@ -17349,7 +17387,7 @@ Documentation \begin_inset Tabular - + -- 2.30.2