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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:28:52+00:00 2026-06-06T18:28:52+00:00

I am trying to compile an old C++ software project in Code::Blocks using the

  • 0

I am trying to compile an old C++ software project in Code::Blocks using the gcc compiler, and after fixing a few other issues, I’ve hit a wall: the project has a file with Intel-style inline ASM written as

_asm {
  code here
}

and the compiler refuses to compile it with “error: ‘_asm’ was not declared in this scope”.

I’ve spent a while Googling around looking for solutions, but the only ones I can find are to add -masm=intel to the build options (which I’ve tried and can’t get to work), or to convert the code to asm ("code here"); (which isn’t feasible because of the sheer amount of ASM). Does anyone know how I can get gcc to compile this code as-is, or should I give up and use a different 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-06T18:28:53+00:00Added an answer on June 6, 2026 at 6:28 pm

    GCC uses a very different syntax for inline assembler, so you won’t be able to handle it with trivial changes. I see the following options:

    1. Rewrite everything in GCC syntax or as C code
    2. Make some script to translate to GCC syntax (non-trivial task)
    3. Compile the code with whatever compiler it was written for (MSVC?)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to compile old iPhone application project using new LLVM 3.0 compiler.
I'm trying to compile a little project that includes windows.h using the clang compiler.
I'm trying to compile an old project using VS express 2010 but I get
I'm trying to build/compile a old project using the original makefile. When I do
I'm trying to compile an old project that was originally designed for Visual Studio
When trying to compile this code: #include <iostream> #include <vector> using namespace std; class
While trying to compile a 64 bit linux kernel using gcc, I see the
I have been trying to compile an old project for my company, which uses
So I keep getting this error when trying to compile C++ code using CodeBlocks.
I'm trying to compile/link a very old piece of software on a linux system

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.