Push_swap | School 42 project // Sorting algorithm using two stacks | Learning library
kandi X-RAY | Push_swap Summary
kandi X-RAY | Push_swap Summary
Push_swap is a School 42 project. The purpose of this project is to create sorting algorithm. push_swap.en.pdf is the task file. You can check wiki-page if you want to read description of created algorithm.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Push_swap
Push_swap Key Features
Push_swap Examples and Code Snippets
Community Discussions
Trending Discussions on Push_swap
QUESTION
I recently moved from working in the terminal to VScode and am needing to generate debugging information to use with the debugger in vscode.
My makefile is:
...ANSWER
Answered 2022-Jan-26 at 23:05A good proposal is to remove the @
s in front of the command names to see what commands make
is executing.... To make a program debuggable, you need to check that all the compilation steps are done using the -g
flag and that the linking step has also included the -g
flag. Also a good option is to specify no optimization so you will not get to problems with breakpoints you cannot fix because the compiler has eliminated or changed the final code, and has broken the correspondence between source lines and points in the code.
If you take off all the @
s there, you will see the commands as make
is executing them, think you don't see now. I think there's a command (berkeley make has it) to make make
to print the commands even though the @
s remain in place.
By the way, as you are telling you are using vscode
it should be fine if you execute make
on the command line alone, to see the output of the commands, and try to see if it is some problem with make or with vscode itself.
As you have not provided your complete project, I'm sorry to say that I can only test it with dumb/fake files and no program can be made to test it with gdb.
I guess that the problem is that you have put your project sources in a different directory than where the program is built, and the sources cannot be found by gdb and so, no source debugging can be done because gdb cannot find the source files. Gdb has some way to specify the path to the source files... You should look at gdb documentation.
QUESTION
I am trying to compile a simple C function to handle two stacks of ints and sorting them with specific rules. I had no problem compiling earlier but I can't anymore. and receive this error message :
...ANSWER
Answered 2021-Jun-04 at 07:33The problem is that $(SRC:.c =.o)
doesn't work because of that space (there are no SRC
names ending with ".c "
(including the last space).
It should be $(SRC:.c=.o)
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Push_swap
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page