the precompile-step "P(gcc) -E -P -x c -I/home/max/workMax/include ENDP"
gets always the error "COBCH0018S Preprocessor error on initialization"
Any idea, what went wrong?
the precompile-step "P(gcc) -E -P -x c -I/home/max/workMax/include ENDP"
gets always the error "COBCH0018S Preprocessor error on initialization"
Any idea, what went wrong?
the precompile-step "P(gcc) -E -P -x c -I/home/max/workMax/include ENDP"
gets always the error "COBCH0018S Preprocessor error on initialization"
Any idea, what went wrong?
the precompile-step "P(gcc) -E -P -x c -I/home/max/workMax/include ENDP"
gets always the error "COBCH0018S Preprocessor error on initialization"
Any idea, what went wrong?
the precompile-step "P(gcc) -E -P -x c -I/home/max/workMax/include ENDP"
gets always the error "COBCH0018S Preprocessor error on initialization"
Any idea, what went wrong?
the precompile-step "P(gcc) -E -P -x c -I/home/max/workMax/include ENDP"
gets always the error "COBCH0018S Preprocessor error on initialization"
Any idea, what went wrong?
the precompile-step "P(gcc) -E -P -x c -I/home/max/workMax/include ENDP"
gets always the error "COBCH0018S Preprocessor error on initialization"
Any idea, what went wrong?
the precompile-step "P(gcc) -E -P -x c -I/home/max/workMax/include ENDP"
gets always the error "COBCH0018S Preprocessor error on initialization"
Any idea, what went wrong?
the precompile-step "P(gcc) -E -P -x c -I/home/max/workMax/include ENDP"
gets always the error "COBCH0018S Preprocessor error on initialization"
Any idea, what went wrong?
the precompile-step "P(gcc) -E -P -x c -I/home/max/workMax/include ENDP"
gets always the error "COBCH0018S Preprocessor error on initialization"
Any idea, what went wrong?
the precompile-step "P(gcc) -E -P -x c -I/home/max/workMax/include ENDP"
gets always the error "COBCH0018S Preprocessor error on initialization"
Any idea, what went wrong?
Thanks for the hint. I tried this already.
Can you tell me where to find the actual build-variables-names, such as program name, to pass it on to the script ?
The "event"-gcc-script has to start the precompile and write the output in a temp-file.
The temp-file has to be the new input file for the following compile-step.
the precompile-step "P(gcc) -E -P -x c -I/home/max/workMax/include ENDP"
gets always the error "COBCH0018S Preprocessor error on initialization"
Any idea, what went wrong?
The command or script that you enter into the pre-build event is executed before the build of the programs actually begins. I don't believe that there is any variable that would allow you pick up program names for your script. I was thinking you might be able to write a script that would loop through the .in files, and where they were newer than the equivalent .cob files, invoke gcc to generate a new .cob from the .in. This idea assumes that you would be editing the .in files, and never manually touch the .cob files. Because the COBOL builder automatically builds files with the .cob extension, the resulting files should get picked up and compiled by the normal build process. Please note that I have not tested this idea - you would need to test to confirm that it works for you.
Another option (aside from writing a script) would be to write your own Integrated Preprocessor, sometimes called a "stacked" preprocessor. This could probably be written to do what gcc is doing for you now. Once written and compiled, an Integrated Preprocessor can be specified within your Build Configuration on the "Additional Preprocessors" pane. Integrated Preprocessors have the ability to make changes to each line of source before the compiler "sees" it, as well as insert lines, remove lines, etc. Here is a link to information in the documentation about Integrated Preprocessors:
www.microfocus.com/.../GUID-006D4634-7E8B-4D85-A3BC-15B4965E33C0.html
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.