Thread: codeblocks strikes again

  1. #1
    Registered User
    Join Date
    Apr 2019
    Posts
    808

    codeblocks strikes again

    code blocks is on its last chance can anyone recommend a decent ide for linux other than eclipse that hides its self on installation and wont actually let you do c with out a lot of effort.

    yet again it has excelled its self in annoying me. tonight it let a piece of code through with glaring errors. which lead me down the garden path for 2 hours. When i copied and pasted the code back in it threw a hissy about the obvious ones and one that's not so obvious to me.

    that is three times now i have done nothing to the code other than copy and paste or change the order of the printf's and i have got completely differing results.

    it hasn't even got the excuse anymore of running on a virtual machine.

  2. #2
    Old Fashioned
    Join Date
    Nov 2016
    Posts
    137
    Try Visual Studio Code with GCC. That's what I use. It's fast and works great. You can get an extension and get GUI debugging functionality out of it using GDB or LLDB or whatever you want.
    If I was homeless and jobless, I would take my laptop to a wifi source and write C for fun all day. It's the same thing I enjoy now!

  3. #3
    Registered User
    Join Date
    Apr 2019
    Posts
    808
    i didnt realise you could get visual studio for linux

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Visual Studio Code is a heavyweight editor or a lightweight IDE, depending on what extensions you install. Visual Studio, on the other hand, is a heavyweight IDE. Two different tools.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    Registered User
    Join Date
    Apr 2019
    Posts
    808
    i will google both im surprised microdaft allows either of them to be ported to linux

  6. #6
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Quote Originally Posted by cooper1200 View Post
    code blocks is on its last chance can anyone recommend a decent ide for linux other than eclipse that hides its self on installation and wont actually let you do c with out a lot of effort.

    yet again it has excelled its self in annoying me. tonight it let a piece of code through with glaring errors. which lead me down the garden path for 2 hours. When i copied and pasted the code back in it threw a hissy about the obvious ones and one that's not so obvious to me.

    that is three times now i have done nothing to the code other than copy and paste or change the order of the printf's and i have got completely differing results.

    it hasn't even got the excuse anymore of running on a virtual machine.
    Compiler warnings are from the compiler not the CB IDE.
    So, I suggest you learn what warning options the compiler you are using supports and set them in the CB Global compiler settings or the CB Project settings.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  7. #7
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by cooper1200 View Post
    i will google both im surprised microdaft allows either of them to be ported to linux
    Visual Studio Code was implemented with multi-platform functionality in mind; I don't think there is any port of Visual Studio to Linux beyond say, Wine.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  8. #8
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,738
    Quote Originally Posted by cooper1200 View Post
    that is three times now i have done nothing to the code other than copy and paste or change the order of the printf's and i have got completely differing results.
    It's not the IDE's fault you tend to misunderstand the effects of a piece of code and of your edits to it. Stop blaming your tools, it's not the knife's fault you cut yourself...
    Devoted my life to programming...

  9. #9
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    My guess would be that you were tired and somehow ended up either not saving the code, or forgetting to compile it, or sometimes you might need to do a rebuild but didn't.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  10. #10
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Quote Originally Posted by laserlight View Post
    My guess would be that you were tired and somehow ended up either not saving the code, or forgetting to compile it, or sometimes you might need to do a rebuild but didn't.
    +1 on needed to do a rebuild.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  11. #11
    Old Fashioned
    Join Date
    Nov 2016
    Posts
    137
    True story: (And I am not drawing paralells to you, this is for entertainment only) I knew a guy who spent several days on a school projected, frustrated, telling me that the professor wouldnt help him set up his compiler, that the compiler wasn't properly configured...

    It ended up being he had accidentally been editing the wrong source file and building another... Yeah, he dropped out of CS to be an "entrepreneur."

    In any event that could be the problem as others have stated.

    On the subject of Visual Studio Code (VSC), yes it's definitely available on Linux. Secondly, yes Microsoft sponsored dev of VSCode and it uses similar baseline styling, but almost everything else is totally diferent from Visual Studio. It is MUCH faster and far smaller than VS. Offers extra features via extensions.
    If I was homeless and jobless, I would take my laptop to a wifi source and write C for fun all day. It's the same thing I enjoy now!

  12. #12
    TEIAM - problem solved
    Join Date
    Apr 2012
    Location
    Melbourne Australia
    Posts
    1,907

  13. #13
    Registered User
    Join Date
    Apr 2019
    Posts
    808
    @greaper have a google of codeblocks errors the best one is it suddenly quits on its own accord

  14. #14
    Registered User
    Join Date
    Apr 2019
    Posts
    808
    Quote Originally Posted by stahta01 View Post
    Compiler warnings are from the compiler not the CB IDE.
    So, I suggest you learn what warning options the compiler you are using supports and set them in the CB Global compiler settings or the CB Project settings.

    Tim S.
    if you had something that has been around x number of years and field tested by millions of people over those years then you had something that used it that had been around a few months and tested by a relative few would you blame the first thing or would you suspect an issue with how the second thing was using it.

    a few weeks ago someone said to me that i hadn't posted the full error message which i had cut and pasted out of codeblocks i then copied out the whole message including path of the file etc etc but in essence the actual error message was the same. Out of interest i went into xfce and ran gcc from there i got a whole host of information that was nowhere to be seen in codeblocks so codeblocks truncates its warnings. and yes codeblocks is set to -Wall

  15. #15
    Registered User
    Join Date
    Apr 2019
    Posts
    808
    @click_here im not sure what to make of that article im not sure if its good or bad. The story i have heard from people in the know is that microsoft is going to start licensing windows on a yearly basis. linux has pretty much got to the stage now where any mere mortal can use it. which makes it a threat to windows if they do start charging a yearly fee.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. MS STL strikes again
    By VirtualAce in forum C++ Programming
    Replies: 2
    Last Post: 07-11-2008, 04:56 PM
  2. Aran strikes back
    By Aran in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 08-11-2002, 11:22 AM

Tags for this Thread