News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

compile in CPP

Started by kh_model, April 24, 2017, 08:41:42 PM

Previous topic - Next topic

kh_model

I am new to Pelles, and I would like to know if there is any way to compile in C++. For example, is there a flag which can be set?

If anyone is interested, I am working with an existing piece of source code which appears to have originally been compiled by its author using Pelles. I base my assumption on the similar style of comments created by the WIN32 dll wizard.

frankie

#1
Hello kh_model.
Sorry to delude you, but PellesC is a C compiler, not a C++ compiler. And it will never be...

Said that the good news, your code is not C++, but C code, with some c++ alteration  >:(. Simply changing file extension from .cpp to .c, and fixing the C++ contamination, you'll be able to compile it with PellesC.  ;)
Get the attached project with the correct file.
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

kh_model

Thank you for your kind efforts and for helping me to understand. I am deeply grateful and I wish you the best!