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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:32:33+00:00 2026-06-01T03:32:33+00:00

I have tried to compile some C++ WIN32 code with GCC through DevC++ (MinGW

  • 0

I have tried to compile some C++ WIN32 code with GCC through DevC++ (MinGW GCC). It seams that it failed to link the objects and it didn’t give me a clear error message: “[PathToSource] > Error 1”.

Tried the same thing with Eclipse (MinGW GCC) and it compiled. However, not all of the resources show as I have an icon set to compile as the icon of the application, it’s loaded from the resource files. I also get a console window in the background as I run the application.

What is the cause of this? How can I make the resource files compile with the code and also avoid the loading of a console window in the background.

I was also wondering if there’s a way to compile WIN32 code in Linux through GCC, or a way to port it for the same compiler.

  • 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-01T03:32:34+00:00Added an answer on June 1, 2026 at 3:32 am

    Resource files in Eclipse:

    In the Build Steps of the project, there needs to be entered the command and the full path to the resource and its output file.

    windres ../Resources/resource_file.rc -o ../Debug/resource_file.o
    

    In the Tool Settings of the project in the linker options, the path to the resource output file needs to be added in order for the resources to be linked into the executable file.

    ../Debug/resource_file.o
    

    Avoid the console window:

    A linker flag needs to be specified for GUI only.

    -mwindows
    

    In Eclipse:

    Enter the flag in the project Tool Settings in Linker flags.

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

Sidebar

Related Questions

So I'm trying to get some code that is written for gcc to compile
I tried to compile some code however am getting the error storage class specified
I have some predicates being dynamically built that have the following signature passes through
I have tried to create a template function that does some weighted sampling within
The setup: I have a unmanaged/native Win32 application that I inject my code into.
I am trying to compile some code from a project that is no longer.
I have tried to compile some pixel shader examples. But all of them give
Autoconf has gotten me stumped. I have tried modifying the COMPILE in Makefile.in as
I have a Win32 console program that I wrote and it works fine. The
I have my system set up to compile jee6 code from the command line

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.