Like Tree2Likes
  • 1 Post By mnoooor
  • 1 Post By mnoooor

I need to build web site with c++ compiler

This is a discussion on I need to build web site with c++ compiler within the C++ Programming forums, part of the General Programming Boards category; hi , every body I need to build web site with c++ compiler as a graduation project and i need ...

  1. #1
    Registered User
    Join Date
    Oct 2010
    Posts
    5

    I need to build web site with c++ compiler

    hi , every body

    I need to build web site with c++ compiler as a graduation project


    and i need you to Advise me what should i use to do that and how i can to connect between compiler and my web site and what the best Technology to complete this join ??


    Thanks in advance
    coarpder likes this.

  2. #2
    Registered User
    Join Date
    Oct 2010
    Posts
    107
    That's a hugely underspecified problem. What do you mean exactly? Besides, as far as I know, hardly any development of websites is actually done in C++. It's done in HTML, CSS, PHP, etc.

    I have no idea what you're talking about.

    EDIT: Also, there is no way to "connect" the compiler to the website. The compiler simply produces binary executable code or object files, and then (if you can "run" them at all on your website, again, I have no idea how that happens) upload them to the server.

  3. #3
    Registered User claudiu's Avatar
    Join Date
    Feb 2010
    Location
    London, United Kingdom
    Posts
    2,094
    Also, even if what you want was possible, popular or advisable THIS IS THE C FORUM!
    1. Get rid of gets(). Never ever ever use it again. Replace it with fgets() and use that instead.
    2. Get rid of void main and replace it with int main(void) and return 0 at the end of the function.
    3. Get rid of conio.h and other antiquated DOS crap headers.
    4. Don't cast the return value of malloc, even if you always always always make sure that stdlib.h is included.

  4. #4
    Registered User
    Join Date
    Oct 2010
    Posts
    5
    Quote Originally Posted by QuadraticFighte View Post
    That's a hugely underspecified problem. What do you mean exactly? Besides, as far as I know, hardly any development of websites is actually done in C++. It's done in HTML, CSS, PHP, etc.

    I have no idea what you're talking about.

    EDIT: Also, there is no way to "connect" the compiler to the website. The compiler simply produces binary executable code or object files, and then (if you can "run" them at all on your website, again, I have no idea how that happens) upload them to the server.

    yes I know that the websites done in HTML, CSS, PHP, etc.
    but my project idea is website work as compiler
    I mean user can write c++ code then my website check the code and find the errors on that code and also my website can run that code
    "but this will be done as Future work so now I just need the compiler to check user code"

  5. #5
    Registered User
    Join Date
    Oct 2010
    Posts
    5
    Quote Originally Posted by claudiu View Post
    Also, even if what you want was possible, popular or advisable THIS IS THE C FORUM!
    I am so sorry about this wrong

  6. #6
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,648
    Moved to C++ programming forum.

    If you are talking about writing a backend for a website in C++, then there are a number of libraries that may help, including Cgicc. However, you appear to be talking about some kind of online compiler that can be used to check that sample C++ code compiles, like the Comeau online compiler.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  7. #7
    Registered User
    Join Date
    Oct 2010
    Posts
    5
    Quote Originally Posted by laserlight View Post
    Moved to C++ programming forum.

    If you are talking about writing a backend for a website in C++, then there are a number of libraries that may help, including Cgicc. However, you appear to be talking about some kind of online compiler that can be used to check that sample C++ code compiles, like the Comeau online compiler.
    thank you to move my thread and I'm sorry about this mistake..


    I visit Comeau online compiler.
    and i need to know what is the technique that used to build the online compiler as this website

    thank you a lot ..
    Last edited by mnoooor; 10-24-2010 at 02:23 PM.

  8. #8
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,183
    Upload the file, use PHP's system() to call gcc on the file, and system() again to run the executable.

    You can probably do that in 20 minutes if you are experienced with PHP.

    I hope this is not a university graduation project?

  9. #9
    Registered User
    Join Date
    Oct 2010
    Posts
    5
    Quote Originally Posted by cyberfish View Post
    Upload the file, use PHP's system() to call gcc on the file, and system() again to run the executable.

    You can probably do that in 20 minutes if you are experienced with PHP.

    I hope this is not a university graduation project?

    Thanks a lot ..

    yes it is a university graduation project but the compiler is small part of my website
    my graduation project also has another part that use Artificial intelligence and also use a database ,,


    thanks for everyone ,,
    coarpder likes this.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. web site needs certificate
    By George2 in forum C# Programming
    Replies: 0
    Last Post: 07-22-2008, 03:25 AM
  2. OpenScript2.0 Compiler
    By jverkoey in forum C++ Programming
    Replies: 3
    Last Post: 10-30-2003, 12:52 PM
  3. how to set up borland compiler from this site
    By dawiz66 in forum C++ Programming
    Replies: 1
    Last Post: 04-03-2002, 04:45 PM
  4. Try my web site
    By Leeman_s in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 11-12-2001, 12:48 PM
  5. Game Company Web Sites
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 08-17-2001, 08:32 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21