Madhurendra, this five minute video saved me hours of frustration. I am currently switching from Windows to Mac as a student and needed to figure out a simple way to finish C assignments, and this video made it possible. Thank you, and keep it up!
Brooooo you saved meeee…….. i bought a macbook air M1 but from this year at school we started using c/c++ and i was impossibilated to download it on mac you saved me with this video bcz i was not happy of mac but now i am happy.
Hi Anmol Sidhu, Glad to hear that this helped you. I myself had faced similar issues when I started using a Mac for the first time & then almost 2 years later, I discovered that it could be done using Xcode 😂. Happy Programming!
this is extremaly usefull ..I'm just starting out on C and programming all over. I've been using online C compilers becasue it seemed intimidating to use an IDE like this. But now after watching this video I can use Xcode with much ease and confidence. Thank you so much for sharing your knowledge.
this was alot helpful man !! i was struggling from last 1 hour on how to add other c program file in the same folder and not get any error . THANKS ALOT
I have been regretting of why I bought mac book pro, because I can't run c programming in it and it is my first language in university, but now you've really helped me a lot thank you so much
Thanks bro sab log vs code mein c kaise install kare wala video bana rhe and they are so confusing. But here you comes as a thor 🐱 who saves from by giving me new term xcode . All thanks to you!!!!!👍 Keep up the good work
@@Jnoel608 Will try to bring up a video on VScode soon. I think it is a good editor, you can use it for almost any language with the help of extensions in the VS Code store. Basically for me its my like my goto all in one editor for many languages like Java, Python, Web Dev using different frameworks like Django & MEAN stack, editing xml files, json files, terraform scripts, helm charts, comparing two files and many more such things...
@@madhurendratripathy sir pls make a video on vs code on macbook m1. There are so many users who are confused for installation vs code and its libraries for all languages including me .
Omg 😭😭😭 thank you so much... You are the answer to my prayer... I’ve been looking for a solution how will I make code in my mac, because codeblocks really don’t work and don’t run even the hello world program 😭 Continue making videos... 🙏🏻 May God Bless you!
Hi 20DPCO200_M. Sameem, This is how you can do it in the easiest way : 1. Install HomeBrew using command given below, by running it in the terminal : /bin/bash -c "$(curl -fsSL raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" If you need a video guide to installing HomeBrew you can watch my video : ruclips.net/video/i0DFPySAMTA/видео.html from the timestamp : 2:45 to 4:13 2. After successfully installing homebrew, run the command mentioned below in terminal : brew install gcc Now sit back & relax and let HomeBrew install gcc for you. It is smart enough to detect your machine as an Apple Silicon based machine & install gcc for Apple Silicon.
hey there. I am trying to compile and run but it shows only grey in console after I press command + r. also after I pre command + r for a second an text appears on console saying "waiting to attach" and after only grey.
Hello i run a c program in xcode its build successfull, but its also shows that “could not launch (programs name)” LLDB provided no error strings. When i tried my cose in online compiler its totally works. Do you know how to solved this?? 🙏thx
Yes it is definitely capable for almost all of the tasks you would do in your college life, especially if you are specifically concerned about C, don't worry it will easily handle it.
Hi Mr Taranveer, If you meant to ask how you can update Xcode on your Mac, you can go to AppStore and search for Xcode there, if there is an update available for your machine, you should see an update button, click on that & you should be good to go. Note that Xcode is pretty huge in size and hence updating it might take some time based n your internet connection speed.
Great Video, straight to the main point. Can I add more than one file and execute it? When I tried, I am getting a "build failed" message. What might be causing this ?
Hi Mark Sardar, I have demonstrated how we can write different individual programs under the same Xcode project (parent folder) but under different individual program directories from 3:54 ( ruclips.net/video/_cDXKReugEU/видео.html ) in my video, if you meant that you want to have all the programs/code files under one directory, to my understanding that is not possible in Xcode because, Xcode uses something called as 'target' and one target cannot have multiple files with main( ) function mapped to it, if we try to do run a program with multiple main( ) functions it throws build failed error with a message stating "duplicate symbol '_main". If you wish to have multiple program file in same directory, I would suggest you to use some other IDE like VS code or Atom. I have already made a video on how to use Atom on macOS(ruclips.net/video/i0DFPySAMTA/видео.html) & will try to make a video on VS Code, soon.
@@madhurendratripathy Thank you for taking your time and reply. Yeap, I was trying to put multiple MAIN() files under the same folder and it doesn't work, since you already know it won't work, that makes sense. I have watched your Atom video and it was GREAT ! I also have tried VSCODE; however, I think it may have some glitch cuz when I ran multiple lines for code, VS code just says "running" without any output on the console. The exact same code works on xCode and CodeRunner perfectly fine. My only complaints about the xCode is, it's a HUGE file and given the HDD of a Macbook, it's just too much :-( Great Videos and keep up the good work :)
@@marksardar1890 Can't agree more about the size of Xcode, but the fact is that it is not made for C & C++ Command-line tools development, instead it is built for building apps for all the Apple Eco System of products. I even made fun of Xcode's huge size in my Atom on macOS vwelldevelopment
@@madhurendratripathy yeap, I noticed that on your Atom video. My Macbook in only 250GB, so that size of xCode, which is 20+ GB is a dealbreaker for me. Also, since Macbook HDD is NOT possible to upgrade, I try my best to avoid any large files/programs. I have purchased CodeRunner, which can run C/C++ and many other codes. I wasn't aware of Atoms capability but I will follow your video and try to make it work. I appreciate your video, it was helpful for me.
Xcode comes bundled with Xcode-command line tools which includes Clang compiler. Clang is a compiler for the C, C++, Objective-C, and Objective-C++ programming languages & is compatible with GCC, you can still opt to use GCC based compilers if you want to. You can learn more about Clang here : en.wikipedia.org/wiki/Clang If you chose to install GCC compiler, may be this guide can help you : www.cyberciti.biz/faq/howto-apple-mac-os-x-install-gcc-compiler/ Coming to code editor, its your choice, you can either use Xcode or get any other editor or you can pick both of these options. Editing/Writing code in Xcode is a good experience, especially for C & CPP, I think it is a really good editor and the debugging in Xcode is quite amazing. I have talked more about it in my Helpful features of Xcode video. But for working on other technologies like Python, Web Development & Shell Scripting etc.. I personally use VS Code as it provides a better experience. I would suggest that you try different editors and stick with the ones that you find the best for your use cases. Happy Coding :)
Hi Erik Anil, Yea, for basic programming, I think that M1 MacBook Air is a really good machine. I am personally now using a M1 MacBook Air but with 16GB of RAM/Unified Memory & it is serving me really well. Also not to confuse you, when I say basic programming it covers almost everything that a college student or an early professional might do. At-least on the programming side, unless you are planning to build Enterprise level applications, I personally don't think that you will need a M1 Pro or M1 Max machines. Also just a heads up, 8GB of RAM/Unified Memory should be sufficient for most of the tasks, but if you are planning to either have a few virtual machines running or planning to use your machine for a very long period of time (may be upwards of 4 years) then I would recommend getting the 16GB RAM/Unified Memory variant iff your budget allows it.
Hi Sayantan Chakraborty, Please see if any of the solutions mentioned on stackoverflow help you. stackoverflow.com/questions/26303782/duplicate-symbols-for-architecture-arm64
I'm doing as you explain, and indeed it does create the hello world project. However, when I try to build/run it, I get this pop-up dialog asking me to log into my keychain. How can I get rid of this? I don't (consciously) use keychain, and I actually don't want to use it. Why does this dialog keep popping up?
Hi Mario Louni, I have personally never faced this issue, do you also use Xcode for any sort of iOS / iPadOS / macOS development? Tried to look up your issue on the internet & looks like it is due to some developer certificate. Please checkout solutions from : stackoverflow.com/questions/10068566/xcode-keeps-asking-for-password-to-use-the-system-keychain they might be helpful.
@@madhurendratripathy Thank you for your quick reply. In the meantime I had found a solution to the problem. In the target settings, under "Signing Options" > "Code Signing Identity" I had selected (or, rather, it was the default) "Apple Development". When I changed that to "Sign to Run Locally", everything built and ran just fine. I'm wondering why the project creator chooses "Apple Development" as the default. Can you observe the same?
Hi Chirag Lodha, Can you check if any of the solutions provided here work for you : stackoverflow.com/questions/24298144/duplicate-symbols-for-architecture-x86-64-under-xcode
Hi Somu Datta, Dev C++ is indeed one of my favourite code editor on Windows, but unfortunately it was never designed for macOS ( Even not for x86 based intel Macs). Coming to TurboC3, I don't think that it will be ever available for M1 based Macs, because it is a legacy application now for x86 platform itself. TurboC3 is a 16-bit MS-DOS application which we could run on intel based Macs, but the user experience was very bad due to it being highly unresponsive, I have personally tried to run it on my MacBook Air 2017(Intel i5 5th Gen based machine) & I faced a ton of issues after which my hunt for a good code editor began. I have discussed this in my very first video on this channel ( ruclips.net/video/i0DFPySAMTA/видео.html ). I suggest that you try to find any other code editor which suits your needs. If you think that Xcode is too overkill which I definitely can understand, give Atom or VSCode a try, there are many other editors loved by the programming community like Sublime Text, TextMate, Brackets etc... & this is a never ending list... you can try these as well. If you want to try Atom, the video link that I have shared above will be helpful. Happy Programming :)
hello, i am trying to code on new m1 chip macbook pro when i code in xcode and click on run button to run my c++ file i am not getting the output nor any error its just blank
Hey Vishal, Check if Xcode on your machine is running via Rosetta2 or is it running natively, try changing the running mode to the other option and then check if your problem is resolved. Lastly if even this doesn’t work then reinstalling Xcode should fix it.
Hello Praveen, The header file "conio.h" is not a part of the standard C or C++ header files library, it was actually developed specifically for MS Dos compilers to perform I/O operations. In fact "conio.h" is not even defined in "POSIX". As "conio.h" is not included in your Mac's C & C++ compiler, it throws an error when you try to include it. Your Mac can still perform I/O operations with out this particular header file. Refer this Wikipedia link : en.wikipedia.org/wiki/Conio.h to learn more about the the same.
Hi 91dgross, You can follow this approach, but if you only need Xcode Command Line tools, you don't have to install the complete huge sized Xcode for it. You can simply install Xcode command line tools from Apple's Dev Website and its size will be around 500MB. Link to website : developer.apple.com/download/all/?q=Command%20Line%20Tools
I have issue the header file when I run my program. The header file gave me error message says file not found when I use extension file. Like #include Could you tell me if you know why and how to fix it?? Thanks
@@Henoktsegaye3874 Please check if you have selected the language properly when you were setting up your project. If you find out that you have configured the project correctly (i.e, if the language is configured to either C or C++) then please consider re-installing Xcode.
Hi William Castro, I think C/C++ are very good languages to begin with, I personally started learning C as a beginner & then learnt C++ (Typical college way of teaching/learning here in India). Yea, it is a fact that these languages are a little more "code writing" when compared to languages like Python, but the granular level controls these languages provide (For Ex : Micro managing the Memory) are worth learning. Also not to forget that these languages are very widely used even today for various big projects. In-fact I think learning other languages, after learning C/C++ is way easier when compared to going the other way around. Hope this helps.. Happy Coding.
i am a beginner, while searching about xcode, i came to know about "xcode command line tools "which are installed using terminal. what are they and do i need them ? thankyou.
Hi Sahil Rajput, A fresh, out of the box MacBook, does not come with software required for programming. When you install Xcode on your Mac, you get some of the requisites like C, C++ compilers etc.. But installing Xcode comes at a cost of huge download size and disk space consumption & if you are not going to be using Xcode for development of software/apps for apple systems (BTW Xcode is used for development of apps on macOS,iOS,iPadOS, watchOS) then downloading such a huge app like Xcode may be unnecessary, so in-order to get requisites like C,C++ compilers etc.. with out installing Xcode, you can just install the Xcode Command Line Tools(This can be downloaded from apple's developer website : developer.apple.com/download/all/) which is like 500MB in size & you should be good to go.
@@madhurendratripathy Thankyou for the info. i just needed a compiler for c/c++ and searched on the web and came to know about xcode. now that i have downloaded xcode, do i need to also instal xcode command line tools from terminal ?
@@sahilrajput6955 No, you don't have to install command line tools if you have installed Xcode. Those command line tools come bundled with Xcode itself.
Hey Omar Essam7859, Calling functions should not cause any issue, can you please share what is the error that you see along with the syntaxes that you have been using for function declaration & calling.
There was no error but it just stops working and whenever i create a function It just keeps running until the line where function is called in main and doesn’t give me any output just keeps running with no output
@@OmarEssam-qm9jz For the first run give it some time, like I had said in the video, the first run takes some time & after that runtimes are very low & good, its just that for the first run, it takes some time.
Helpful Features of Xcode : ruclips.net/video/ZrtCnWFaFqM/видео.html
no one on the internet did this type of video...i've been regretting for buying M1 MacBook pro as I can't run other c on it. thank you for helping!!
I am glad that you found it helpful.
Mee to bro...thats why I thanked him...
Madhurendra, this five minute video saved me hours of frustration. I am currently switching from Windows to Mac as a student and needed to figure out a simple way to finish C assignments, and this video made it possible. Thank you, and keep it up!
Brooooo you saved meeee…….. i bought a macbook air M1 but from this year at school we started using c/c++ and i was impossibilated to download it on mac you saved me with this video bcz i was not happy of mac but now i am happy.
Hi Anmol Sidhu,
Glad to hear that this helped you. I myself had faced similar issues when I started using a Mac for the first time & then almost 2 years later, I discovered that it could be done using Xcode 😂.
Happy Programming!
this is extremaly usefull ..I'm just starting out on C and programming all over. I've been using online C compilers becasue it seemed intimidating to use an IDE like this. But now after watching this video I can use Xcode with much ease and confidence. Thank you so much for sharing your knowledge.
Good to hear that, Glad it helped! 🙃
this was alot helpful man !! i was struggling from last 1 hour on how to add other c program file in the same folder and not get any error . THANKS ALOT
Glad it helped!
I have been regretting of why I bought mac book pro, because I can't run c programming in it and it is my first language in university, but now you've really helped me a lot thank you so much
Glad this helped!
I need to find an alternative to visual studio code for basic C coding. Xcode is perfect for this. You are god-sent!
Great way to explain how to get started in Xcode. Well done sir!
Thank you :)
That was it what I was looking for past 2 hours. Thanks for the video
I'm now ready to start learning C, thank you!!
I did not know how to run another c++ in the same project. That is very helpful for me.
Thanks bro sab log vs code mein c kaise install kare wala video bana rhe and they are so confusing. But here you comes as a thor 🐱 who saves from by giving me new term xcode . All thanks to you!!!!!👍 Keep up the good work
Glad you liked it, I will also try to come up with my version of VS Code soon, hopefully it will reduce your confusion.
@@madhurendratripathy bro u are not on instagram? For queries?
@@SumitYadav6530roll I quiet didn't get your question.
@@madhurendratripathy nothing
Thank you so much bro. I have been struggling for creating new files for hours!! Finally getting it done. Literally save my life!!!!❤
i have the same problem haha.
Thanks for the help. I've been wasting too much time trying to get makefiles to work, so I figured I might as well try xcode.
I was regretting to buy M1 Mackbook pro because I was unable to run code in vs code but this video helped me a lot.
Thanks brother
Glad that it was helpful.
I just got my Mac, and I've installed Codelight, Eclips, and VScode and they all have their own issues running C++. All the work around is a pain.
@@Jnoel608 Will try to bring up a video on VScode soon. I think it is a good editor, you can use it for almost any language with the help of extensions in the VS Code store.
Basically for me its my like my goto all in one editor for many languages like Java, Python, Web Dev using different frameworks like Django & MEAN stack, editing xml files, json files, terraform scripts, helm charts, comparing two files and many more such things...
@@madhurendratripathy sir pls make a video on vs code on macbook m1. There are so many users who are confused for installation vs code and its libraries for all languages including me .
Wow man!
Thats the way I wanted someone to explain it to me.
Just Great, all the coments are 100% true.
Do keep on making videos like this...
Thanks a ton. Glad it helped.
Thank you so much ,Explained effortlessly
Glad it was helpful!
Thank you brother was looking for this type of explaination from a long time. ❤️❤️
Glad it helped!
thanks brother, solved a lot of anxiety.
Thanks for helping me, thanks a lot from Uruguay!
I was frustrated as i was not familiar with the xcode and couldn't use C-language , than you for the help ❤️
Glad I could help! Thank you :)
@@madhurendratripathy please keep it up bro , you're helping out so many people.
wow! this helped me a lot... I could not download the version of codeblocks on mac so now i can do the same on xcode..
Glad it helped :)
Thank you soooooo very much. This was quick and easy to understand. Cheers!
Thank you for the post Madhurendra!
Thank you, Glad it helped!
Bro please continue this process of your work into this, this one be the nice
That i easily understandimg
Glad you liked it!
Thanks bhaiya , your videos are very helpful .
after so much of struggling I found you ,thank you brother could you please start a tutorial on c language ? it will help the begginer like me..
Thanks Man !! you did a great job !! It help a lot
Omg 😭😭😭 thank you so much... You are the answer to my prayer...
I’ve been looking for a solution how will I make code in my mac, because codeblocks really don’t work and don’t run even the hello world program 😭 Continue making videos... 🙏🏻 May God Bless you!
same here i was going crazy, thank you so much
I like your desert landscape!
Thanks mate, mine was giving me errors the whole time and now I know why!
Can u please make a tutorial on "How to download gcc compiler on m1 Macs".
Hi 20DPCO200_M. Sameem,
This is how you can do it in the easiest way :
1. Install HomeBrew using command given below, by running it in the terminal :
/bin/bash -c "$(curl -fsSL raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
If you need a video guide to installing HomeBrew you can watch my video : ruclips.net/video/i0DFPySAMTA/видео.html from the timestamp : 2:45 to 4:13
2. After successfully installing homebrew, run the command mentioned below in terminal :
brew install gcc
Now sit back & relax and let HomeBrew install gcc for you. It is smart enough to detect your machine as an Apple Silicon based machine & install gcc for Apple Silicon.
Thanks a lot for tips and tricks about Xcode.
Glad it helped!
hey there. I am trying to compile and run but it shows only grey in console after I press command + r. also after I pre command + r for a second an text appears on console saying "waiting to attach" and after only grey.
Can you please help me, with whats the alternative of getch() as this getch is not taken by xcode .
in output it is showing lldb what should i do ?🧐
It was very useful! Thank you so much!
Thank you brother for sharing, it indeed helped me.
Glad to be helpful : )
Hello i run a c program in xcode its build successfull, but its also shows that “could not launch (programs name)” LLDB provided no error strings. When i tried my cose in online compiler its totally works. Do you know how to solved this?? 🙏thx
did you get it?
3:49 char str_name [100]; (what is the meaning of 100 here bro and what is the name of this concept?
quick and easy to understand! thank you!
hey tripathy, i would really like to know about productivity, boosting tips & tools
Hi suryaman swain,
Will surely try to bring it to the channel.
Thanks for the feedback. 🙂
Please make the command line args video you were telling about
Sure, will definitely consider your feedback! Thanks :)
Since when was Xcode preinstalled on Macs? I've never seen that.
Thank you so much bhaiya this helped me a lot
Glad it helped!
Thanks for the Help bro
thank you so much, really appreciate the on point explanation!
Thank you bro for this love u
such a informative video sir nice explanation keep it coming sir...👍🏻👍🏻
Thank you, Glad that it was useful :)
Nice guidence
Hi! Can u please help me? Idk why when I run a program, its still VERY slow to run, (just like your first run on the video). what can I do? :(
Hi Rugg Hero,
Is that delayed run happening even during your second attempt to run the program?
@@madhurendratripathy yes. During ever single attempt I try
@@madhurendratripathy Every time I pressed cmd+R , I took like 30 seconds to see the output
Are you on the latest version of Xcode, if not, consider updating it and then retry.
@@madhurendratripathy i will check. Thanks
well done bro its so help full
Thank you, Glad that this was helpful :)
YOU ARE AMAZING THANK YOU!!!!!!!!
Glad you found it useful :)
Very informative
Thank you, this was very helpful!
Glad it helped :)
How to custom window with C++ in XCode?
Very helpful video, is there anyway we can rename the main function that is created ?
How i can run my whole project?
When i try to run my project it always run the first file not the other file.
Very well explained brother.Nice job🙏🏻🙏🏻
Thank you! Glad it helped :)
See i am a student of btech first year and i am having macbook air 2020 so is X code capable for all the c language programming
Yes it is definitely capable for almost all of the tasks you would do in your college life, especially if you are specifically concerned about C, don't worry it will easily handle it.
Bhaiya G mere MacBook version 10.11.6 ha apna MacBook version update kaise kru???? Plz reply
Hi Mr Taranveer,
If you meant to ask how you can update Xcode on your Mac, you can go to AppStore and search for Xcode there, if there is an update available for your machine, you should see an update button, click on that & you should be good to go. Note that Xcode is pretty huge in size and hence updating it might take some time based n your internet connection speed.
great video sir ,keep up the great work👍🏻
Thank you, glad it helped!
is xcode does not support mutliply()?
Great Video, straight to the main point.
Can I add more than one file and execute it? When I tried, I am getting a "build failed" message. What might be causing this ?
Hi Mark Sardar,
I have demonstrated how we can write different individual programs under the same Xcode project (parent folder) but under different individual program directories from 3:54 ( ruclips.net/video/_cDXKReugEU/видео.html ) in my video, if you meant that you want to have all the programs/code files under one directory, to my understanding that is not possible in Xcode because, Xcode uses something called as 'target' and one target cannot have multiple files with main( ) function mapped to it, if we try to do run a program with multiple main( ) functions it throws build failed error with a message stating "duplicate symbol '_main". If you wish to have multiple program file in same directory, I would suggest you to use some other IDE like VS code or Atom. I have already made a video on how to use Atom on macOS(ruclips.net/video/i0DFPySAMTA/видео.html) & will try to make a video on VS Code, soon.
@@madhurendratripathy Thank you for taking your time and reply. Yeap, I was trying to put multiple MAIN() files under the same folder and it doesn't work, since you already know it won't work, that makes sense.
I have watched your Atom video and it was GREAT ! I also have tried VSCODE; however, I think it may have some glitch cuz when I ran multiple lines for code, VS code just says "running" without any output on the console. The exact same code works on xCode and CodeRunner perfectly fine.
My only complaints about the xCode is, it's a HUGE file and given the HDD of a Macbook, it's just too much :-(
Great Videos and keep up the good work :)
@@marksardar1890 Can't agree more about the size of Xcode, but the fact is that it is not made for C & C++ Command-line tools development, instead it is built for building apps for all the Apple Eco System of products. I even made fun of Xcode's huge size in my Atom on macOS vwelldevelopment
@@madhurendratripathy yeap, I noticed that on your Atom video. My Macbook in only 250GB, so that size of xCode, which is 20+ GB is a dealbreaker for me. Also, since Macbook HDD is NOT possible to upgrade, I try my best to avoid any large files/programs.
I have purchased CodeRunner, which can run C/C++ and many other codes. I wasn't aware of Atoms capability but I will follow your video and try to make it work.
I appreciate your video, it was helpful for me.
thank u man, that was helpful!
Glad it helped.
if I install xcode ..i do not need to install any compiler or code editor ?
Xcode comes bundled with Xcode-command line tools which includes Clang compiler. Clang is a compiler for the C, C++, Objective-C, and Objective-C++ programming languages & is compatible with GCC, you can still opt to use GCC based compilers if you want to.
You can learn more about Clang here : en.wikipedia.org/wiki/Clang
If you chose to install GCC compiler, may be this guide can help you : www.cyberciti.biz/faq/howto-apple-mac-os-x-install-gcc-compiler/
Coming to code editor, its your choice, you can either use Xcode or get any other editor or you can pick both of these options. Editing/Writing code in Xcode is a good experience, especially for C & CPP, I think it is a really good editor and the debugging in Xcode is quite amazing. I have talked more about it in my Helpful features of Xcode video. But for working on other technologies like Python, Web Development & Shell Scripting etc.. I personally use VS Code as it provides a better experience.
I would suggest that you try different editors and stick with the ones that you find the best for your use cases.
Happy Coding :)
ok thanks bro
...i have to do c++ only so i will install xcode
@@shvmmm3987 Sure that will do it then.
Thank you very much🙏🏻😆
Is the mac book m1 air base variant enough for programming in c, python,java etc?
Hi Erik Anil,
Yea, for basic programming, I think that M1 MacBook Air is a really good machine.
I am personally now using a M1 MacBook Air but with 16GB of RAM/Unified Memory & it is serving me really well.
Also not to confuse you, when I say basic programming it covers almost everything that a college student or an early professional might do. At-least on the programming side, unless you are planning to build Enterprise level applications, I personally don't think that you will need a M1 Pro or M1 Max machines.
Also just a heads up, 8GB of RAM/Unified Memory should be sufficient for most of the tasks, but if you are planning to either have a few virtual machines running or planning to use your machine for a very long period of time (may be upwards of 4 years) then I would recommend getting the 16GB RAM/Unified Memory variant iff your budget allows it.
I am facing the run time error which shows that duplicate symbol for architecture arm64 ..what to do??
Hi Sayantan Chakraborty,
Please see if any of the solutions mentioned on stackoverflow help you.
stackoverflow.com/questions/26303782/duplicate-symbols-for-architecture-arm64
Thank you very much Bro😄
Bro i m only getting the option edit scheme new scheme manage scheme
I m using Macbook pro M1 pro
very helpful....
Hello,
I need help I can't run this program on my mac, I have exams soon, please
Hi NGON BULU,
What is the issue that you are facing ?
3:52 Thank you!
Glad to see that you found that tip to be useful! :)
I'm doing as you explain, and indeed it does create the hello world project. However, when I try to build/run it, I get this pop-up dialog asking me to log into my keychain. How can I get rid of this? I don't (consciously) use keychain, and I actually don't want to use it. Why does this dialog keep popping up?
Hi Mario Louni,
I have personally never faced this issue, do you also use Xcode for any sort of iOS / iPadOS / macOS development? Tried to look up your issue on the internet & looks like it is due to some developer certificate. Please checkout solutions from : stackoverflow.com/questions/10068566/xcode-keeps-asking-for-password-to-use-the-system-keychain they might be helpful.
@@madhurendratripathy Thank you for your quick reply. In the meantime I had found a solution to the problem. In the target settings, under "Signing Options" > "Code Signing Identity" I had selected (or, rather, it was the default) "Apple Development". When I changed that to "Sign to Run Locally", everything built and ran just fine. I'm wondering why the project creator chooses "Apple Development" as the default. Can you observe the same?
Showing Recent Issues
1 duplicate symbol for architecture x86_64
why this error and how solve this
Hi Chirag Lodha,
Can you check if any of the solutions provided here work for you :
stackoverflow.com/questions/24298144/duplicate-symbols-for-architecture-x86-64-under-xcode
Love u brother ❤️
really helpful😃
Glad it helped!
Hello brother is there any way to download and run turbo c++ and dev c++ in m1 macs?? Plz help
Hi Somu Datta,
Dev C++ is indeed one of my favourite code editor on Windows, but unfortunately it was never designed for macOS ( Even not for x86 based intel Macs). Coming to TurboC3, I don't think that it will be ever available for M1 based Macs, because it is a legacy application now for x86 platform itself. TurboC3 is a 16-bit MS-DOS application which we could run on intel based Macs, but the user experience was very bad due to it being highly unresponsive, I have personally tried to run it on my MacBook Air 2017(Intel i5 5th Gen based machine) & I faced a ton of issues after which my hunt for a good code editor began. I have discussed this in my very first video on this channel ( ruclips.net/video/i0DFPySAMTA/видео.html ). I suggest that you try to find any other code editor which suits your needs. If you think that Xcode is too overkill which I definitely can understand, give Atom or VSCode a try, there are many other editors loved by the programming community like Sublime Text, TextMate, Brackets etc... & this is a never ending list... you can try these as well. If you want to try Atom, the video link that I have shared above will be helpful.
Happy Programming :)
@@madhurendratripathy Thanx a lot for your reply really appreciate it brother 🙏❤
is this also for MacBook Air M1 ?
Yea, it will work on M1 based machines.
Hy can you please make a video on how to set up VS code on macbook for c programming
Feedback noted, will try to bring it out as soon as possible.
Thank you, man!
This was so helpful. Thank you!
Glad that it was helpful!
Thank you Madhuendra..
You're most welcome.
Please make more videos!
Will it work in M1 chip?? To code C/C++
Yes you can. Shouldn't cause any trouble.
hello, i am trying to code on new m1 chip macbook pro when i code in xcode and click on run button to run my c++ file i am not getting the output nor any error its just blank
Hello Vishal,
Are you able to at least see the I/O area ?
I am referring to the I/O panel that I pull up at 2:29 in my video.
No i am not able to see anything
and whenever i use my xcode i can see the rainbow color cursor
Hey Vishal,
Check if Xcode on your machine is running via Rosetta2 or is it running natively, try changing the running mode to the other option and then check if your problem is resolved.
Lastly if even this doesn’t work then reinstalling Xcode should fix it.
bro you are awesome
Glad it helped.
mordern bahuballi is you, Thank you bro!
Haha, Thank you 🙂.
why #include extension gives error (Mac air Big Sur OS)
Hello Praveen,
The header file "conio.h" is not a part of the standard C or C++ header files library, it was actually developed specifically for MS Dos compilers to perform I/O operations. In fact "conio.h" is not even defined in "POSIX".
As "conio.h" is not included in your Mac's C & C++ compiler, it throws an error when you try to include it. Your Mac can still perform I/O operations with out this particular header file.
Refer this Wikipedia link : en.wikipedia.org/wiki/Conio.h to learn more about the the same.
better to use Xcode in order to have access to the command line tools but better to use other IDE for building programs, yes?
Hi 91dgross,
You can follow this approach, but if you only need Xcode Command Line tools, you don't have to install the complete huge sized Xcode for it. You can simply install Xcode command line tools from Apple's Dev Website and its size will be around 500MB.
Link to website : developer.apple.com/download/all/?q=Command%20Line%20Tools
I have issue the header file when I run my program. The header file gave me error message says file not found when I use extension file. Like #include Could you tell me if you know why and how to fix it?? Thanks
Hey Tadsual Mulaw,
Are you using Xcode? If no, then have you installed Xcode command line tools on your Mac ?
@@madhurendratripathy yes i'm using Xcode version 12.5 but i can not run .h" Extension header file
@@Henoktsegaye3874 Please check if you have selected the language properly when you were setting up your project. If you find out that you have configured the project correctly (i.e, if the language is configured to either C or C++) then please consider re-installing Xcode.
helpfull Vedio
Glad to hear that.
Really useful, this is exactly what I was looking for, thank you sir!
Thanku bro💥
As a beginner should someone begin by learning C or C++ ?
Hi William Castro,
I think C/C++ are very good languages to begin with, I personally started learning C as a beginner & then learnt C++ (Typical college way of teaching/learning here in India).
Yea, it is a fact that these languages are a little more "code writing" when compared to languages like Python, but the granular level controls these languages provide (For Ex : Micro managing the Memory) are worth learning. Also not to forget that these languages are very widely used even today for various big projects.
In-fact I think learning other languages, after learning C/C++ is way easier when compared to going the other way around.
Hope this helps..
Happy Coding.
i am a beginner, while searching about xcode, i came to know about "xcode command line tools "which are installed using terminal. what are they and do i need them ?
thankyou.
Hi Sahil Rajput,
A fresh, out of the box MacBook, does not come with software required for programming. When you install Xcode on your Mac, you get some of the requisites like C, C++ compilers etc.. But installing Xcode comes at a cost of huge download size and disk space consumption & if you are not going to be using Xcode for development of software/apps for apple systems (BTW Xcode is used for development of apps on macOS,iOS,iPadOS, watchOS) then downloading such a huge app like Xcode may be unnecessary, so in-order to get requisites like C,C++ compilers etc.. with out installing Xcode, you can just install the Xcode Command Line Tools(This can be downloaded from apple's developer website : developer.apple.com/download/all/) which is like 500MB in size & you should be good to go.
@@madhurendratripathy Thankyou for the info.
i just needed a compiler for c/c++ and searched on the web and came to know about xcode.
now that i have downloaded xcode, do i need to also instal xcode command line tools from terminal ?
@@sahilrajput6955 No, you don't have to install command line tools if you have installed Xcode. Those command line tools come bundled with Xcode itself.
Thanks alot man that was awesome.
But i am just facing program making functions in c it doesn’t get called any tips plz?
Hey Omar Essam7859,
Calling functions should not cause any issue, can you please share what is the error that you see along with the syntaxes that you have been using for function declaration & calling.
#include
#include
#include
int fact(int a){
int s;
int sum=1;
for(s=1;s
There was no error but it just stops working and whenever i create a function
It just keeps running until the line where function is called in main and doesn’t give me any output just keeps running with no output
@@OmarEssam-qm9jz For the first run give it some time, like I had said in the video, the first run takes some time & after that runtimes are very low & good, its just that for the first run, it takes some time.
Ok thank you so much
Thannks man!!!
Glad it helped :)