Amiga.org

Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: Crumb on February 01, 2004, 09:49:47 PM

Title: GCC and Reaction
Post by: Crumb on February 01, 2004, 09:49:47 PM
 Hi!

I'm using Louise's hardfile with Geek Gadgets and GCC... I have tried to copy the NDK3.9 includes but I can't compile any of the reaction examples, they fail in the linking stage. Anyone knows what should I do to compile the examples?
Title: Re: GCC and Reaction
Post by: Ami603 on February 01, 2004, 10:59:33 PM
Hey Crumb, we were discussing this a little ago, but i forgot to add, doesn´t the ndk examples are StormC based?

See you soon 8-)
Title: Re: GCC and Reaction
Post by: falemagn on February 01, 2004, 11:00:57 PM
replace all occurrencies of

#include

and

#include

and

#include
(except for )

with

#include

The former 3 will only work for specific compilers, the latter one will work everywhere.
Title: Re: GCC and Reaction
Post by: Crumb on February 02, 2004, 12:06:57 AM
ugh?

the includes already use #protos and don't use pragmas

#include
#include
#include
#include
#include

#include
#include

#include
#include
#include
#include
#include
#include

#include
#include
#include

#include
#include
#include
#include
#include

#include
#include


but they don't compile :-(
Title: Re: GCC and Reaction
Post by: falemagn on February 02, 2004, 12:19:54 AM
try putting this:

#define ALL_REACTION_CLASSES
#define ALL_REACTION_MACROS

before this:

#include
#include
Title: Re: GCC and Reaction
Post by: Crumb on February 02, 2004, 03:47:40 PM
Thank you Fabio, but it doesn't link...

Should I use fd2pragma or fd2inline to adapt the ndk3.9 includes?
Title: Re: GCC and Reaction
Post by: Crumb on February 04, 2004, 04:36:26 PM
I converted some includes with fd2pragma without luck but a little time later... I got it working!
:-)
All I had to do is add a -noixemul parameter :-)

thank you Fabio & co!

now I can start to play with Reaction :-)