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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:32:13+00:00 2026-05-22T17:32:13+00:00

I am working on a project with SDL. I feel like a lot of

  • 0

I am working on a project with SDL. I feel like a lot of my code could/should be reusable for any other projects I might want to take on.

I was going to start a library project, but I don’t know how to go about linking to the SDL libraries.

Usually, I go to Project Settings and edited Mingw32 Linker to include the libraries (ming32, SDLmain, and SDL). But the linker does not show up in the settings.

So my questions:

Is there no linker settings because building a library is only a compiling operation?

And in general, is it possible to build a library on top of the existing libraries? That is, write my library using SDL functions and stucts. Or would I have to get the source code and rebuild entirely with my code included?

Also, advice on shared vs. static in this instance?

(Also, any advice for where to go about learning more about compilers and linkers and such. I got through data structures in school but no farther)

  • 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-22T17:32:14+00:00Added an answer on May 22, 2026 at 5:32 pm

    As an introduction, you have to distinguish very well static library from dynamic ones, they are completely different beasts… said that, to your questions:

    Is there no linker settings because building a library is only a compiling operation?

    I guess you are creating a static library in this case. A static library is simply the collection in one single object file of all the individual object files (i.e., the .o files produced by the compiler) that make up your source tree. No more, no less.

    With a static library you don’t need to specify which are the dependencies, since it is understood that it is when compiling the final executable that your library will be linked with all the other libraries that it depends upon. Therefore it is only at that time (final executable build) that any missing symbol will be detected, and all other libraries must be available.

    A shared library (also dynamic library), is an executable file that embeds all the static libraries that it depends upon. It can also have external dependencies with other shared library, which would not be embedded.

    And in general, is it possible to build a library on top of the existing libraries? That is, write my library using SDL functions and stucts. Or would I have to get the source code and rebuild entirely with my code included?

    It is perfectly possible, both for static and dynamic libraries.

    Also, advice on shared vs. static in this instance?

    In this instance it is not possible to advice, because you don’t specify enough information.
    Look at this: When to use dynamic vs. static libraries, and this, to have a sort of guideline.

    (Also, any advice for where to go about learning more about compilers and linkers and such. I got through data structures in school but no farther)

    I think that the two links above give you plenty of information. If you want to further go into details, you could start from this wikipedia article and browse from there.

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

Sidebar

Related Questions

I am working on project and ran into an issue. Now I want to
I am working on project where I want to show UIActionsheet with three buttons
This is for a small game project with SDL on MinGW/Windows. I am working
I have been working on a C++ project that uses SDL, and wonder if
I'm using SDL for a project of mine, and I want a shorter way
I'm working on my project in SDL, with SDL_mixer. Everything sounds ok, but when
I had a working project. After rearranging some code, I tried to recompile my
I have a working project that Im amending, it crashes after trying to use
I'm curious if it is possible to move the written and fully working project
While working a project tonight, I ended up using one .js resource file for

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.