Header Files functions not recognized.
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Header Files functions not recognized.

  1. #1
    Join Date
    Jul 2010
    Posts
    3

    Header Files functions not recognized.

    I'm working with some code for data analysis at work, as whilst trying to compile I get a load of erros along t he lines of:

    Code:
    /home/geantuser/GeantWorkspace/AIDA/iAIDA/iAIDA-1.0.11/lib/libiAIDA.a(HBook.o): In function `iAIDA::AIDA_HBookStore::HBook::initialize()':
    /home/geantuser/GeantWorkspace/AIDA/iAIDA/iAIDA-1.0.11/src/AIDA_HBook/HBook.cpp:140: undefined reference to `hlimit_'
    Looking at sample code from HBook.cpp:

    Code:
    extern "C" {
      void hlimit_(int*);
    .......
    And later
    Code:
    void
    iAIDA::AIDA_HBookStore::HBook::initialize()
    {
      if ( ! isInitialized ) {
        int SizeOfPawCommonT = SizeOfPawCommon;
        hlimit_( &SizeOfPawCommonT );
        isInitialized = true;
      }
    }
    So from what I can figure here, hlimit is a global variable that needs to be defined elsewhere? I'm guessing from HBook.h

    but looking in HBook.h I find this sort of thing:

    [code]
    public:
    /// calls HLIMIT.
    static void initialize();
    [/code

    With no actual reference to hlimit.

    This sort of thing is repeated throughout the two files. I can't figure out how to fix this. If people want to try and install it to see what happens for them (it's got a lot of programmes it relies on, and won't compile without) then feel free to find it here : http://iaida.dynalias.net/Intro.html

    I've emailed the guy who maintains the code but no reply, and assuming it's an simple problem, I thought the guys at CodeGuru could help?

  2. #2
    Join Date
    Jan 2009
    Posts
    1,689

    Re: Header Files functions not recognized.

    Did you compile the library yourself?

    Good guess would be that your library uses Visual C++ and you're using MinGW?

  3. #3
    Join Date
    Jul 2010
    Posts
    3

    Re: Header Files functions not recognized.

    I'm on a Ubuntu machine using G++ 4.something, I've never heard of MinGW, and I'm pretty sure I don't have Visual C.

    How would I find out?

  4. #4
    Join Date
    Jul 2010
    Posts
    3

    Re: Header Files functions not recognized.

    Oh and I've compiled the lot, or am in the process of doing so.

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center