help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Oct-File helo world sample


From: Helios de Rosario
Subject: Re: Oct-File helo world sample
Date: Mon, 09 Sep 2013 10:36:48 +0200

Hi.

>>> El día 06/09/2013 a las 14:16, uenz <address@hidden> escribió:
> Hi,
> 
> i compiled the hello world sample from
>
http://www.gnu.org/software/octave/doc/interpreter/Getting-Started-with-Oct_002

> dFiles.html
> with MSVC10 on Windows 7. 
> I got the file HelloWorld.oct. When trying autoload("helloworld",
> helloworld.oct") to load the helloworld function i get:
> warning: unrecognized escape sequence '\s' -- converting to 's'
> warning: unrecognized escape sequence '\s' -- converting to 's'
> warning: unrecognized escape sequence '\h' -- converting to 'h'
> 
> Whats going wrong?
> 

I cannot tell for sure, but it looks like you are using a
"windows-like" path somewhere in your code - e.g.
"C:\Software\Octave-3.6.4".

In that example, Octave would assume that "\S" and "\O" in that string
are (unknown) escape sequences, like "\r", "\n", etc. There are three
solutions to that problem:

1) Use forward slashes: "C:/Software/Octave-3.6.4"

2) Use the escape sequence of the backslash, "\\":
"C:\\Software\\Octave-3.6.4".

3) Put the string between simple commas: 'C:\Software\Octave-3.6.4'
That way the backslash won't be interpreted as the beginning of a
escape sequence.

Best regards
Helios De Rosario



INSTITUTO DE BIOMECÁNICA DE VALENCIA
Universidad Politécnica de Valencia • Edificio 9C
Camino de Vera s/n • 46022 VALENCIA (ESPAÑA)
Tel. +34 96 387 91 60 • Fax +34 96 387 91 69
www.ibv.org

  Antes de imprimir este e-mail piense bien si es necesario hacerlo.
En cumplimiento de la Ley Orgánica 15/1999 reguladora de la Protección
de Datos de Carácter Personal, le informamos de que el presente mensaje
contiene información confidencial, siendo para uso exclusivo del
destinatario arriba indicado. En caso de no ser usted el destinatario
del mismo le informamos que su recepción no le autoriza a su divulgación
o reproducción por cualquier medio, debiendo destruirlo de inmediato,
rogándole lo notifique al remitente.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]