Silverfrost Forums

Welcome to our forums

Using the GNU C Compiler (GCC) with Plato3

13 Jul 2007 1:14 #2059

Hey guys. I'm currently using Plato3 to create, compile and run my C programmes due to my familiarity with using Plato3 to create Fortran programmes.

However, I've got to the stage of using functions such as malloc() and calloc() in my programmes, which the compiler used by Plato3 seems to be struggling with. I'm learning C form a book called 'C Programming in Easy Steps' which recommends using the GNU C Compiler. Unlike the compiler with Plato3, the GNU C Compiler has no trouble with such functions.

Therefore, I'd like to get Plato3 to use the GNU C Compiler instead of whatever it uses at the moment. Is this possible?

Kind Regards,

Matt

13 Jul 2007 2:06 #2061

There should be no problem when using malloc and calloc with the Salford C++ compiler (SCC). They are defined in the header stdlib.h.

My recommendation is that you stick with SCC but if you want to use Plato3 as an IDE for GNU C then you need to create your own plug-in via the Options dialog. To do this you will have to work out the command line syntax for comiling and linking and enter the relevant commands into the dialog.

Please login to reply.