User forums > Help
minor issues about cbp file
Freem:
I am not sure about the fact he understood that this is a project file :)
I have sent a reply about that, anyway, but doesn't have reply myself at the moment.
Didn't thought about the "note" space too.
But as I said, it is only a minor issue.
--- Quote from: oBFusCATed on December 02, 2011, 08:59:46 am ---Or you can use some of your time to provide a patch for setting the license, I doubt it will take you much time :)
--- End quote ---
I am not sure about the fact I am skilled enough to understand the code of codeblocks.
--- Quote from: ollydbg on December 02, 2011, 03:34:42 am ---
--- Quote from: Freem on December 02, 2011, 12:09:10 am ---And at last, and totally out of topic, I tried to use C::B with MS Visual Studio 2008 at work (I just can't use efficiently an IDE which can't highlight text similar to the selected one, or is so messy with project options. This is the point which made me remember how user friendly is C::B!). It work nice, but I have found that there is an encoding issue when debugging (debug with GDB).
The nightly used is 7452 if I remember correctly...
--- End quote ---
Which encoding issue? Can you be more specific?
--- End quote ---
Characters are not displayed as they should. I had some dummy characters on some places in reports. Here is an example:
--- Code: ---main.cpp
Camera.cpp
f:\copie (2) de camera Š—…\camera\camera.h(14) : error C2143: erreur de syntaxeÿ: absence de '>' avant ';'
Process terminated with status 2 (0 minutes, 5 seconds)
1 errors, 0 warnings (0 minutes, 5 seconds)
f:\copie (2) de camera Š—…\camera\Camera.h(14) : error C2143: erreur de syntaxeÿ: absence de '>' avant ';'
Process terminated with status 2 (0 minutes, 5 seconds)
2 errors, 0 warnings (0 minutes, 5 seconds)
--- End code ---
As I thought about that, I think I remember that this dumb 'ÿ' have the code 0xFF in ascii...
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 ^^
It should have been "F:\Copie (2) de camera èùà" instead.
I am not used to windows, so if you need other informations about used encoding or something else, please explain quickly how to gather them.
Ah, and I forgot to say that: compiler is VC9, XP pro SP3, and finally I am using C::B 7550 too here.
PS: sorry for the long time before reply, those times I don't have many time to go here, I can not even follow what is happening.
ollydbg:
--- Quote from: Freem on December 07, 2011, 04:18:51 pm ---Characters are not displayed as they should. I had some dummy characters on some places in reports. Here is an example:
--- Code: ---main.cpp
Camera.cpp
f:\copie (2) de camera Š—…\camera\camera.h(14) : error C2143: erreur de syntaxeÿ: absence de '>' avant ';'
Process terminated with status 2 (0 minutes, 5 seconds)
1 errors, 0 warnings (0 minutes, 5 seconds)
f:\copie (2) de camera Š—…\camera\Camera.h(14) : error C2143: erreur de syntaxeÿ: absence de '>' avant ';'
Process terminated with status 2 (0 minutes, 5 seconds)
2 errors, 0 warnings (0 minutes, 5 seconds)
--- End code ---
As I thought about that, I think I remember that this dumb 'ÿ' have the code 0xFF in ascii...
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 ^^
It should have been "F:\Copie (2) de camera èùà" instead.
I am not used to windows, so if you need other informations about used encoding or something else, please explain quickly how to gather them.
Ah, and I forgot to say that: compiler is VC9, XP pro SP3, and finally I am using C::B 7550 too here.
--- End quote ---
I suggest you need to follow two rule:
1, use the file/project paths which only contains English characters, which is (A-Z, a-z and _)
2, remove all the spaces in the file paths.
I think gdb under Windows do not handle them if you have other Unicode characters.
Freem:
--- Quote ---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 ^^
--- End quote ---
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):
--- Code: ----------------- 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)
--- End code ---
As you can see, here, there is a 'ÿ' character, which should not be there.
Here is the result of what Visual Studio give me:
--- Code: ---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é ==========
--- End code ---
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.
oBFusCATed:
Why are you using internationalized version of cl?
C::B is meant to work only with English version of the compilers, as far as I know.
Can you try a version of the cl which returns English only messages?
Freem:
I only have this version at work, and don't use VC at home.
And I have to admit that I never used an internationalized version of GCC (or if I did, I probably have quickly returned to english and don't remember that)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version