Thread: What are available for getting a program written in C++ to output to a website?

  1. #1
    Registered User
    Join Date
    Apr 2010
    Location
    Vancouver
    Posts
    132

    What are available for getting a program written in C++ to output to a website?

    I have a program written in C++. I makes use of the GMP library. I would like the program to be accessible through a website. What options exist? The old school was is CGI and the new way is web-assembly. But can web-assembly work with programs using third party libraries?

  2. #2
    Registered User Sir Galahad's Avatar
    Join Date
    Nov 2016
    Location
    The Round Table
    Posts
    127
    Quote Originally Posted by c_weed View Post
    I have a program written in C++. I makes use of the GMP library. I would like the program to be accessible through a website. What options exist? The old school was is CGI and the new way is web-assembly. But can web-assembly work with programs using third party libraries?
    I wasn't very impressed with WebAssembly when I last tried it. Of course that was several months ago, so maybe things have improved by now.

    Anyhow, there are probably a ton of other ways to do this. For example, if you have PHP installed, a simple script could be used to invoke an external program using the system() or exec() functions. From C++ you could write the output to a file and then PHP could forward the results to the user. (You may be able to actually redirect your GIMP program's stdout directly to the user as well).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 09-09-2014, 02:36 PM
  2. Program help (already written just need help)
    By pwnsyoshi33 in forum C Programming
    Replies: 1
    Last Post: 02-01-2012, 11:17 AM
  3. No output written to a.out
    By ash4741 in forum C++ Programming
    Replies: 3
    Last Post: 07-26-2009, 11:03 PM
  4. Another C - Program is to be written
    By sonusden in forum C Programming
    Replies: 2
    Last Post: 02-01-2002, 10:24 AM
  5. C- Program which is to be written?
    By sonusden in forum C Programming
    Replies: 2
    Last Post: 02-01-2002, 10:00 AM

Tags for this Thread