forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Using the GNU C Compiler (GCC) with Plato3

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Plato
View previous topic :: View next topic  
Author Message
purp1euk



Joined: 11 Jul 2007
Posts: 1

PostPosted: Fri Jul 13, 2007 2:14 pm    Post subject: Using the GNU C Compiler (GCC) with Plato3 Reply with quote

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
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 6393
Location: Salford, UK

PostPosted: Fri Jul 13, 2007 3:06 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Plato All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group