batch for compile .dll : Constant not found

Everything else that doesn't fall into one of the other PB categories.
spacewalker
User
User
Posts: 19
Joined: Tue Apr 27, 2010 4:35 pm
Location: Germany

batch for compile .dll : Constant not found

Post by spacewalker »

Hi,

I would like to have a batch that compiles some .pb sourcefiles to .dll

I have tried the following command in a batch:

Code: Select all

pbcompiler "E:\PB\combine.pb" /EXE "%targetdir%\combine.dll" /DLL /UNICODE
I get :

Code: Select all

Error: Line 245 - Constant not found: #PB_Editor_BuildCount.

I do use the "BuildCount" constant in der IDE and I find it very useful, but it seems that I can not use the CLI compiler with #PB_Editor_BuildCount ?

And same is true for "Version info" like File Version etc, I can use them in the IDE but I can not use them with CLI batch compiling?

Using the "/icon" parameter to include an icon does work, so is there something similar for #PB_Editor_BuildCount and the values for "Version info" ?

In the compiler options I see a paramter "/CONSTANT Name=Value: Declare a new constant at compile time"
Can I use this somehow for my purpose?



Heinz