Guys... I need help with this damn compiler!

Well. I'm running Win10 so let's go:
I wanted to test some of my simple c language programs.
Installed mingw32 and downloaded gcc-compiler and it's library's.
The problem i'm running in, how tf do I execute it?

I mean, everything is okay but that crap gives me problems! I'm really lost so help would be appreaciated @_@

[I don't want to modify environement path for reasons, last time i tried that it didn't go well]
And before you get too excited: No, i'm not able to code shit in C. I'm just a small, starting user. I downloaded a book off internet which is very user friendly so far so...

Also, self-motivation is cool! I want to code at all cost.
  • Like
Reactions: 1 person

Comments

F
Can you rephrase that into something i would understand? D:
 
F
CMD afaik.
Powershell is not used at all.
 
C
If they are really simple programs that don't require any additional libraries, then you can just execute "gcc my_code.c -o my_output.exe" in CMD.
(If it says gcc isn't a recognized command, check that the bin folder in your mingw installation is in the PATH environment variable.)

If some of them do require libraries, obviously grab and install the libraries using Pacman first, and then when it comes to compiling, you can link in those neccessary libraries with something like "gcc my_code.c -o my_output.exe -lssl -lcrypto". (that was an example of linking openssl libraries)
 
  • Like
Reactions: 1 person
F
erm the fact itself is i don't know how to run it.
Excuse my super "noob" way of approaching this but i'm literally joel at this.
Should I cd... C://mingw/bin and execute compiler?
 
F
You mean, applying it to that path enviroment thingy? i guess.
alright hopefully my clumsy hands will not make a typo like last time
 
Compiling C/C++ in Windows is absolutely miserable. unless you use Visual shits, but that is even more miserable.
 
  • Like
Reactions: 1 person
F
Shadowfied still edgy? how cute.
 
F
@EthanAddict
I guess i'll setup a Linux VM or something. Also retarded =/= Clumsy. Get it right you biggot.
 
  • Like
Reactions: 1 person
F
@EthanAddict
Screw your freeBSD. I'd rather use Linux Mint.
 
I mean, trying to use GNU tools on Windows is shit, just use the fucking userland on the OS which was made on it
 

Blog entry information

Author
Felek666
Views
392
Comments
128
Last update

More entries in Personal Blogs

  • 4: Reddit
    Finally, number 4! Never thought this day would come, did you? Uhh...
  • books
    1. I am cool as hell, have one million dollars 2. I am banned from...
  • Syncthing is fun!
    Having been kinda active in an Android forum I quickly got sick about...
  • Feeling at home here
    Not much to say this time. I'm depressed. Like almost always. Trying to...
  • I'll start, rate mine 1-10
    It's a very mixed bag, some rock, some rap, some video game music, a...

Share this entry

General chit-chat
Help Users
  • No one is chatting at the moment.
    PandaPandel @ PandaPandel: im playing fortnite rn and just got rsn over by a car +1