# Flags to give the compiler for "debug mode"ĭEBUGFLAGS=-DDEBUG -g -Wall -pedantic -O2 # Flags to give the compiler for "release mode" # used to compile optimized and debug code, you can do so here. Section - # This step is optional, but if you wish to customize the flags #BLAS_LAPACK_LIBFLAGS=-lpthread -L/usr/lib -lblas -llapackīLAS_LAPACK_LIBFLAGS=-L /usr/lib -lblas -llapack # (Path to lib/ folder may differ on your system) # Example using a C interface to LAPACK on GNU/LINUX systems # of this compiler with Windows binary format # Extra flags are workaround for limitations Add the following sections in your options.mk file (I only copied the relevant parts) This cygwin shell then starts you at a "home" folder that is located within cygwin from here you can use the shell just like you would in linux with the same navigation commands. When you run the cygwin program, for instance by clicking on the cygwin icon on your desktop if you create a desktop icon, it will open up a unix-like shell that you can run itensor from. In this way, cygwin creates a separate computer within your computer that acts like Linux. I found some videos on youtube that were helpful.Ĭygwin should be installed within the C: drive it will then have its' own home file, within which you should create a user folder for yourself. If these options are not sufficient simply re-install cygwin and add more options. For instance, gcc core, gccg++ might automatically come with cygwin_devel but I forget which ones are automatic.
Some of these might be added automatically when you select the main file. Nano (if you want the nano editor, otherwise vi is included with gcc-core) Then click the box for the heading Devel, and select the following options: A large list of add-ons will be provided you will need to check the following.įirst click the box next to Debug, and click on the box under the column Bin? (but not Src?) for the following options:
Below I copied a write-up of the installation options I selected when I installed Cygwin:įirst, download cygwin installation file, setup-x86_64.exe.
Install Cygwin, making sure to put check marks for the options you want. I was successfully able to get ITensor working using Cygwin on a laptop running Windows 10.ġ.