Steve Flacy
7th October 2010, 16:57
Am newbee to Baan programming. Have successfully maintained several programs but one program will not compile. Maintain Program Scripts (ttadv2130s000) gives the message "Compilation errors" but the Display Browser gives me no errors. All I get in the Display Browser is something like ...
tiitmo91050:
std_gen -s ptiitmo91050 -qe f:\baan\tmp\tmp044236899
bic -Pvariant=0 ptiitmo9105g -u -d ottstpstandard -0 otiitmo9105 -f f:\baan\tmp044236898 -qe f:\baan\tmp\tmp044236900
... and no lines where I would expect errors to appear.
I have searched the program's source code for non-printable characters but get only LF and CR characters. As a test I have embedded code that should generate errors but get no errors. The only way I can generate an error is to place bad code before the declaration statement. Then I will get the error "Only statements expected in sections".
At this point I would like to say that I have found a small briefcase full of hundred dollar bills and if anyone would like to claim it, please respond. ;-)
I am at a complete loss on this and would greatly appreciate any help. Thanks in advance for any input.
bdittmar
7th October 2010, 17:49
Am newbee to Baan programming. Have successfully maintained several programs but one program will not compile. Maintain Program Scripts (ttadv2130s000) gives the message "Compilation errors" but the Display Browser gives me no errors. All I get in the Display Browser is something like ...
tiitmo91050:
std_gen -s ptiitmo91050 -qe f:\baan\tmp\tmp044236899
bic -Pvariant=0 ptiitmo9105g -u -d ottstpstandard -0 otiitmo9105 -f f:\baan\tmp044236898 -qe f:\baan\tmp\tmp044236900
... and no lines where I would expect errors to appear.
I have searched the program's source code for non-printable characters but get only LF and CR characters. As a test I have embedded code that should generate errors but get no errors. The only way I can generate an error is to place bad code before the declaration statement. Then I will get the error "Only statements expected in sections".
At this point I would like to say that I have found a small briefcase full of hundred dollar bills and if anyone would like to claim it, please respond. ;-)
I am at a complete loss on this and would greatly appreciate any help. Thanks in advance for any input.
Hello,
do you compile with options ?
(-w)
Try to compile in debugmode.
Regards
Steve Flacy
7th October 2010, 18:00
Thanks for the response.
I have been trying to figure out where I can set my compile options. I have tried compiling into debug mode (by pressing the Maintain Program Scripts "Debug" button instead of the "Compile" button). Normally pressing the Debug button would compile then display source code so I may set breakpoints and such. For this script, the Debug button only invokes the Display Browser with the same information and result as the Compile button.
Thanks again.
mark_h
7th October 2010, 19:29
There are several places you can set compile flags - on the script on inside the session. Just make sure none of those are set any where. If necessary - restore the old code and make sure it compiles. If so - then you know it is something in the new script.
Also make sure you have all the access you need for compiling this session - that includes the object directory. Not familiar with windows. So double check this - maybe even go manually delete the object(of course making a copy first). The directory is based off the package VRC - so on our test system for tibom0101m000 I would CD to $BSE/appl*/ti*dev/otibom. There I could see the compiled object, delete it and make sure I can compile.
Steve Flacy
7th October 2010, 20:11
Mark, I think you may have something on authority. I did try to compile using the programmer's signon though and it gave the same results. I tried a compile using the supreme Baan password but got the error "package of script unequal to current package."
As a director doing the work of a programmer no longer here I am way over my head on this stuff. I don't think I'll be deleting any objects in the Baan directories anytime soon.
Thanks, Mark, for your ideas. I have one question. What would I look for in script to ID a compile flag?
Steve Flacy
Steve Flacy
7th October 2010, 20:22
Mark, I think you may have something on authority. I did try to compile using the programmer's signon though and it gave the same results. I tried a compile using the supreme Baan password but got the error "package of script unequal to current package."
As a director doing the work of a programmer no longer here I am way over my head on this stuff. I don't think I'll be deleting any objects in the Baan directories anytime soon.
Thanks, Mark, for your ideas. I have one question. What would I look for in script to ID a compile flag?
Steve Flacy
mark_h
7th October 2010, 21:06
Something like "#pragma nowarnings". I never use these myself, but I know there are others. I think another is nodebug. I am not sure this is the case here. If you were on with the supreme baan password (assuming bsp) - you should really only have to set your package VRC correctly. You can do this from the special menu on maintain scripts or sessions. The package VRC you are in should match the package VRC you are compiling.
Steve Flacy
7th October 2010, 21:28
Mark, thank you so much for your help, you too, bdittmar. I did as you recommended, Mark, and located a really old copy of the source and it compiles. Whoopee!
Now I will need to compare the two versions for differences, incorporate the needed changes (step by step, compiling a lot along the way) and breath easy knowing I have a fall back for a clean compile.
I wish I did have a small briefcase full hundred dollar bills. The way I feel right now, I'd probably split it with you. Thanks again.
Steve Flacy
mark_h
7th October 2010, 21:30
No problem - glad to be of assistance.