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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:36:48+00:00 2026-06-11T15:36:48+00:00

I downloaded the source to the latest wx and managed to compile it without

  • 0

I downloaded the source to the latest wx and managed to compile it without any issues.

Configured with:

../configure --enable-optimise --enable-stl --enable-unicode --enable-threads --enable-static --disable-shared --prefix=/usr/local

When I try to compile this example with:

g++-4.8 `wx-config --libs` `wx-config --cxxflags` test.cpp 

I get alot of undefined refferences ( full list here )

How can I make this work?

  • 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-11T15:36:50+00:00Added an answer on June 11, 2026 at 3:36 pm

    When using static libraries, as you do (because of --disable-shared in configure command line), the libraries must come after the object file that references them (this is a general rule with all Unix-ish linkers and definitely with GNU ld). So the correct command line would be

    g++-4.8 `wx-config --cxxflags` test.cpp `wx-config --libs`
    

    or, just to keep it short, and because it does not matter where do the compilation flags appear:

    g++-4.8 test.cpp `wx-config --cxxflags --libs`
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I downloaded the latest source of mod_wsgi from https://code.google.com/p/modwsgi/source/checkout , but I can’t compile
I downloaded the latest open source version of QT4-and its installed in c:\qt\2009.04. I've
Sometimes when i try to build/compile a downloaded source, i get following warning: ld:
Does anybody have any experience with as3-spod? I downloaded the source code from github
I've downloaded latest source from mono project, compiled it and everything works (c# projects,
I am working on Lucene 3.x (source code). To start with I downloaded latest
I have downloaded the latest GLUI source code and now I am trying to
I need support for computed properties in App Engine. I downloaded the latest source
I have downloaded the latest version of SFML (a library) which includes source files,
I downloaded the latest google caliper source code and build it using maven. Now

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.