Remember me

Lost Password?

Register now!


Who's Online
58 user(s) are online (42 user(s) are browsing Forums)

Members: 1
Guests: 57

colinw, more...

Support us!


Report message:*

Re: Porting to AmigaOS4 thread

Subject: Re: Porting to AmigaOS4 thread
by kas1e on 2021/1/2 12:57:32


If you call your file name as .c, then when you will try to compile with ppc-amigaos-gcc , you will fail, as a compiler will think it pure C and will not include CPP includes (if at the end of include there are no .h, then its cpp includes).

So, you have 2 solutions :

1). rename the file so it will be .CPP, and then you can build it and with "gcc" and with "g++" binaries. Through when you will build it with "gcc" you must add at the end -lstdc++

2). didn't rename it, keep as .C, but then build it with g++ binary.

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project