Menu

How to compile C++ program on Windows 2000?

Help
2004-10-04
2013-03-13
  • Alex Vinokur

    Alex Vinokur - 2004-10-04

    Hi,

    I have downloaded cfrontend-1.3.i386-unknown-freebsd5.2.1.tar.gz from
    http://sourceforge.net/project/showfiles.php?group_id=119938&package_id=130753

    After gunzip and tar the cfrontend directory has been created.

    I would like to compile some C++ program.
    What do I have to to?
    I am working on Windows 2000.

    I tried to invoke files from cfrontend/x86/llvm-gcc/bin, for instance, gcc:
    $ ./gcc -v
    ./gcc: 1: Syntax error: "(" unexpected

    Thanks,
      Alex

     
    • Reid Spencer

      Reid Spencer - 2004-10-04

      Hi Alex,

      LLVM comes in two parts: the LLVM libraries and tool sets (file area llvm) and the llvm c/c++ frontend (a modification of GCC to provide c/c++ compilation for LLVM).

      Building LLVM is non-trivial, but there are complete instructions available. Please visit the projects home page and click on the "Documentation" link at the top left and look at the "LLVM Getting Started Guide".

      Please note that support for Win32 platforms is fledgling at this point. We have several people working on it, but the software was originally developed for Unix and its taking a bit of re-work to make it compile and run on Win32.  Your best bet on Win 2000 right now is to get yourself a copy of cygwin and use that instead. That environment is currently fully supported.

      Best Regards,

      Reid.

       
    • Alex Vinokur

      Alex Vinokur - 2004-10-04

      Hi Reid,

      I am currently using Cygwin.

      $ uname -srom
      CYGWIN_NT-5.0 1.5.11(0.116/4/2) i686 Cygwin

      Directory cfrontend/x86/llvm-gcc/bin contains the following files:

      c++
      cpp
      g++
      gcc
      gccbug
      gcov
      i386-unknown-freebsd5.2.1-c++
      i386-unknown-freebsd5.2.1-g++
      i386-unknown-freebsd5.2.1-gcc
      i386-unknown-freebsd5.2.1-gcc-3.4-llvm

      Are they executables?

      What do I have to do to compile some C++ program in LLVM, for instance, foo.cpp in Cygwin?

      Thanks & Regards,

          Alex

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.