gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[open-cobol-list] calling std c library calls from cobol and cob_inspect


From: Richard A. Painter
Subject: [open-cobol-list] calling std c library calls from cobol and cob_inspect_tallying() segmentation violation
Date: Tue Jun 4 08:32:07 2002

i have several related questions resulting from a runtime core dump coming out
of cob_inspect_tallying() segmentation violation...


1. i want to use static linking however, when i try to use -static cobc
complains telling me i must use -m since i use CALL USING.  is this true that
dynamic linking MUST be used if one uses CALL USING?

2. how does one call a standard c library call from a cobol program?  this is
not addressed in the online docs.  does this change when using static or dynamic
linking?

a good example is pause() so i can interrupt gdb for debugging.  my cobol
programs seem to demand dynamic linking (see #1 above).  if i use CALL 'pause'
cobc uses cob_call_resolve() instead of simply calling the std c lib function
and complains 'pause' was not found.


rich
-- 

+---------------------------------------------------------------+
| Richard A. Painter            Phone 719 495 7054              |
| Painter Engineering, Inc.     Mailto:address@hidden       |
| 8470 Swan Rd.                                                 |
| Black Forest, CO 80908                                        |
|                                                               |
| Visit our Web site:         http://painter.inc                |
|         http://home.earthlink.net/~painterengineering         |
|                                                               |
| Systems & Software Engineering + LAN WAN Networking + X.25    |
| INTERNET TCP-IP + Real-time Transaction Processing            |
| System & Software Integration, Testing, Verification & Audits |
| Web Hosting & Design + Apache + PHP + modSSL + cURL           |
| Database Design & Applications + Oracle                       |
| Benchmarks + Course & Workshop Development & Delivery         |
| Financial and Medical Software Integration + Security         |
| Middleware + EDI + Cryptography + Firewalls                   |
| UNIX + Linux + Windows                                        |
|                                                               |
| What is popular is not always right and what is right is not  |
| always popular.     - Howard Cosell                           |
|                                                               |
| Chance favors the prepared mind!   Illegitima non carborundum |
+---------------------------------------------------------------+



reply via email to

[Prev in Thread] Current Thread [Next in Thread]