And the strange characters in file names where added just to verify if it was just a parsing error for 'ÿ', as I thought when writing my last sentence, or a true encoding problem. Usually I never put accentuated letters in things where programming is involved ^^
I never use those dumb characters in usual projects, if I should give a regex which can recognize characters I am using in my file names, it would be "[a-z0-9_\.]+"
Spaces, and dumb characters where added to give more indications about the problem.
The original message I had was something like that (but, with different warnings and errors, I just introduced a space to have an error here):
-------------- Build: Debug in Camera ---------------
main.cpp
Camera.cpp
Camera.cpp(86) : error C2039: 'retu'ÿ: n'est pas membre de 'PBCallInfo'
c:\program files\sybase\powerbuilder 12.0\sdk\pbni\include\pbni.h(278)ÿ: voir la d‚claration de 'PBCallInfo'
Camera.cpp(86) : error C2146: erreur de syntaxeÿ: absence de ';' avant l'identificateur 'rnValue'
Camera.cpp(86) : error C2065: 'rnValue'ÿ: identificateur non d‚clar‚
Camera.cpp(86) : error C2227: la partie gauche de '->SetInt' doit pointer vers un type class/struct/union/g‚n‚rique
le type est ''unknown-type''
Process terminated with status 2 (0 minutes, 5 seconds)
4 errors, 0 warnings (0 minutes, 5 seconds)
Process terminated with status 0 (0 minutes, 6 seconds)
4 errors, 0 warnings (0 minutes, 6 seconds)
As you can see, here, there is a 'ÿ' character, which should not be there.
Here is the result of what Visual Studio give me:
1>------ Début de la génération : Projet : camera, Configuration : Debug Win32 ------
1>Compilation en cours...
1>Camera.cpp
1>.\Camera.cpp(86) : error C2039: 'retu' : n'est pas membre de 'PBCallInfo'
1> c:\program files\sybase\powerbuilder 12.0\sdk\pbni\include\pbni.h(278) : voir la déclaration de 'PBCallInfo'
1>.\Camera.cpp(86) : error C2146: erreur de syntaxe : absence de ';' avant l'identificateur 'rnValue'
1>.\Camera.cpp(86) : error C2065: 'rnValue' : identificateur non déclaré
1>.\Camera.cpp(86) : error C2227: la partie gauche de '->SetInt' doit pointer vers un type class/struct/union/générique
1> le type est ''unknown-type''
1>Le journal de génération a été enregistré à l'emplacement "file://f:\camera\Camera\Debug\BuildLog.htm"
1>camera - 4 erreur(s), 0 avertissement(s)
========== Génération : 0 a réussi, 1 a échoué, 1 mis à jour, 0 a été ignoré ==========
I think it could show two problems, and maybe the second one is related to the first one:
_ first: there is a 'ÿ' character, which seem to separate location of the problem and it's description. (it is always before the ':' and after the thing which made the problem)
_ second: the encoding is not well detected, causing stupid characters to not be correctly shown. It may be related to the 'ÿ' character, because as far as I know, encoding detection rely on statistics about character found. A dumb character could false the detection.
And it is not at debug time, but compile time. It is not gdb which is used here, but "cl.exe"
Note: I used terms "seem", "may", "could" because I am sure of nothing. I only make suppositions for something I think is really small problem. Error and warning detection is not wrong, and if I just have to forget a 'ÿ' character (which is not used in french) it don't give me big troubles.