Pelles C forum

Pelles C => General discussions => Topic started by: gamesover on October 24, 2012, 09:10:44 PM

Title: How to add new tool? Can't find .cpp source file
Post by: gamesover on October 24, 2012, 09:10:44 PM
I want to add asytle as a new tool. How can I fill in "Arguments" and "working dir"? Does Pelles C has some default arguments such as [filename] and [filepath]? I tried a lot but failed to format my file "C:\Documents and Settings\Ken\My Documents\MIT\Introduction to C++\Hello World.cpp". Kindly give me some hints. Thanks!
Title: Re: How to add new tool? Can't find .cpp source file
Post by: Stefan Pendl on October 24, 2012, 10:02:52 PM
You are trapped by the wrong assumption that C and C++ are the same, I think.

C is not C++ and vise versa, so compiling of .CPP files will not work with Pelles C.

The rest is explained in the help file.
Title: Re: How to add new tool? Can't find .cpp source file
Post by: CommonTater on October 25, 2012, 01:41:31 AM
I want to add asytle as a new tool. How can I fill in "Arguments" and "working dir"? Does Pelles C has some default arguments such as [filename] and [filepath]? I tried a lot but failed to format my file "C:\Documents and Settings\Ken\My Documents\MIT\Introduction to C++\Hello World.cpp". Kindly give me some hints. Thanks!

It would help us help you if you could explain exactly what you are trying to accomplish here...


Title: Re: How to add new tool? Can't find .cpp source file
Post by: gamesover on October 25, 2012, 03:25:16 AM
I want to add asytle as a new tool. How can I fill in "Arguments" and "working dir"? Does Pelles C has some default arguments such as [filename] and [filepath]? I tried a lot but failed to format my file "C:\Documents and Settings\Ken\My Documents\MIT\Introduction to C++\Hello World.cpp". Kindly give me some hints. Thanks!

It would help us help you if you could explain exactly what you are trying to accomplish here...
Sorry, it's my fault. I don't know Pelles C is for C only. asytle is a auto formatting tool, open source and free. I want to integrate into Pelles C as a tool.

Anyway, forget it. I need a C++ small IDE for my homeworks, not C. Thanks for all your help.
Title: Re: How to add new tool? Can't find .cpp source file
Post by: CommonTater on October 25, 2012, 05:34:23 AM
I want to add asytle as a new tool. How can I fill in "Arguments" and "working dir"? Does Pelles C has some default arguments such as [filename] and [filepath]? I tried a lot but failed to format my file "C:\Documents and Settings\Ken\My Documents\MIT\Introduction to C++\Hello World.cpp". Kindly give me some hints. Thanks!

It would help us help you if you could explain exactly what you are trying to accomplish here...
Sorry, it's my fault. I don't know Pelles C is for C only. asytle is a auto formatting tool, open source and free. I want to integrate into Pelles C as a tool.

Anyway, forget it. I need a C++ small IDE for my homeworks, not C. Thanks for all your help.

No worries .... probably your best bet is MS Visual C++, which you can get HERE (http://www.microsoft.com/visualstudio/eng/downloads)
 
Good luck on your course..
 
Title: Re: How to add new tool? Can't find .cpp source file
Post by: Bitbeisser on October 25, 2012, 06:43:00 AM

Sorry, it's my fault. I don't know Pelles C is for C only.
Never wondered though why it is called "Pelle's C" and not "Pelle's C++"?  ???
Quote
Anyway, forget it. I need a C++ small IDE for my homeworks, not C. Thanks for all your help.
Use Orwell's DevC++ (http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=8&cad=rja&ved=0CGUQFjAH&url=http%3A%2F%2Forwelldevcpp.blogspot.com%2F&ei=VsKIUNv6OeHeiALxiIDQBQ&usg=AFQjCNEUlOQOvvQAMOzaAjAO9MxfrMjwnA&sig2=urtTsRvS65zSEFn-dYuAAw)...

Ralf
Title: Re: How to add new tool? Can't find .cpp source file
Post by: TimoVJL on October 25, 2012, 01:56:07 PM
I want to add asytle as a new tool. How can I fill in "Arguments" and "working dir"? Does Pelles C has some default arguments such as [filename] and [filepath]?
Arguments: $(FilePath)

From help:
$(FilePath) Name and path of the current document file.
$(FileName) Name of the current document file.