Linking problem...

This is a discussion on Linking problem... within the C++ Programming forums, part of the General Programming Boards category; Just to make sure I'm not looking at the screen cross-eyed, here's the thing $ nm libqhull.a | grep MY_qh_init_B ...

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    72

    Linking problem...

    Just to make sure I'm not looking at the screen cross-eyed, here's the thing

    $ nm libqhull.a | grep MY_qh_init_B
    00000b1c T MY_qh_init_B

    -----------------------------

    $ hcustom -L . -lqhull -lm SOP_Qhull.C
    Linking with 'libqhull'
    Linking with 'libm'
    Making SOP_Qhull.o and /home/briank/houdini5.5/dso/SOP_Qhull.so from SOP_Qhull.C
    SOP_Qhull.C: In method `OP_ERROR SOP_Qhull::cookMySop (OP_Context &)':
    SOP_Qhull.C:546: `MY_qh_init_B' undeclared (first use this function)
    SOP_Qhull.C:546: (Each undeclared identifier is reported only once for
    each function it appears in.)
    Compile failed


    FYI: "hcustom" is a kind of makefile. Shouldn't the fact that "MY_qh_init_B" is defined in libqhull.a mean that I shouldn't be getting the undeclared error during compile for "SOP_Qhull.h"?

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Posts
    5,439
    Did you forget to include "SOP_Qhull.h" in "SOP_Qhull.C"?
    Code:
    int main(void){srand(time(0));for(double l=rand(),l0=0,l00=0;;l0+=0.1){for(double l000=0;l000
    <1;l000+=.001,l+=((double)rand()/RAND_MAX)/0x64,l00+=((sin(l*0x8*atan(l0)*l000-(l0*0x8*atan
    (l)))*0.5)+0.5)){l00-=floor(l00);for(size_t l0000=0,l00000=(size_t)(0x50*(l00));l0000<l00000;++l0000
    )putchar(0x20);putchar(0x61+(int)((double)rand()/RAND_MAX*0x1a));putchar('\n');}}return 0;}

  3. #3
    Registered User
    Join Date
    Oct 2002
    Posts
    72
    Sebastiani: yup - double checked SOP_Qhull.h is included

    Salem: good idea (and one I hadn't thought of) - unfortunately, it didn't change anything.

    ... back to the drawing board - any other ideas? other things to look at? If it would really help to show hcustom, I can pull out the appropriate parts - just say the word.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem with linking files
    By slippy in forum C Programming
    Replies: 2
    Last Post: 11-23-2007, 10:35 PM
  2. Common Linking Problem. Simple.
    By CodeMonkey in forum C++ Programming
    Replies: 2
    Last Post: 04-21-2005, 02:41 PM
  3. Linking problem
    By Agent89 in forum C++ Programming
    Replies: 4
    Last Post: 03-27-2005, 02:03 PM
  4. half ADT (nested struct) problem...
    By CyC|OpS in forum C Programming
    Replies: 1
    Last Post: 10-26-2002, 08:37 AM
  5. Long file linking problem
    By hypertension in forum C Programming
    Replies: 3
    Last Post: 10-15-2002, 09:55 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21