How to run and compile c with command prompt windows 8 - c

I am learning how to code in my college classes and work mainly with my hp envy running windows 8. I have not been able to find a program or extension that allows me to run and compile c code on my computer through the command prompt. Does anybody have suggestions? I have looked on my own and have had to remove several viruses from my computer because of this. I also have a mac if there is an option for that. Would it be best if I just shelled out for a linux based laptop? Thanks for your replies.

You can install visual studio express and use it for development
It is free
http://www.visualstudio.com/en-us/products/visual-studio-express-vs.aspx

Related

Virtual machine with VirtualBox find and execute local C file

I am learning C at the moment and my university requires me to use a Virtual Maschine running Linux using VirtualBox. If I write a c program in my compiler (Codeblocks) on my Windows operating system, I do not know how I could execute the written C file.
At this website: https://www.howtogeek.com/189974/how-to-share-your-computers-files-with-a-virtual-machine/ I have seen that this can be done by "Insert Guest Additions CD image" and then adjusting "shared folders" in the settings.
Would this be the right approach? Can you give some examples of how I would then execute the code in the VM?
Thank you for your help!
First you need to compile it inside linux using clang or gcc because the windows version of codeblocks will compile it for windows, then the simplest solution is just cooy/paste the source code on linux or doing shared folders it is simple you go to the virtual box setting and install virtualbox guest additions and also install it inside the virtual machine, but what i would do is just do the whole thing in linux :)
The link you give shows how to share files between your native OS and the virtual machine. This is a perfectly acceptable way to transfer a file which is already in Windows. However, it would be much simpler to create the file in the VM in the first place. I suggest you learn how to use vim or emacs to edit your code files in Linux.

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

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

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)

Compiling a GTK+ application for windows from linux

I'm new to linux and have been learning gtk+ the past couple of days, and was wondering how you would go about compiling an application to run on windows instead of linux (ubuntu). I found this while doing a quick search but my knowledge of linux is non-existent at the moment so not sure how to proceed with the tutorial. Are there any alternative methods to do this?.
I've only compiled on Windows and used Cygwin to test 'nix versions (before going right into a 'nix OS and compiling), but looks like this might get you started.
Compiling in other OS does not make sense while you can't disribute your binary without testing it on the target platform.
Then why not to compile on the same platform?

Resources