Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
AutoVersioning Plugin
Biplab:
--- Quote from: JGM on June 04, 2008, 11:49:08 pm ---
--- Quote from: Biplab on April 24, 2008, 01:38:55 pm ---What do you think about the patch?
I didn't commit as I wasn't sure whether you want the plugin to be used only for release targets. :)
--- End quote ---
Now I understand your patch, I'm a moron :oops: sorry for that. Well is needed to only add the version.h once and not multiple times. Sorry again :oops:
--- End quote ---
Sorry I didn't notice your reply. I have applied it in SVN. :)
Belgabor:
I recommend clarifying the svn error message. In many cases the directory isn't set wrong, but the user has not installed svn.exe (or forgot to update it to 1.5 along with TortoiseSVN as in my case...).
Arjan:
As of today I got a problem with the autoversioning plugin.
Since it is now august, the Ubuntu version style has bumped up to 8.08;
I now get the following error message
--- Quote ---version.h:10: digit exceeds base
--- End quote ---
pointing at this line:
--- Code: ---static const double UBUNTU_VERSION_STYLE = 8.08;
--- End code ---
If I change the date back to July, the problem disappears again (ie. the version becomes 8.07). I can't explain this, but since it is related to the autoversioning plugin, I thought I should post it here.
JGM:
Hi,
I made a test on linux (ubuntu hardy) with gcc 4.2.3 and it worked as expected, here is the code I used.
--- Code: ---#include <iostream>
#include "version.h"
using namespace std;
int main()
{
cout << "Ubuntu Version: " << AutoVersion::UBUNTU_VERSION_STYLE << endl;
return 0;
}
--- End code ---
Outputs:
--- Quote ---Ubuntu Version: 8.08
--- End quote ---
Can you give more details?
* What compiler
* Operating System
* Example Code
Maybe is the compiler.
Arjan:
compiler: $ ./g++.exe --version
g++.exe (GCC) 4.3.0 20080305 (alpha-testing) mingw-20080502
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
not sure how 4.3.0 got into my standard compile path, but this was indeed the problem.
With gcc 3.4.2 everything compiles as it should.
OS is windows btw.
So it's probably a compiler bug, but I would like to point out my previous post
--- Quote from: Arjan on June 23, 2008, 02:17:31 pm ---I am using an .rc file with windows, and I would like to be able to put my SVN revision into my output file. Unfortunately, autoversion does not define SVN revision numbers (just declarations)
Could you add a define with the SVN revision?
thanks in advance!
--- End quote ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version