Thread: genlib.h and genlib.c

  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    208

    genlib.h and genlib.c

    Does anyone know where you put genlib.c and genlib.h in Dev C++. I have this program I would like to run.
    Thanks

  2. #2
    Registered User
    Join Date
    Jun 2005
    Posts
    6,815
    They're non-standard. Put them in the same directory as the source code for your project.

    Without more information about what they are, or how you intend to use them, that's the best advice I can offer.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Buttercup, and read this, this, and this before posting again.

  3. #3
    Registered User
    Join Date
    Jan 2010
    Posts
    208
    Thanks anyway I have no idea what to do I'm wondering if the libraries weren't meant for VC++ 6.0 before .net anyway I give up on the learning the c language I think I'll go back to C#

  4. #4
    Registered User
    Join Date
    Nov 2012
    Posts
    1,393
    If you actually want to learn to use libraries, better to start with the standard library (in C this is admittedly small) and then move on to some libraries which are designed and tested for many environments. The most popular libraries almost all have documentation describing in detail how to install, compile, write programs using the libraries, etc.

    You seem to have chosen a non-standard library for some reason where you mention only a filename, obviously lacking any documentation and seem frustrated because you can't get it to work in your environment (Dev C++ and/or VC++ 6.0). Also without providing any details of what you tried to get it to work or what went wrong. Finally you say you actually want to learn C# anyway. I hope this is not the attitude you take with your C# projects.

  5. #5
    Registered User
    Join Date
    Jan 2010
    Posts
    208
    I guess I just don't understand how to use a library. The only reason I was learning c anyway was because I wanted a stronger base in procedural techniques all the way thru data structures. C# is the language I'm supposed to be learning in college. It's just that by Programming 2 they introduce us to windows programming and I felt I haven't had enough basic fundamentals yet. I bought this book called Programming Abstractions in C and decided to take a look at some advanced stuff so I copied a program out of the book on how to make fractals or something like that and It uses the genlib.h in it. I just don't have a clue how to use it or what to do. Eric Roberts is the author of the book and I think the library. I just couldn't find any information on it. Maybe I'm jumping the gun and there's information on how to use a library in the book. I just don't know. Anyway I'll investigate it more later.

  6. #6
    Registered User
    Join Date
    Nov 2012
    Posts
    1,393
    Quote Originally Posted by artistunknown View Post
    I copied a program out of the book on how to make fractals or something like that and It uses the genlib.h in it. I just don't have a clue how to use it or what to do.
    Basically if you want help on it here you have to post code and what you've tried, error messages you received, etc. It could be that getting this library working in your environment is an "exercise left to the reader". As part of reading the book you must also solve some problems as the learning process. If you get stuck then just giving up is probably not good. At worst, move on to an example that is more concrete, etc. When you come back to one you're stuck on it might be easier afterwards.

    For more suggestions check the book list in this forum

    C Book Recommendations

  7. #7
    Registered User
    Join Date
    Jan 2010
    Posts
    208
    Well thanks for the advice I will post the problem again later with some code and the error messages. I think I should do a little more research on the subject before post again I just tried to understand some advanced concepts before I was ready Sorry for the trouble. I guess my post was just way to vague. I'm not going to give up on c. Trying to learn two programming languages at the same time might be a little confusing but, I might be able to handle it.

Popular pages Recent additions subscribe to a feed