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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:19:56+00:00 2026-05-23T20:19:56+00:00

I am facing an issue with stat() . stat() does not seem to be

  • 0

I am facing an issue with stat() . stat() does not seem to be working with .so files. It gives the error

No such file or directory .

Why is this happening?

As requested I paste a portion of the code:

int main()
 {
    char str[300];
    struct stat str_buf;
    strcpy(str,"path/to/my/library/libfuncs.so");

    if(stat(str,$str_buf)==-1)
       perror("stat");
     ....
  }

Thus the error comes as
stat No such file or directory

But the same code works fine for other files and directories. libfuncs.so is my generated shared library.

  • 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-23T20:19:57+00:00Added an answer on May 23, 2026 at 8:19 pm

    Many “.so” files are in fact symbolic links due to versioning issues. You might want to use lstat() in those cases, to stat the actual link.

    The error you’re getting (“No such file or directory”) seems to imply that the symbolic link is pointing at something that doesn’t exist. In these cases stat:ing the link itself helps, but of course that might not be what you want to do. Check the link’s target. If the path in the link is relative, perhaps you’re executing the code from a different directory?

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

Sidebar

Related Questions

I am facing an issue with this simple jQuery code. I have attached the
I am facing strange issue on Windows CE: Running 3 EXEs 1)First exe doing
I'm facing a problem with IE6. I took the toggle function from this website
I'm facing a particular issue that regards serial communication under win32. I'm communicating with
I am facing issue of the WCF Services on staging server. The same service
I am facing issue with the following Json reponse object in the javascript eval
I am using C# for my programming. I am facing issue, that my hidden
We are facing an issue where the following check fails intermittently in IE: pseudocode:
I am facing strange issue. I have wep-part that reads data from user's profile.
I am facing an issue with IE6 : every time I mouse over an

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.