How can I run QCL (quantum programming language) on Windows? - quantum-computing

I'm sure someone must have done this before. I've tried compiling QCL for Cygwin but it just doesn't work. If someone has already managed to compile it for Cygwin can you please post a copy? Or alternatively suggest an easier way to run it in Windows.

Today I compiled for windows the latest (0.6.3) version of qcl. Remove set LANG=ru_RU.CP866 line from qcl-win.bat if you don't need to configure locale.
https://dl.dropboxusercontent.com/u/70139310/qcl-0.6.3.zip

Related

Compile and execute C program in Python using Windows

I need to iteratively edit, recompile and run a C program called sum_subgiants.c through Python (using Spyder on Windows). I am using a python code that has previously worked on my colleague's Mac. I am a novice with python and have no experience with C.
There is a makefile and all relevant files stored in the same folder as sum_subgiants.c. I have tried
subprocess.run('make sum_subgiants', shell=True)
to compile and then
subprocess.call('sum_subgiants', stdin=input_file, stdout=output_fh, shell=True)
These commands do not appear to do anything. Any help in terms I can understand would be much appreciated.
I notice that there is no make command on Windows, which explains the error. Is there an alternative command that would work on Windows?
Should I expect subprocess.call to run easily after I have sorted out the make?
Since you are on Windows, everything is difficult.
You need to install a C compiler on the Windows machine.
You need to install make on the Windows machine.
Depending on what is done in the makefile, you might need to install other tools as well.
You could consider installing MSYS2 and MinGW, which provide a Unix-like environment for Windows.
But I would question the whole procedure: Why is it necessary to dynamically build a C program at run time? This is going to be so complicated that looking for an alternative solution might be preferable.

Including basics library of C (unistd.h) on window

I've been programming at my school on a Mac for one month. We did C programming on an UNIX shell.
Now i'm back at home and I use my own PC that is on window 10. I have tried to make a similar set up, but i don't know much about all that. I installed git and bash, this made it like a UNIX shell. Also I have installed the gcc compiler.
So, now that i'm making a basic program, it should be working but when I make the include <unistd.h>, the shell can't find it.
I know my question is probably silly but I really couldn't find how to solve the problem. I downloaded the unistd.h file.
I also found this http://processors.wiki.ti.com/index.php/Compiler/diagnostic_messages/5
It explain that i should be putting the .h folder in some kind of defined path, but I don't know how to do that.
Does anyone know how I can fix this?
If you installed gcc as part of mingw or something similar, it should have included a unistd.h. Just having the gcc compiler is not likely to get you very far.
You probably want to start over and install something different than you did (mingw or cygwin or just set up a vm as suggested) that provides a more complete environment.

Compiling with Make command in any IDE

I spent ages searching and couldn't find anything that helped.
I'm doing a project in college where I have to create a virtual disk and file system using C. Most of the code was given already and we need to compile using a Makefile. Using the standard "Build" command fails to compile the software. I've never used Makefiles before and I don't really know how they work but there were some basic instructions given on how to compile with it. I tested it out in Terminal and if I go to the file location and type make it compiles fine and I can run the binary executable file that is created. The problem is that doing this is not only tedious but it doesn't let me use the debugger built in to Xcode.
Is there any way that I can set Xcode to run this make command instead of just building the way it does now? I also installed Eclipse and can code passably well in that if anyone can tell me how to do something similar there.
EDIT: I'm pretty much willing to use any software at this point. I have spent days trying to find a way compile inside an IDE with a Makefile. I also have Visual Studio on a Windows computer and have been trying to figure out how to compile with that, also to no avail. If anyone could please help me I would be so grateful.

Installing PortAudio for use with Cygwin on Windows 7

I'm trying to get PortAudio to work on my computer. I've been using Cygwin and gcc to make applications in C, but I'm completely clueless as to how I might go about getting PortAudio to compile and work on my system.
I've found info on PortAudio's website for getting it to work with Microsoft Visual Studio, but I'm not using that IDE (or any for that matter. Just been working in Notepad++ and running things from the command line).
If anyone has any info for how I might get this to work, or where I might look for an answer, it would be much appreciated!
Thanks!
-Justin
You should be able to follow the PortAudio instructions for Linux.
As it says in the instructions, "You might need to use yum, or some other package manager, instead of apt-get on your machine". In the case of Cygwin, that probably means using the Cygwin setup.exe program.

Compiling languages on work computer (windows)

so at work I'd like to write a program to move my cursor (like a macro), but I a) don't know what compilers these machines have, and b) don't think I can install a compiler.
So the question is, is there any standalone compilers that exist? Is there a way to check what compilers the machine currently has? Or, can I write a batch program that will move & click the cursor for me?
The machine I'm using is Windows Vista, Business Enterprise.
Oh, and I don't really care which language I have to code in, if you have a compiler suggestion.
Thanks!
EDIT: The problem is, I can't download or install anything on this computer. My only hope would be a webpage...
Get Visual Studio Express, it'll let you write programs for Windows and it's free unless you intend to sell your program
Link to VS
If you're looking to write macros for Windows, you might want to check out PowerShell. I don't think it's included with Windows Vista, but it's a free download from Microsoft. If you can't do it with PowerShell, try AutoIT.
I found the answer to my own question:
Here's a link to an online code compiler:
http://compilr.com/
It acn compile the code on their servers, and you can download a file to execute on your computer (in my case, via the java command)

Resources