Why is CodeBlocks not working properly? - codeblocks

here, i cant open the main.c file which is supposed to be under the title print.
where did it disappear?

Related

Configure make command for fortran in Geany

sorry if it's a simple question, I'm a bit of a rookie and couldn't find the answer online.
I have a program in Fortran with a makefile that I need to run. I am able to run it through the terminal, by using mingw32-make command, but I'd like to do be able to do it through Geany as well.
When I just try to do it by pressing Make in Geany, nothing happens and a message at the bottom of the screen says Process failed (The system cannot find the file specified). From what I gather, I need to configure a new make command in Geany through Set build commands and that might solve the problem, but this is where I am lost. What exactly do I need to type in there? Do I need to direct it to mingw32-make? How do I do that?
This is what my Set Build commands window looks like now.
Thanks!
Two options
In your fortran bin directory copy mingw32_make.exe to make.exe.
In geany, change make to mingw32_make
The make in geany should then work.

I am getting Error Code 2 when compiling C Program using Notepad++

Using instructions I found on stackoverflow I am trying to use NppExec to compile my C files, run them, and show their output, all within Notepad++.
However when I try to use it I get this error message (see below) in Console.
Does anyone know how I fix this?
TIA
Roger
These are the instructions I followed:
I am using MinGW compiler.
Go to plugins->NppExec->Execute
paste this into there
NPP_SAVE
CD $(CURRENT_DIRECTORY)
C:\MinGW32\bin\gcc.exe -g "$(FILE_NAME)"
a
(Remember to give above four lines separate lines.)
Now, give name, save and ok.
Restart Npp.
Go to plugins->NppExec->Advanced options.
Menu Item->Item Name (I have C compiler)
Associated Script-> from combo box select the above name of script.
Click on Add/modify and Ok.
Now assign shortcut key as given in first answer.
Current directory: C:\Users\Roger\Documents\Personal\UNB\F19\CS2263\Programs
C:\MinGW32\bin\gcc.exe -g "playStack.c"
; about to start a child process: "C:\MinGW32\bin\gcc.exe -g "playStack.c""
CreateProcess() failed with error code 2:
The system cannot find the file specified.
a
; about to start a child process: "a"
CreateProcess() failed with error code 2:
The system cannot find the file specified.

I successfully used the curl code to download text into visual studio code. Is there a way to redirect this and save it as a text file?

After using the code curl -http://www.gutenberg.org/files/1041/1041.txt
the text appeared in terminal. How do I transfer that text to a txt file in a subfolder?
I've tried using echo, but I can figure out how to get the whole text. I'm new to programming, so this is the only thing I know how to do so far.
You should try going to the subfolder where you want the file stored and then run -curl http://www.gutenberg.org/files/1041/1041.txt > output_filename.out
The > symbol directs the output to wherever the filename after the > symbol is.

Compiling pascal programs with FPC and then running them, all in Notepad++

Here's my problem
I've been searching for a while now on how to compile a pascal program in notepad, then immediately running it after a successful compile.
So far, I've managed just to find a compile script for NppExec, which goes like this :
PATH_TO_FPC\ppc386.exe "$(FULL_CURRENT_PATH)"
I've tried combining this script with another script for compiling and running C/C++ programs in notepad++
cmd /K DPATH-TO-FPC\ppc386.exe
"$(FULL_CURRENT_PATH)" -o
"$(CURRENT_DIRECTORY)\$(NAME_PART).exe"
but I always get a message, when I try to run it.
"Error: Illegal parameter: -o"
So I was wondering if anyone can help me with this, or post a complete solution if they know on a topic.
Thank You in advance.
Try to append -o with your output executable file. Which will be like this:
-o"$(CURRENT_DIRECTORY)\$(NAME_PART).exe"

How to show linker command line in Build output, in Visual Studio?

This question is related to How to show command line build options in Visual C++ 2008
But in addition to showing the Compiler command line, I'd like to see the linker command line.
I have "unset" the /nologo option in the linker options.
But I still don't get the command line in the output window. What do I need to do? Is this possible?
Did you try viewing the build log? This is probably the closest to what you want to see. You view the output window, and where it says "Build log was saved at "path..."", ctrl-click on "path" and it will open the build log.
I often get burned by the wrong configuration being selected when I change things like suppress startup banner.
Did you try setting the selection when all configurations and platforms were selected?

Resources