Thread: Linking problem...

  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
    Location
    Waterloo, Texas
    Posts
    5,708
    Did you forget to include "SOP_Qhull.h" in "SOP_Qhull.C"?
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 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, 11: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, 03: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