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 8276043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:15:47+00:00 2026-06-08T08:15:47+00:00

I am trying to get a very simple program to compile while using functions

  • 0

I am trying to get a very simple program to compile while using functions from libpano13, but I am running into linking errors. I am on Ubuntu 10.04, and have done the following:

sudo apt-get install libpano13-dev

My sample program is as follows:

#include <cstring>
#include <pano13/PTcommon.h>

int main(int argc, char **argv) {
    fullPath *outFile = new fullPath();
    StringtoFullPath(outFile, (char *)"/tmp/randomImage.jpg");

    return 0;
}

I am attempting to compile this with the following command (the above code is located in a file called panoTest.cpp):

$ g++ panoTest.cpp -o testApp -L/usr/lib -lpano13

When I run this command I get the following error:

$ g++ panoTest.cpp -o testApp -L/usr/lib -lpano13 
/tmp/ccyIioEi.o: In function `main':
panoTest.cpp:(.text+0x87): undefined reference to `StringtoFullPath(fullPath*, char*)'
collect2: ld returned 1 exit status
make: *** [all] Error 1

Now, I’ve checked /usr/lib for libpano* and found the following files:

$ ls /usr/lib/libpano*
/usr/lib/libpano13.a  /usr/lib/libpano13.so  /usr/lib/libpano13.so.1
/usr/lib/libpano13.so.1.0.0

I’ve checked libpano13.so using nm and got the following output:

$ nm --demangle /usr/lib/libpano13.a | grep StringtoFullPath
U StringtoFullPath
U StringtoFullPath
00000000 T StringtoFullPath

$ nm --demangle /usr/lib/libpano13.so | grep StringtoFullPath
nm: /usr/lib/libpano13.so: no symbols

I also checked it using objdump:

$ objdump -T /usr/lib/libpano13.so | grep StringtoFullPath
00057fd0 g    DF .text  0000004c  Base        StringtoFullPath

So, the following seems to be true:

  1. libpano13 exists in /usr/lib,
  2. libpano13 contains the symbols for StringtoFullPath,
  3. I am using the correct library directory of /usr/lib,
  4. I am using the correct library name of pano13, and
  5. g++ is able to locate the library

But, for some reason, g++ is unable to find the symbol for StringtoFullPath.

Does anyone have any suggestions/ideas about why this is happening?

Any help would be greatly appreciated!

  • 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-06-08T08:15:48+00:00Added an answer on June 8, 2026 at 8:15 am

    The

    undefined reference to `StringtoFullPath(fullPath*, char*)'
    

    worries me a bit: it contains the types of the parameters. Most Linux libraries are not C++, so there should be no types…

    Try surrounding the #include for the header with an extern “C” { … } block.

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

Sidebar

Related Questions

I'm trying to compile a very simple c++ code and get a linking error
I am just trying to compile and run a very simple test program, but
i'm trying to get into opengl programming, but fail to compile my first very
I have a very simple example program that I am trying to compile, but
I'm trying to make a very simple OSGi test but I can't get it
I am just trying to get into python, but I've found it very difficult
I am trying to cross-compile a very simple program for Android that worked with
I'm getting a very strange error while trying to read from a simple text
I'm trying to compile a very simple program that makes a connection to a
I am trying out a very simple cpp program on osx just to get

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.