#compiling error
46 messages · Page 1 of 1 (latest)
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 use !howto ask.
Describe your process, if you please.
What did you do from writing the code to you observing this message.
i clicked compile and run button
Did the compile process tell you that the build process completed successfully?
yes
So that means that there should now be a binary file (.exe) on your file system. Possibly in a subdirectory to your code. Possibly right among the code. It depends.
Can you find this binary?
If you are on anything other than Windows, then the extension will not be .exe of course.
i really don't know what is related to exe and my problem can u suggest another compiler out of dev c++
What is your operating system first of all?
windows
Do you use dev c++ in school / college / university?
Or are you a hobbyist / professional ?
i am beginner and new started to learnd software languages
But are you learning in context of an education?
Or are you self-teaching?
self-teaching
Then I would suggest you switch to Visual Studio Community Edition.
It's free, and I am 99% confident that you will love it.
thank u, actually dev++ looked like hard a bit to me i hope visual studio easier
Lots of people here can help you get off the ground with Visual Studio.
But there aren't a lot of us with experience in Dev C++.
are they different significantly
I suggest Visual Studio purely for the level of support you can get here on "Together C and C++".
I don't use it myself, but I do very much recommend it for people like you just starting out on writing C or C++ code.
i will download now, and the other question i am lookin for sources c language to learn from zero what would u suggest
We generally recommend a good book to learn the necessary fundamentals:
To actually write and run C code, you will need a compiler, editor, and debugger. We strongly recommend to start out using an IDE, which will provide all these tools for you:
- [Visual Studio](#1165492293810257920 message)
- CLion
The wise programmer is told about the debugger and uses it.
The average programmer is told about the debugger and avoids it.
The foolish programmer is told about the debugger and laughs at it.
thanks for your help
Come back here when you have VS installed and running.
I am sure you will have many more questions.
Word of advice:
Visual Studio will look daunting (scary).
It's not, really.
It's very versatile, and can do a lot of stuff.
You can learn this as you play and develop your skills but keep it very simple to begin with.
okey
@cinder axle Has your question been resolved? If so, type !solved :)
👆 don't do that, yet.
I'm in my last hour before I go home.
So I think I'll skip ahead a bit.
- When you launch Visual Studio, you will be presented with a dialog like this.
Keep in mind you will likely have this presented to you in your native tongue. So things will undoubtedly look a little different.
- Select "Empty Project"
Give it a name.
Remember the directory where you choose to have this project generated.
I suggest that - for now at least - you select to place solution and project in the same folder.
You now want to add a C source file to your project.
Here lies a wee problem.
Visual Studio can compile C projects, but outwardly it seems to only support C++ projects.
To get around that, use Windows Explorer to find the location of your project.
There, create a text file, but name it (for example) main.c
Explorer will warn and ask if you meant to choose a different extension for your "text file". Just answer "Yes".
- Add the empty file to your project
In Visual Studio you will notice this window, by default positioned on the right border of the program.
Right-click on "Source Files".
Select "Add".
Then select "Existing Item..."
That opens a file selection dialog.
Simply select that file you created ("main.c" as per my example).
The dialog now changes to this:
Double-click on the main.c.
This opens the file in the main editor window of Visual Studio.
Write your code in there.
Example:
#include <stdio.h>
int main()
{
puts("Hello, World!");
}
To build the code, press LCTRL+B
You'll see something appear along the bottom, like this:
To run the program, simply press F5.
DONE!
Just put your question in this thread.
Or back in #c-help-text .
You can DM me, but it's always better to have many people read your question instead of just one.
right