Thread: The sour taste of C, or rather compiling

  1. #1
    Make Fortran great again
    Join Date
    Sep 2009
    Posts
    1,413

    The sour taste of C, or rather compiling

    I hadn't been doing any *real* programming for the last few months (ladder logic for Allen-Bradley PLCs and some Python here and there), but this past weekend I wanted to try and compile ZSNES from the latest SVN snapshot. Also today at work I needed/wanted to compile libmodbus on Windows and make some test programs.

    I am so sick of having to hunt down this and that when it comes to compiling crap. Some projects are pretty good about keeping everything flawless. I've compiled DOSBox, Octave, and Audacious from source numerous times throughout their different versions with minimal issues. Octave takes forever to compile and you see an occasional error, but I've always been able to compile, install, and use without problems.

    Maybe I just suck at hunting down the errors, but f@$#%@. So sick of hunting down stuff, especially just to see it not work in the end. Sometimes compiling can be so smooth, and other times you have to beat your head into the wall.

    Starting to see the real world appeal of higher level languages. I found modbus-tk on Google Code and was off and running in 20 minutes (with Python).

    End rant.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by Epy
    I am so sick of having to hunt down this and that when it comes to compiling crap.
    (...)
    Starting to see the real world appeal of higher level languages. I found modbus-tk on Google Code and was off and running in 20 minutes (with Python).
    I don't see how Python has any advantage here, other than the existence of common repositories for non-standard libraries, but you took the code directly from Google Code rather than by using pip (or easy_install etc) anyway. You could have run into problems with code written for different Python versions, or problems where the code was not properly tested and which are only caught at run time on rarely executed control flow paths.
    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

  3. #3
    Make Fortran great again
    Join Date
    Sep 2009
    Posts
    1,413
    Right, I understand it comes down to the specific piece of software, just saying it seems to happen more with C. In my case, referring to platform-specific routines adding to the complexity of the compiling process.

  4. #4
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,273
    It all comes down to the size of your "built-in" libraries. With C, you don't have much by default (stdlib, a couple others depending on environment) so you have to spend time hunting them down.
    Java is a fair bit easier in this regard, but you have to stomach several tens of megabytes of default libraries.
    I've heard good things about Perl (or was I dreaming again? ) with its CPAN providing a repository of libraries, if you need something specific it will find it for you.
    Personally, I prefer being tight. Good documentation on library requirements for sources helps.

    P.S. Mine are bigger than yours.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling GNU MP
    By mattnp12 in forum C Programming
    Replies: 3
    Last Post: 06-23-2011, 03:58 PM
  2. why its not compiling..
    By transgalactic2 in forum C Programming
    Replies: 6
    Last Post: 04-15-2009, 08:02 AM
  3. Can you taste the spit in your burger?
    By Liger86 in forum A Brief History of Cprogramming.com
    Replies: 26
    Last Post: 08-24-2004, 12:35 AM
  4. Compiling
    By djdan in forum C++ Programming
    Replies: 2
    Last Post: 11-30-2002, 07:46 AM
  5. compiling?????
    By FliX in forum C++ Programming
    Replies: 8
    Last Post: 05-31-2002, 09:21 AM