Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ACUCOBOL error-calling Cobol from C 1

Status
Not open for further replies.

NerdGirl14

Programmer
Jun 21, 2007
4
I have the documents of the Acucobol and i already followed the instructions on how to call cobol from c but the problem is it doesn't work. i encountered a problem the tells "undefined reference to acu_intv(), acu_cobol and acu_shutdown"... what am i supposed to do???

Do i still need to reference those functions? How??

I badly need your answers... any help would be deeply gratified and appreciated... thank you so much...
 
NerdBirl14 said:
Do i still need to reference those functions?

It would seem you have a linking problem. What operating system are you using? What are you doing when you encounter the diagnostic? What does AcuCOBOL support have to say about this?

(Also, please don't start yet another thread about this.)

Tom Morrison
 

i am using Red Hat 9.. I followed the program written on the document of acucobol (using main to pass the parameter) then, when i compiled the c program, an undefined error was displayed... it was written in the document that that c main routine will be used to call the cobol program. what am i supposed to do? do you have any idea on how to call the cobol program from c?

furthermore, i would like to clarify about the function of a "Makefile" in calling cobol from c..


i cant pursue the calling because of the error...


thank you so much for entertaining my questions... that's very much appreciated.
 
NerdGirl14 said:
i would like to clarify about the function of a "Makefile" in calling cobol from c
The makefile is the input to the command make which is the step that will link together the C program you are writing and the AcuCOBOL libraries that will resolve the unsresolved references.

This is very basic C development knowledge. Do you have someone at your work with experience developing C programs that can help you? Has AcuCOBOL support been able to help you?

Tom Morrison
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top