Compiling example with gcc, not executeable

Akira2024 · 455

Akira2024

  • Newbie
  • *
    • Posts: 5
    • Karma: +0/-0
on: December 10, 2023, 06:45:27 AM
Ive copied and pasted this small c source

gcc doesnt give any messages but the resulting file is not executeable.

What I am missing?



deadwood

  • AROS Developer
  • Legendary Member
  • *****
    • Posts: 1524
    • Karma: +118/-0
Reply #1 on: December 10, 2023, 08:06:55 AM
Try adding -fno-common switch to your gcc compilation line and see if that helps.



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3740
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #2 on: December 10, 2023, 12:32:38 PM
@ Akira2024
With the parameter "-fno-common" I compiled your source without errors, see screenshot.

The GCC has been fixed will be available with the next version of AROS One (2.3)


@ deadwood
With the GCC Fixate version in your last Build I had to give a high stack, otherwise I get a Guru

The previous version I used with ill parameter "-fno-common" worked without using the Stack !


« Last Edit: December 10, 2023, 01:23:12 PM by AMIGASYSTEM »