Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 798375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T22:57:34+00:00 2026-05-14T22:57:34+00:00

There is a static class Pipe, defined in C++ header that I’m including. The

  • 0

There is a static class Pipe, defined in C++ header that I’m including.

The static method I’m interested in calling (from Objective-c) is here:

static ERC  SendUserGet(const UserId &_idUser,const GUID &_idStyle,const ZoneId &_idZone,const char *_pszMsg);

I have access to an objective-c data structure that appears to store a copy of userID, and zoneID — it looks like:

@interface DataBlock : NSObject
{
    GUID userID;
    GUID zoneID;
}

Looked up the GUID def, and it’s a struct with a bunch of overloaded operators for equality. UserId and ZoneId from the first function signature are #typedef GUID

Now when I try to call the method, no matter how I cast it (const UserId), (UserId), etc, I get the following linker error:

Ld build/Debug/Seeker.app/Contents/MacOS/Seeker normal i386
cd /Users/josh/Development/project/Mac/Seeker
setenv MACOSX_DEPLOYMENT_TARGET 10.5
/Developer/usr/bin/g++-4.2 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -L/Users/josh/Development/TS/Mac/Seeker/build/Debug -L/Users/josh/Development/TS/Mac/Seeker/../../../debug -L/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib/gcc/i686-apple-darwin10/4.2.1 -F/Users/josh/Development/TS/Mac/Seeker/build/Debug -filelist /Users/josh/Development/TS/Mac/Seeker/build/Seeker.build/Debug/Seeker.build/Objects-normal/i386/Seeker.LinkFileList -mmacosx-version-min=10.5 -framework Cocoa -framework WebKit -lSAPI -lSPL -o /Users/josh/Development/TS/Mac/Seeker/build/Debug/Seeker.app/Contents/MacOS/Seeker

Undefined symbols:
  "SocPipe::SendUserGet(_GUID const&, _GUID const&, _GUID const&, char const*)", referenced from:
  -[PeoplePaneController clickGet:] in PeoplePaneController.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

Is this a type/function signature error, or truly some sort of linker error? I have the headers where all these types and static classes are defined #imported — I tried #include too, just in case, since I’m already stumbling 😛

Forgive me, I come from a web tech background, so this c-style memory management and immutability stuff is super hazy.

Edit: Added full linker error text. Changed “function” to “method”. Also I’ll note that we’re using a custom makefile to compile a few projects external to this one. SocPipe static methods are referenced elsewhere, though, in this xcode project and seems to compile fine.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T22:57:34+00:00Added an answer on May 14, 2026 at 10:57 pm

    (Eh, let’s turn that comment into an answer.)

    The method signature looks fine; that is, what you’re calling matches what is declared in the header. If it was not, you would probably be getting a compilation error rather than a linker error.

    The linker’s problem is that it doesn’t have any corresponding object code to connect this call to: the method is declared but never defined.

    The latter should occur either in a C++ source file which your project can compile, or else in some precompiled library or framework that you can link to. Either way, that file needs to be included in your project so that it can be made available to the linker.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to have a mutable static variable in F# class that
In C# there is the static property Environment.Newline that changed depending on the running
Is there a decent way with static HTML/XHTML to create common header/footer files to
Are there any tools that will spider an asp.net website and create a static
Is there a static analysis tool for PHP source files? The binary itself can
What tools are there available for static analysis against C# code? I know about
What is the right way to perform some static finallization? There is no static
Is there a way to call Static Classes / Methods by name? Example: $name
Is there anyway to have a sort of virtual static member in C++? For
Is there a difference between having a private const variable or a private static

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.