• C

GCC for DOS / "Abort!"

Hello,

I tried to port a Linux C program to DOS. When compiling with GCC, everything seems to work ok, but after some second it just says "Abort!". Do you have an explanation for this?

If you need to look at the script, it's located at ourworld.compuserve.com/homepages/Christian_Wenz/test.c - the C library function strtod using assembler.
LVL 5
Christian_WenzAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

emmonsCommented:
First off, this is an assembly program embedded in a C file.

Can you give a better idea of where it fails and what the register values are when it does?
0
emmonsCommented:
First off, this is an assembly program embedded in a C file.

Can you give a better idea of where it fails and what the register values are when it does?
0
Christian_WenzAuthor Commented:
I have no idea if it fails when running, as I get this "Abort!" message during compilation.
0
jtwine100697Commented:
Have you tried turning on all warnings to their highest levels?  That might give you a bit more information on what the problem might be.

-=- James.
0
gavriepCommented:
Linux and DOS use a different syntax of inline assembler. That's the reason you get the "Abort".

You asked for an explanation, so this is submitted as an answer.

As to the solution -- I can't be specific, but you need to change the format of the inline ASM. See the DJGPP docs!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C

From novice to tech pro — start learning today.