gnucobol-users
[Top][All Lists]
Advanced

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

Re: [open-cobol-list] Linux Mint Borked?


From: Patrick
Subject: Re: [open-cobol-list] Linux Mint Borked?
Date: Wed, 03 Jul 2013 09:59:15 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6

Hi Mike

Thanks again for sending me your program.

It worked perfectly on my 64 bit machine loaded with Mint Linux that I have been fiddling with.

It however has failed on a 32 bit netbook with the same version of Mint loaded. This netbook was only being used for playing videos and such. I just installed OC and it had to install GCC as well.

I ran mybits. It compiled and started fine prompting me with, Enter an unsigned integer value not greater then....

once entered...

It gives libcob: Cannot find module itobs32

I am going to abandon Mint on my 64 bit machine and keep it on the 32 bit one. If anyone wants me to work this out for the benefit on the community I will but it looks like Mint is not a good development environment, not sure what other Ubuntu derivatives are affected

Thanks





On 13-07-03 01:11 AM, Michael Anderson wrote:
You could just compile all statically into one single executable file.
Unless you're working on a production project, and all libraries must be
properly installed, eg. /usr/local/lib and ld config, and so on...
production stuff!

Example of dev and test/research coding.......:
If C calling Cobol, then your C source file must have a 'main', if Cobol
calling C, your C source file must NOT have a 'main'

Try:
cobc -x sourcefile.cob sourcefile.c -o executable_program

To run:
./executable_program

That should work.

I can send example source files, Cobol calling C, where the C source
file contains multiple functions, and the Cobol source file makes calls
to all of'em.
Two source files, that compile an run on 32 bit Ubuntu 12.04, just like
the above cobc statement.

Let me know..... if ya wanna look at an example.

--
Mike.


On 07/02/2013 10:38 PM, Patrick wrote:
Hi Everyone

I need to copy a bunch of DVDs for my kids and Mint Linux is well suited
for this so I switched over from Trisquel(also based on Ubunutu).

I installed OC from the repos and I have not had trouble compiling
simple programs. However now that I am trying to mix C with Cobol,
things are going bad. After failing with the repo version, I purged it
and installed OC from source.

I have Brain's OCGTK example here and it compiled fine before. I even
made a little shell script to compile it before, so I am running the
exact same commands but I get this:

libcob: Cannot find module 'CBL_OC_G_SIGNAL_CONNECT'

I have also tried Brains cobpy and had similar issues.

I thought I'd try something simpler so I made a C program that calls
Cobol and a Cobol program that is linked and calling back too. It calls
into Cobol just fine and DISPLAY statements are printing but with this
little piece:


void nothing(){
printf("printf calling");
}

I can't call back into C from Cobol. I get this:

libcob: Cannot find module 'nothing'

I edited my /etc/ld.so.conf and I added /usr/local/lib.

I ran ldconfig as sudo

I have tried for a couple hours to solve this and I am out of ideas. Is
there something else I can try or should I just dump Mint?

Thanks for reading-Patrick




------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
open-cobol-list mailing list
address@hidden
https://lists.sourceforge.net/lists/listinfo/open-cobol-list

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
open-cobol-list mailing list
address@hidden
https://lists.sourceforge.net/lists/listinfo/open-cobol-list




reply via email to

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