Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2004
    Location
    Chicago area
    Posts
    2

    Post Unanswered: Errors linking to SNAPlus2 libraries when running make on c programs

    We currently upgraded our HP-UX development box from 10.20 to 11.0 and SNAPlus to SNAPlus2. We have an application developed in C, using Informix and embedded SQL, that we are having trouble linking to SNAPlus2 libraries. Any ideas? The current informix shell script for running the ESQL/C preprocessor that we are running is dated 12/4/98. Could this be part of the problem?

    Any ideas?

    Thanks, Josie

  2. #2
    Join Date
    Aug 2003
    Location
    Argentina
    Posts
    780

    Re: Errors linking to SNAPlus2 libraries when running make on c programs

    Originally posted by Josie
    We currently upgraded our HP-UX development box from 10.20 to 11.0 and SNAPlus to SNAPlus2. We have an application developed in C, using Informix and embedded SQL, that we are having trouble linking to SNAPlus2 libraries. Any ideas? The current informix shell script for running the ESQL/C preprocessor that we are running is dated 12/4/98. Could this be part of the problem?

    Any ideas?

    Thanks, Josie
    Hi Josie,

    A question: You recompiled programs ?

    Gustavo.

  3. #3
    Join Date
    Apr 2004
    Location
    Chicago area
    Posts
    2
    Hi Gustavo,
    Yes I did recompile. I did some research on the HP website and found that I needed to change the library names I'm looking for in my make file and I got it to work for one of my modules. However now I am not able to get the correct linkage for another one. And I'm using the same make file for all the application modules!

    This is what I'm using for my make file:

    INFORMIXC=cc
    CC=cc

    CCFLAGX=-Ae +DA1.0 +O4 +Onolimit +ESlit -o$(OUTFILE)
    CCFLAGO=-Ae +DA1.0 +O4 +Onolimit +ESlit -c

    .ec.x:
    sh -x /d2/informix/bin/esql $(CCFLAGX) -I/usr/include/sna $*.ec $(OBJME
    M)
    .ec.xs:
    sh -x /d2/informix/bin/esql $(CCFLAGX) -I/usr/include/sna $*.ec $(OBJME
    M) \
    -L/opt/sna/lib -lcpic -lsna -ldce -lV3 -lcov -L/opt -lcsv -lsna -ldce -l
    lua
    .ec.o:
    sh -x /d2/informix/bin/esql $(CCFLAGO) -I/usr/include/sna $*.ec
    .c.x:
    cc $(CCFLAGX) -I/usr/include/sna $*.c $(OBJMEM)
    .c.o:
    cc $(CCFLAGO) -I/usr/include/sna $*.c
    .c.xs:
    sh -x /d2/informix/bin/esql $(CCFLAGX) $*.c $(OBJMEM)

    .SUFFIXES: .x .xs .o .ec .c

    where OBJMEM is being passed in from another make file that calls the above.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •