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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:05:59+00:00 2026-05-14T15:05:59+00:00

I used to program in Windows with Microsoft Visual C++ and I need to

  • 0

I used to program in Windows with Microsoft Visual C++ and I need to make some of my portable programs (written in portable C++) to be cross-platform, or at least I can release a working version of my program for both Linux and Windows.

I am total newcomer in Linux application development (and rarely use the OS itself).

So, today, I installed Ubuntu 10.04 LTS (through Wubi) and equipped Code::Blocks with the g++ compiler as my main weapon. Then I compiled my very first Hello World linux program, and I confused about the output program.

I can run my program through the “Build and Run” menu option in Code::Blocks, but when I tried to launch the compiled application externally through a File Browser (in /media/MyNTFSPartition/MyProject/bin/Release; yes, I saved it in my NTFS partition), the program didn’t show up.

Why? I ran out of idea.

I need to change my Windows and Microsoft Visual Studio mindset to Linux and Code::Blocks mindset.

So I came up with these questions:

  1. How can I execute my compiled linux programs externally (outside IDE)?
    • In Windows, I simply run the generated executable (.exe) file
  2. How can I distribute my linux application?
    • In Windows, I simply distribute the executable files with the corresponding DLL files (if any)
  3. What is the equivalent of LIBs (static library) and DLLs (dynamic library) in linux and how to use them?
    • In Windows/Visual Studio, I simply add the required libraries to the Additional Dependencies in the Project Settings, and my program will automatically link with the required static library(-ies)/DLLs.
  4. Is it possible to use the “binary form” of a C++ library (if provided) so that I wouldn’t need to recompile the entire library source code?
    • In Windows, yes. Sometimes precompiled *.lib files are provided.
  5. If I want to create a wxWidgets application in Linux, which package should I pick for Ubuntu? wxGTK or wxX11? Can I run wxGTK program under X11?
    • In Windows, I use wxMSW, Of course.
  6. If question no. 4 is answered possible, are precompiled wxX11/wxGTK library exists out there? Haven’t tried deep google search.
    • In Windows, there is a project called “wxPack” (http://wxpack.sourceforge.net/) that saves a lot of my time.

Sorry for asking many questions, but I am really confused on these linux development fundamentals.

Any kind of help would be appreciated =)

Thanks.

  • 1 1 Answer
  • 2 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-14T15:05:59+00:00Added an answer on May 14, 2026 at 3:05 pm

    How can I execute my compiled linux
    programs externally (outside IDE)? In
    Windows, I simply run the generated
    executable (.exe) file

    On Linux you do the same. The only difference is that on Linux the current directory is by default not in PATH, so typically you do:

    ./myapp
    

    If you add current dir to the path

    PATH=".:$PATH"
    

    then windows-like way

    myapp
    

    will do, but this is not recommended due to security risks, at least in shared environments (you don’t want to run /tmp/ls left by somebody).

    How can I distribute my linux application?
    In Windows, I simply distribute the executable files with the corresponding DLL files (if any)

    If you are serious about distributing, you should probably learn about .deb (Ubuntu, Debian) and .rpm (RedHat, CentOS, SUSE). Those are “packages” which make it easy for the user to install the application using distribution-specific way.

    There are also a few installer projects which work similarly to windows installer generators, but I recommend studying the former path first.

    What is the equivalent of LIBs (static library) and DLLs (dynamic library) in linux and how to use them?

    .a (static) and .so (dynamic). You use them in more or less the same way as on Windows, of course using gcc-specific compilation options. I don’t use Code::Blocks so I don’t know how their dialogs look like, in the end it is about adding -llibrary to the linking options (guess what: on windows it is about adding /llibrary ;-))

    Is it possible to use the “binary form” of a C++ library (if provided) so that I wouldn’t need to recompile the entire library source code?

    Yes. And plenty of libraries are already present in distributions.

    Note also that if you use .deb’s and .rpm’s for distribution, you can say “my app needs such and such libraries installed” and they will be installed from the distribution archives. And this is recommended way, in general you should NOT distribute your copy of the libraries.

    If I want to create a wxWidgets application in Linux, which package should I pick for Ubuntu? wxGTK or wxX11? Can I run wxGTK program under X11?

    Try wxGTK first, dialogs may look better, gnome themes should be used etc.

    If question no. 4 is answered possible, are precompiled wxX11/wxGTK library exists out there? Haven’t tried deep google search.

    Try

    apt-cache search wx
    

    (or spawn your Ubuntu Software Center and search for wx)

    In short: you will find everything you need in distribution archives.

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

Sidebar

Related Questions

Under Windows, I have used a program called Dependency Walker to examine the libraries
I used to program for iPhone. But then I want to make another similar
I went into that directory: > C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin and when I press the
A couple years ago I wrote a C#.NET program that used Microsoft ACE and
I have built a program in Microsoft Visual Studio 2005 and it works fine.
I have an old Windows app, compiled in Visual C++ 6.0, that I need
I have just written a program to run as a Windows Service Application, GasMeterMonitoring;
I have a Windows service written in C# using Visual Studio 2010 and targeting
I'm trying to do some basic hooking with microsoft detours and I can't get
Could UML be used to program a computer system on its own, without a

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.