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

  • SEARCH
  • Home
  • 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 3667268
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T01:58:48+00:00 2026-05-19T01:58:48+00:00

I am building something on HPUX. Code works fine in Sun/Linux/AIX. But on HPUX

  • 0

I am building something on HPUX. Code works fine in Sun/Linux/AIX.

But on HPUX it complains on

[sshexec] /usr/ccs/bin/ld: Unsatisfied symbols:
[sshexec]    globalVar (first referenced in blah.o)

Once again code works in Release but not in Debug.
All it does it uses global variable defined in some other file

extern globPck globalVar;

globPck is class that cointains some global stuff.

I am more interested in ideas what could be the reason for this to work in Release but not in Debug.

I looked over .i files (precompiled header file generated with -E)
And it seems defined in same way.

I am guessing something that is hit in Release code path fixes it but I am here to hear if yall have some ideas.

  • 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-19T01:58:48+00:00Added an answer on May 19, 2026 at 1:58 am

    The first thing to do when the linker complains that something isn’t defined is to go find for yourself where that thing is defined. If you can’t find it, then don’t expect the linker to find it, either.

    What you have shown is a declaration, not a definition. A definition will not have the extern keyword. There should be a definition in exactly one .cpp file in your project, not a header.

    Once you’ve found the definition, then you can start working on why the linker doesn’t see it. Maybe it’s only defined when certain symbols are present, such as DEBUG or NDEBUG.

    If there is no definition, then maybe all uses of it get removed during release compilation (perhaps because all uses occur in assert statements that the compiler omits), so the missing definition isn’t noticed in release mode.

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

Sidebar

Related Questions

I'm building something that includes javascripts on the fly asynchronously, which works, but I'm
I was building something, it was a working prototype but had glitches and now
I'm building something in a system that utilizes smarty version 2. The code I'm
I was building something using jQuery's AutoComplete plugin last week, but today I found
I'm building something ONLY for Chrome. I want to open several tabs with window.open
I'd like to start messing around programming and building something with an Arduino board,
So no doubt that building a domain model is something that I think happens
I'm building a small CMS in PHP for a client and something I've noticed
Im building a Reversi program and i need to delay the program for something
I'm building something in Camping and it occurred to me that my app's database

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.