VOGONS


First post, by filosofem

User metadata
Rank Newbie
Rank
Newbie

Hello!

i'm using windows 7 x64 and i'm trying to compile a simple graphics example with Dosbox SVN-Daum. I'm using newest version of Dosbox SVN-Daum and my real dos hardware compiles it without any errors and example works. Dosbox 0.74 gaves that error too.

I hope my screenshot tells more than 1000 words.

Thank you.

Attachments

  • koodi.png
    Filename
    koodi.png
    File size
    807.38 KiB
    Views
    561 views
    File license
    Fair use/fair dealing exception

Reply 1 of 2, by ripa

User metadata
Rank Oldbie
Rank
Oldbie

According to google, that has something to do with exception handling, which is weird, because you're compiling C instead of C++.... try -fno-exceptions ?

edit: compiler might think upper-case .C extension means C++ 😁
http://stackoverflow.com/a/24774864

Reply 2 of 2, by filosofem

User metadata
Rank Newbie
Rank
Newbie
ripa wrote:

According to google, that has something to do with exception handling, which is weird, because you're compiling C instead of C++.... try -fno-exceptions ?

edit: compiler might think upper-case .C extension means C++ 😁
http://stackoverflow.com/a/24774864

You are right. if i try to compile with GCC FOO.C -o FOO.EXE then it fails.
It needs to compile GCC FOO.c -o FOO.exe then it works.

Problem solved!

Thank you. 😀