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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:50:07+00:00 2026-05-11T06:50:07+00:00

So I have this very simply SDL application I want to be able to

  • 0

So I have this very simply SDL application I want to be able to pass to my friend without having him download a whole bunch of SDL packages.

how can I go about this? I was told to use this line to compile: (note that I use ubuntu linux and so does my friend, and that this application compiles and runs without the ‘-Wl,-Bstatic’ options just fine.)

     g++ test-sdl.cpp -o test-sdl -Wl,-Bstatic -lSDL_image -lSDL 

But then I get this error:

     /usr/bin/ld: cannot find -lgcc_s       collect2: ld returned 1 exit status 

why am I getting this error? how do I fix it? do I even have to do this in this way? Is there a different/easier/alternative way?

Am I asking for so much by wanting to save my friend the hassle of downloading packages he will probably never use anyway?

Thanks.

  • 1 1 Answer
  • 1 View
  • 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. 2026-05-11T06:50:08+00:00Added an answer on May 11, 2026 at 6:50 am

    In the long run your best bet would be to figure out how to build .debs and then your friend’s system’s package management can take care of installing all the dependencies needed. If you want to distribute the packages more widely, using the platform’s native packaging system as intended will save you and your users a lot of headaches.

    Take a look at Ubuntu’s guide to packaging and pbuilder.

    Personally, I learned how to do this for my own projects (on Debian) from the Martin Krafft Debian book, and find using yada streamlines the process considerably.

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

Sidebar

Related Questions

I'm still struggling with this concept. I have two different Person objects, very simply:
I may not have explained this very well in the title simply because I
I thought I had this sorted, but I am still missing something. Very simply,
I have a very simple SDL program that uses only 1MB of memory with
I have a list of a very simply entity, which has a nullable DateTime
Very simply put: I have a class that consists mostly of static public members,
Very simply, I have a property/method that builds an absolute path to an image
i have a very simple question... i am using the SDL API which was
I have a very simply code of: WebClient webClient = new WebClient(); webClient.DownloadFile(privateHTML, @\\192.168.0.12\imagedepot\AT
I think my question is very simply but I don't have any idea of

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.