I am newly learning c++. I am using the Linux ubuntu operating system and a sciTE text editor. Do you know how to create a file on scite that I will be able to compile and then create an archive on terminal? also how do I create a 'make file. cpp'. Any help will be greatly appreciated. Thanks! :)
Related Questions in C++
- How to immediately apply DISPLAYCONFIG_SCALING display scaling mode with SetDisplayConfig and DISPLAYCONFIG_PATH_TARGET_INFO
- Why can't I use templates members in its specialization?
- How to fix "Access violation executing location" when using GLFW and GLAD
- Dynamic array of structures in C++/ cannot fill a dynamic array of doubles in structure from dynamic array of structures
- How do I apply the interface concept with the base-class in design?
- File refuses to compile std::erase() even if using -std=g++23
- How can I do a successful map when the number of elements to be mapped is not consistent in Thrust C++
- Can std::bit_cast be applied to an empty object?
- Unexpected inter-thread happens-before relationships from relaxed memory ordering
- How i can move element of dynamic vector in argument of function push_back for dynamic vector
- Brick Breaker Ball Bounce
- Thread-safe lock-free min where both operands can change c++
- Watchdog Timer Reset on ESP32 using Webservers
- How to solve compiler error: no matching function for call to 'dmhFS::dmhFS()' in my case?
- Conda CMAKE CXX Compiler error while compiling Pytorch
Related Questions in LINUX
- Is there some way to use printf to print a horizontal list of decrementing hex digits in NASM assembly on Linux
- Why does Hugo generate different taxonomy-related HTML on different OS's?
- Writes in io_uring do not advance the file offset
- Why `set -o pipefail` gives different output even though the pipe is not failing
- what really controls the permissions: UID or eUID?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Docker container unable to make HTTPS requests to external API
- Whow to use callback_query_handler in Python 3.10
- Create kea runtime directory at startup in Yocto image
- Problem on CPU scheduling algorithms in OS
- How to copy files into the singularity sandbox?
- Android kernel error: undefined reference to `get_hw_version_platform'
- Is there a need for BPF Linux namespace?
- Error when trying to execute a binary compiled in a Kali Linux machine on an Ubuntu system
- Issue with launching application after updating ElectronJs to version 28.0.0 on Windows and Linux
Related Questions in UBUNTU
- Error: local variable 'bramka' referenced before assignment
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Can't connect to local postgresql server from my docker container
- How to install libfuse2 on Ubuntu 22.04
- Error when trying to execute a binary compiled in a Kali Linux machine on an Ubuntu system
- Can anyoone help me with this problem while trying to install hadoop on ubuntu?
- Ubuntu wsl2 in windows, my /etc/fonts/fonts.conf keeps reloading
- psutil.sensors.temperatures() only delivers {}
- Issue with [proxy_fcgi:error] [pid 1539011] (70007)The timeout specified has expired
- Viber is not working on Ubuntu 22.04 Jammy
- why is ubuntu 18.4 still showing as a linux subsystem when i have uninstalled it?
- Why when I want to open a folder from Visual Studio Code does the screen go crazy?
- What is this error when trying to update Ubuntu?
- Angular on IONOS(?) throws an error with npm
- Tensorflow can't find TensoRT
Related Questions in MAKEFILE
- How to refer to the filepath of test data in test sourcecode?
- Can't connect to postgres with Adminer using Docker on MacOS
- Flint installation error: make: *** [build/generic_files/memory_manager.lo] Error 1
- How to compile the Linux kernel with -O0 for more detailed debug?
- Makefile:7: *** missing separator. Stop (HELP NEEDED)
- Trying to compile GCC returns a bunch of errors
- cmake and g++ cross compilation looking for library in host sysroot path instead of target sysroot
- Turn a makefile into a list of build commands
- make test error with Golang: make: *** [Makefile:47: manifests] Error 126
- Passing optional arguments from makefile to shell script
- GNU make file pairwise combinations of files in folder
- make Error 2, The system cannot find the file specified
- Why do I get a make: *** No target specified and no makefile error?
- why does Make give error while compiling?
- CMake always rebuilding included file even if it didn't change
Related Questions in SCITE
- Scite sends all characters including the characters I deleted
- How do I do a regex OR in Scite 1.6?
- Cannot write files from Lua in Scite on Windows 10?
- SciTE can not find user defined function. The editor executes "/bin/sh" for some reason
- Red python script print() output in SciTE output panel. A feature or a bug?
- how to change background color in scite (scintilla) editor
- Unable to execute AutoIt script in Visual Studio Code
- Install SciTe editor on Termux
- How to highlight all occurrences of selected word in scintilla/scite?
- Using RegExp to find and remove Whitespaces from Phonenumbers in CSV (with Scite if possible)
- change SciTE Compile command
- how do I create files on sciTE for c++?
- How can I use the hat symbol to negate a character which is at the start of my regex in Scite?
- How to print ダイスキ using Python 3.7 in Scite?
- Opening a Python written .txt file in SciTE vs Notepad
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
You can use any text editor to write C++ source code. There is nothing very editor-specific about it. The file itself should be assigned a name that your compiler will recognize as designating a C++ source file. Compilers generally look at the filename extension for that purpose, and ".cpp" is a very common pattern recognized as indicating C++ source. It looks like that's what you're intended to use, so when you save the file just be sure to give it a name that ends in .cpp.
In order to successfully compile, you of course need to write valid C++ source code in the file, and in order to compile it to a program (I assume that's what you meant by "archive") it must contain a valid
main()function.I think you've gotten your instructions confused. Perhaps the instruction is just meant to convey what I already said about giving your source file a name ending in ".cpp". Alternatively, you may have been asked to create a makefile, which is input to the build tool "
make", that could be used to build the program instead of running the compiler directly. You may ask specific questions aboutmakehere, but we are not in the business of writing full tutorials. The first thing you should do if you need instructions aboutmakewould be to consult your course materials and lecture notes, and / or ask your instructor.On the third hand,
makedoesn't even need a makefile in some simple cases. It may be that you are instructed to build the program without a makefile. If you have named the source "prog.cpp" and it contains valid C++ source for a complete program, then you should be able to build that program via the command "make prog". In that case, the resulting program will be named "prog".