NO

Author Topic: compile in CPP  (Read 208 times)

Offline kh_model

  • Member
  • *
  • Posts: 2
compile in CPP
« on: April 24, 2017, 07:41:42 PM »
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.

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 1578
Re: compile in CPP
« Reply #1 on: April 25, 2017, 04:07:25 PM »
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.
« Last Edit: April 25, 2017, 04:22:45 PM by frankie »

Offline kh_model

  • Member
  • *
  • Posts: 2
Re: compile in CPP
« Reply #2 on: April 25, 2017, 11:31:12 PM »
Thank you for your kind efforts and for helping me to understand. I am deeply grateful and I wish you the best!