errors control in c linux

errors control in c linux

Post by James Youngma » Thu, 04 Jun 1998 04:00:00



  lb> anyone can say any function or process to error control in c
  lb> linux, I like adapt a visual c program that use _try/_except for
  lb> mistakes

Exceptions are a C++ feature.  That is, standard-conforming, portable
C++ programs can use them but standard-conforming, portable C programs
cannot.  You will probably either have to use C++ or mess around with
setjmp(3).

 
 
 

1. Errors compiling Wingz 1.4 Add-ins (Linux 1.3.99, GCC 2.6)

I use the Wingz spreadsheet under a SunOs 4.1.3 at work, and am trying
to set up a similar environment on my Linux system.  To do this I need
to compile Wingz external add-ins.

(Nice spreadsheet by the way. See the homepage at:
 http://www.wingz.com/Welcome.html)

The problem is that I am unable to link after compiling.  The add-in
code has no 'main', as it is in a file $WINGZ/lib/libwztools.a.  On
SunOs, doing a:

gcc -O -I$(WINGZ)/include -c TestFunc.c -o TestFunc.o
gcc -O -I$(WINGZ)/include -o great_zot TestFunc.o \
       -L$(WINGZ)/lib -lwztools -lm            

works great, but under Linux the link fails with a message like:

/usr/lib/crt1.o (...) undefined symbol 'main'

'nm' shows 'main' as being defined in $WINGZ/lib/libwztools.a, so
I am at a loss to how to get this to compile.

        Linux Kernel:   1.3.99
        Wingz version:  1.4
        GCC version:    2.6

Any hints would be greatly appreciated.

Shaun
----------------------------------------------------------------------
Shaun Lawson           Tel:    [+81]3-5571-7388
Assistant Vice Pres.   WWW:    http://www.atrium.com/shaun


2. How do I uncompress a file with a .Z extension as opposed to .zip or .gz?

3. setup.ins error when installing OO in 5.0-REL

4. How to find size of kernel?

5. Sherlock linux plug-ins / sherlock for linux?

6. wd33c93 compile fix

7. errors control in c linux

8. Codepages

9. Specific Permissinon Control//Access Control List for Linux?

10. List of plug-ins for linux/netscape please!

11. Linux and Dial-ins (?)

12. netscape-i686-pc-linux-gnu-installer.tar.gz for Netscape 6.1 ppc?

13. Netscape plug-ins under Linux