Anonymous
There is
Show me exact C++ files in the C compiler
Anonymous
If I compile a C program with a C compiler, I have a C program
Anonymous
But gcc is a C++ program
What do you mean? Try to do objdump on gcc
Janko Ⓥ
Show me exact C++ files in the C compiler
May I send you a screenshot in a private message?
Anonymous
May I send you a screenshot in a private message?
Two C++ files don't make gcc a C++ program
Anonymous
May I send you a screenshot in a private message?
You can send a link to the GitHub mirror here
Anonymous
Inspect the executable and see which libraries are called
Janko Ⓥ
Ok, give me a sec
Anonymous
They do...
A test suit in C++ and a library in C++ have C++ components. This doesn't render the entire program a C++ project
Ilya
I think the happy medium is that gcc both C and C++ program, heh
Anonymous
There is interoperability. By this logic then gcc is an assembly ,perl, go, Fortran program
Ilya
That is, yes
Janko Ⓥ
You can send a link to the GitHub mirror here
The files are: c-decl.c c-parser.c c-parser.h c-tree.h c-typeck.c You can find them in the gcc/gcc/c directory
Janko Ⓥ
These are c files
The file extension means nothing...
Ilya
Janko is right
Janko Ⓥ
Just grep for "c++" in the c directory
Ilya
you can use different extensions
Anonymous
So one of the biggest project in the world is using extensions in a random way?
Ilya
why not?
Anonymous
Grep "C++" is a C++ indicator?
Janko Ⓥ
So one of the biggest project in the world is using extensions in a random way?
Not random, certainly. I'm not a gcc contributor, you'll have to ask them
Janko Ⓥ
Ilya
So one of the biggest project in the world is using extensions in a random way?
You can read '.c' as 'code' and '.h' as 'header'
Anonymous
Where is C++ in those files?
Anonymous
Janko Ⓥ
Where is C++ in those files?
Grep for it, search for it, I'm not going to audit the entirety of the C compiler for you, sorry. I can send you a screenshot of my grep if you don't want to do it yourself
Janko Ⓥ
But that's not the entirety
Janko Ⓥ
It helps, comments mostly, are located there.
Janko Ⓥ
I've provided more proof than you have, I think
Anonymous
I've provided more proof than you have, I think
Can you paste a single line of C++ in those files?
Anonymous
"grep programming_language" is a method to find code in a specific language? Have you seen the GitHub page with code percentage?
Anonymous
Let's open one of your files
Anonymous
https://github.com/gcc-mirror/gcc/blob/master/gcc/c/c-decl.c There is not a single line of C++ code
Janko Ⓥ
I'm also confused by this somewhat
Janko Ⓥ
What does GitHub use to count? Which method?
Appears to use the linguist program https://github.com/github/linguist/
Anonymous
What do you mean by "C++" program. We might be talking about different things unknowingly
Anonymous
There are parts in C++ but I'm not sure that this qualify gcc as a C++ program. From what I know, there are parts in both languages. If I recall correctly the makefile doesn't build it as a full C++ program. If I'm wrong I would be happy to be corrected
Janko Ⓥ
What do you mean by "C++" program. We might be talking about different things unknowingly
It's difficult for me to gather how the components are used, but the front-end being written in C++ and the C compiler relying on C++ would to me mean that it's a C++ program, since it's not optional. https://gcc.gnu.org/legacy-ml/gcc/2012-08/msg00015.html This is the original post stating the switch. This is what I found in the Makefile for now: $ grep "g++" Makefile.in CXX="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xg++$(exeext) \ $ grep "g++" Makefile.tpl CXX="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xg++$(exeext) \
Janko Ⓥ
Thank you too, I learn something as well
Mar!o
https://www.youtube.com/watch?v=Fgb8l2Ve8vo
Alpha Max
hi
Merve
Hi all, Can you help me about scrollbars direction?
Merve
ı want to change scrollbars direction. ı want to make downwards
Haryy
👍👍👍
сумбула
#include <fstream> #include <iostream> using namespace std; int main() { char site[20],ch; ifstream in; ofstream out; cout<<"Enter the Name of the Site to Block \n"; cin>>site; out.open("C:/Windows/System32/drivers/etc/hosts",ios::app); if(!out) cout<<"Either File Not Found or Permission Denied, Run as Admin the EXE of the Program"; else out<<"127.0.0.1"<<"\t"<<site; out.close(); return 0; } Hey guys, here is my code for blocking some unwanted websites. How can I change my code that it should shut down my laptop whenever I type URL of those websites to any browser
Vitalii
How to use the print () function, which is in public, from the base class, if I use protected inheritance for a derived class that also contains an overridden print () function? class Ticket { protected: . . . public: . . . string print(); }; class Lux : protected Ticket { protected: . . . public: . . . string print(); };
Vitalii
I thought I could write using Ticket::print But I have the same name of the function in derived class, so I guess It doesn't work like this (
Vitalii
You can read about virtual functions and 'override' keyword
Can I do it in other ways? Because for this program I have not to use it (
Ilya
I think no
Ilya
You can create free function print() and pass it like a callback to another function but I dont think it is a good idea
Ilya
You will need to dive into virtual functions and 'override' mechanism because soon or late you will face the rhombus problem
M.CS
hello everyone who know c# language ?
4745H
Hello everyone...how can i make two processes communicate with each other(one of them send some alive data and the other one get response or smt like that...) in c/c++?(Is there any good course for this type of programms in c/c++?)
Janko Ⓥ
It was fun in here, but I really have to leave. Too many PM requests and they're all from people who barely speak a word of English.
Janko Ⓥ
I was just invited to join Islam or something
Janko Ⓥ
I can recommend blocking them
It's tedious to have a request every day and I don't have much use from this group
Ilya
I have the same problem
Ilya
Does anyone know chat for professional CPP devs? Send me in PM pls
Hariyana Grande
😂 lol then why the heck they trouble u
Nameful
😂 lol then why the heck they trouble u
These people like to assume that you're a woman
Nameful
For some reason
Hariyana Grande
yes that's what i meant
Hariyana Grande
It's tedious to have a request every day and I don't have much use from this group
then may be its best for you to leave i guess but its upto u.
0xFF
Are indians here?