So, essentially, I am trying to make a simple program that prints "Hello, World!" to the output, but it does literally nothing, no errors or anything.
This is my code:
#include <stdio.h>
int main() {
printf("Hello, World!");
return 0;
}
And this is the command I use to run it;
gcc runtime.c
Also, the gcc -v
command.
Using built-in specs.
COLLECT_GCC=C:\MinGW\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/8.2.0/lto-wrapper.exe
Target: mingw32
Configured with: ../src/gcc-8.2.0/configure --build=x86_64-pc-linux-gnu --host=mingw32 --target=mingw32 --prefix=/mingw --disable-win32-registry --with-arch=i586 --with-tune=generic --enable-languages=c,c++,objc,obj-c++,fortran,ada --with-pkgversion='MinGW.org GCC-8.2.0-3' --with-gmp=/mingw --with-mpfr=/mingw --with-mpc=/mingw --enable-static --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --with-libiconv-prefix=/mingw --with-libintl-prefix=/mingw --enable-libstdcxx-debug --with-isl=/mingw --enable-libgomp --disable-libvtv --enable-nls --disable-build-format-warnings
Thread model: win32
gcc version 8.2.0 (MinGW.org GCC-8.2.0-3)
It should be printing out "Hello, World", but this is all it does:
PS C:\Users\myirlname\Coding\Lunar Language(c)> gcc runtime.c
PS C:\Users\myirlname\Coding\Lunar Language(c)>
If anyone can help, that would mean a lot to me, thanks!