#How do i run a C program on Code::Blocks

111 messages · Page 1 of 1 (latest)

twin plinth
#

My Visual Studio Code isn't working and i want to run my C program on Code::blocks instead but i don't know how to.

rugged dustBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

#

@twin plinth

Screenshots!

Your message appears to contain screenshots but no code. Please send code and error messages in text instead of screenshots if applicable!

twin plinth
pulsar warren
#

You need to create a codeblocks project

twin plinth
#

but i did

#

i created that program on C

#

using code::blocks

#

but i can't run it on C for some reason it doesn't show the option

#

i don't want my VSC to be my main code runner

#

@pulsar warren

twin plinth
twin plinth
#

yeah but like i just can't open it on Code::blocks. i want to edit my program on Code::blocks

#

ah well

#

thought it was an easy solution

#

thanks anyways

pulsar warren
#

You need to create a codeblocks project and add files to it

twin plinth
#

ooh

pulsar warren
#

vsc and cb are different editors. They don't share the same environment file format

#

Follow the tutorial I sent

twin plinth
#

okay thanks

rugged dustBOT
#

@twin plinth Has your question been resolved? If so, run !solved :)

grim forge
#

try programming without an IDE

pulsar warren
grim forge
#

in my experience it is 100x easier to do things in terminal and not use IDE

#

especially for beginners who have a 1 file program

#

literally all they gotta do is invoke the compiler on their program then run the output

pulsar warren
#

Easier than pressing a single button? Right

hexed moon
#

running C/C++ in say visual studio to be 1000x easier

#

also autocomplete, itellisense, debugging options etc

#

beginners should be using a debugger from moment 1

#

the moment they wrote hello world they should be getting introduced to it

grim forge
#

well first of all I never used a debugger for the first 5 years of programming

hexed moon
grim forge
#

and second of all beginners when they use an IDE don't learn what's going on

grim forge
#

it is true

#

look at the questions on here

#

when people use an IDE they are stupid af

hexed moon
#

false

grim forge
#

they don't understand what's happening

hexed moon
#

and that isn't inherit to using an IDE

#

that is bad tutelage

grim forge
#

it is for a beginner

#

a beginner can just easily learn by not using an IDE

#

it's easiest by far

#

there is absolutely nothing difficult about using a terminal

#

especially in a unix like environment

#

if we're on windows it's a different story maybe

hexed moon
#

what most student don't run ;)

grim forge
#

windows is absolutely garbage

hexed moon
#

false

grim forge
#

but

#

you can get wsl easily on windows

hexed moon
#

but why would I got with WSL when I can just get visual studio and have a much easier time with learning crap that actually matters

grim forge
#

what do you mean "crap that actually matters"

hexed moon
#

learning c++

#

you don't need to manually compile on a commandline to understand roughly what is going on what is fine

grim forge
#

??? you think knowing how to build a program is not part of learning the language?

#

all I'm saying is it's easy

#

literally all you gotta do is this

#

gcc program.c

#

./a.out

#

boom done

#

literally way easier than installing and setting up ide

hexed moon
#

or hey use visual studio and press play

grim forge
#

don't understand how it's even debatable

#

no I'm done with this

#

all you ide users are trolls

#

it's actually ridiculous

hexed moon
#

no, I just highly disagree with your point

#

calling people trolls cause they disagree with you is just a bad case lol

grim forge
#

because you're just so wrong

#

you can't debate this

#

you're leaving out all of the details

#

you don't just have an IDE installed and set up

#

that's the problem part

hexed moon
#

I mean basically

grim forge
#

no

#

you don't

#

look at this question here

#

on this forum were arguing on

#

the person is clueless

#

if someone told them just open a terminal and type two commands they can easily do that

hexed moon
#

for real though, on VS hey I want to do C/C++ development box ticked, make a C++ project and done

#

problem solved

hexed moon
grim forge
#

like I said, wsl

#

wsl --install
nano prog.c
type your program
gcc prog.c
./a.out

#

segmentation fault

#

repeat

hexed moon
#

oh hey I am using an IDE, it shows me exactly where the segmentation fault occurs, callstack, variable inspection and more

#

ohno

#

if only I coded via the terminal

#

I would be footgunning myself right now

grim forge
#

sorry, I made a mistake. people who use the terminal never get segmentation faults

hexed moon
#

ofc, they do. but at that point you are going to be needing other tools to actually help debugging it

hexed moon
#

what is defeating your entire point

grim forge
#

can you not tell it is a joke

#

i don't care about this discussion anymore

#

don't ping me again

#

anyone

hardy nexus
rugged dustBOT
#

This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.