Run Cpp programs

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Run Cpp programs

Postby rootlosdol7 » 14. August 2020 04:42

How do I run .cpp in xampp
rootlosdol7
 
Posts: 1
Joined: 14. August 2020 04:39
XAMPP version: 7.4.4
Operating System: windows 10 64 bit

Re: Run Cpp programs

Postby Altrea » 14. August 2020 05:23

You cannot.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 10342
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Run Cpp programs

Postby Nobbie » 14. August 2020 08:46

Why not? You cannot run it in base configuration, but you can apply *.cpp as CGI script. Add *.cpp to the CGI AddType Option, find an Cplusplus Interpreter (like Cling) and finally either add a shebang line in the .cpp source or define an appropriate Action for .cpp files in the Apache configuration.

Or, as i dont know if it is really meant to run as source or compiled, compile .cpp into an .exe and apply .exe also as CGI Extension (i did that actually for a C-Program and it worked well).
Nobbie
 
Posts: 11676
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 101 guests