Thread: Lua missing definitions (compiled from source)

  1. #16
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    "...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

  2. #17
    Registered User awsdert's Avatar
    Join Date
    Jan 2015
    Posts
    1,733
    Didn't know about that, thanks

  3. #18
    Registered User awsdert's Avatar
    Join Date
    Jan 2015
    Posts
    1,733
    Okay I took a look at it and while I like it, it clashes a bit with make's original design philosophy which I'm sure simplified to "know nothing, make everything"

    Edit: What I mean is a lua based makefile handler should know jack about what it's building so I will continue with mine but I will start thinking of a new name once I get it to compile again
    Last edited by awsdert; 01-13-2019 at 09:51 AM.

  4. #19
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    So, are you still are not going to build lua and link to its static library?

    If yes, I think you will likely fail.

    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

  5. #20
    Registered User awsdert's Avatar
    Join Date
    Jan 2015
    Posts
    1,733
    ...hmm, seems I downloaded the wrong copy of the source, downloaded via different link, overwrote and the "undefined reference..." for the lua stuff just vanished, still got problem with compiler segfaulting though

  6. #21
    Registered User awsdert's Avatar
    Join Date
    Jan 2015
    Posts
    1,733
    Link I gave earlier will now be broken, project renamed
    GitHub - awsdert/lu: Replacement for make/nmake/GNUMake

  7. #22
    Registered User awsdert's Avatar
    Join Date
    Jan 2015
    Posts
    1,733
    It seems a combination of the name change, deletion of my project folder and re-cloning my repositry (and a changing a few errors in coding&style) got it to finally compile

  8. #23
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    You didn't use version control despite knowing about Git?

    I siggest putting aside your lake program and starting with a hello world program involving lua. That said, make sure that you can get this to work and hence eliminate the possibility of some setup/environment issue. If you do manage to get it to work, start adding stuff from your lake program, step by step, under version control, so you can find out where it goes wrong.

    In other words, find the smallest program that demonstrates the error. Normally, it would be silly to ask this of an entire non-trivial program, but then people normally use version control for non-trivial programs so that they don't have to do this.

    EDIT: oh, so it seems ypu have solved your problem.
    Last edited by laserlight; 01-13-2019 at 12:59 PM.
    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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. New to C need help with definitions
    By Embed in forum C Programming
    Replies: 7
    Last Post: 01-01-2015, 09:00 PM
  2. Replies: 9
    Last Post: 05-09-2013, 09:37 PM
  3. Replies: 23
    Last Post: 03-07-2011, 05:28 PM
  4. #include causes missing symbol definitions
    By mjl3434 in forum C Programming
    Replies: 4
    Last Post: 02-17-2011, 01:43 PM
  5. Replies: 1
    Last Post: 03-12-2008, 12:10 AM

Tags for this Thread