|
From: David E. <de...@us...> - 2005-07-12 15:53:39
|
Jim Morcombe wrote: > Yes, I have a LINKAGE SECTION with a number of variables. > ... > Linking glcosch.o... > /usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crt1.o: In function > `_start': > /usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crt1.o(.text+0x18): > undefined reference to `main' > collect2: ld returned 1 exit status OK, I think I mis-read the error messege. It is the link step that is trying to create an executable, but does not find a main entry point as declared in crt1.o. So there must be some thing wrong with the GCC link step. Looking at 'test.code/t33', the compile and link should look some thing like the following. Example: htcobol -c -P subrots.cob gcc -shared -Wl,-soname,libsubrot2.so.1.0 -o libsubrot2.so.1.0 subrots.o ln -s libsubrot2.so.1.0 libsubrot2.so ln -s libsubrot2.so.1.0 libsubrot2.so.1 |