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
    Location
    Waterloo, Texas
    Posts
    5,651
    Did you forget to include "SOP_Qhull.h" in "SOP_Qhull.C"?
    Code:
    #include <ip.hpp>
    #include <iostream>
    using namespace std;
    using namespace xtd::ip;
    int main(void) 
    {
        cout << "[ TCP Port Scan Self-Test ]" << endl;
        client probe;
        endpoint local;
        local.address = "127.0.0.1";
        local.protocol = IPPROTO_TCP;
        for(local.port = 0; local.port < (1 << 16); ++local.port)
        {
            if(probe.open(local))
                cout << "Listening: ";
            else
                cout << "No Response: ";
            cout << local.port << endl;
        }    
    }

  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