c++ - Cannot open include file 'getopt.h' -


firstly, know nothing c/c++, trying compile lci https://github.com/justinmeza/lci under windows 10 visual studio 2015, i'm getting following error:

cannot open include file: 'getopt.h': no such file or directory.

i see getopt not part of visual c people saying have implement own. looks need:

https://github.com/skandhurkat/getopt-for-visual-studio/blob/master/getopt.h

problem is, don't know file. i've been reading fair bit , messing around ages compile lci.exe!

already emailed op this, here's steps followed in order build lci successfully. missing step seemed justin meza neglected mention need install cmake in order install script work. cmake allow build c code against glibc headers.

  1. install mingw
  2. install python 3.5.1 (or latest windows version)
  3. install git windows (if haven't already)
    • make sure enable git windows command prompt
  4. install cmake
  5. add mingw , python path environment variable. i'd double check paths executables correct, mine looked this:
    • c:\program files\mingw-w64\mingw64\bin
    • c:\users{username}\appdata\local\programs\python\python35-32
  6. run command prompt administrator, , go documents folder , clone lci repository (if haven't already):
  7. go lci directory, , run:
    • install.py --prefix="c:/program files/lci"
  8. add lci path, if using default location add end of path:
    • c:\program files\lci\bin

i have included links various programs above in steps 1-4 apparently don't have enough reputation on stackoverflow that...you should able find them enough in quick google search.

you should able run lci command prompt. test run "hai world" code @ lolcode.org.


Comments

Post a Comment

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -