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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:35:18+00:00 2026-05-17T15:35:18+00:00

lets make the simpliest application: result: ok. it works. lets add some SDL with

  • 0

lets make the simpliest application:

alt text

alt text

alt text

alt text

result:
alt text

ok. it works.
lets add some SDL with default dynamic linking here!

alt text

alt text

alt text

alt text

result:

alt text
works great. at stdout.txt we can see “puchuu”

lets change our makefile a little.
just group 2 object files to the static lib:

alt text

result:

alt text

Who is to blame?
Me or mingw developers?
is it clear to send to it’s bug tracker?

  • 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-17T15:35:18+00:00Added an answer on May 17, 2026 at 3:35 pm

    mingw is not to blame. With the (GNU) linker, static libraries have to be listed in the reverse dependency order.

    g++ -o program.exe libpuchuu.a -lSDL will not work if something in libpuchuu.a depends on something in libSDL.

    It should be g++ -o program.exe -lSDL libpuchuu.a

    If you have a cyclic dependency, you even have to list them twice. Consider e.g. libfoo.a depends on stuff in libbar.a ,and libbar.a depends on something in libfoo.a . You’ll have to do: g++ -o fooprogram libbar.a libfoo.a libbar.a

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

Sidebar

Related Questions

lets say i make a file Services.php <?php $myGlobalVar='ranSTR'; function serv1($num) { //some processing...
I just wrote my first web service so lets make the assumption that my
I have some user-specific data that I need to store in SharePoint and make
okay so lets say $word = abcdefg@hijk.lmn can i make a new variable only
How do I make sure JacORB uses a fixed port, lets say 6001, when
Let's make this very easy. What I want: @array = qw/one two one/; my
Let's say I wanted to make a python script interface with a site like
Ok, let's see if I can make this make sense. I have a program
Lets say I have a Dictionary object: Dictionary myDictionary<int, SomeObject> = new Dictionary<string, SomeObject>();
Lets say that you have websites www.xyz.com and www.abc.com. Lets say that a user

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.