Thread: a computer science tapestry

  1. #1
    Registered User
    Join Date
    Apr 2006
    Posts
    4

    a computer science tapestry

    I am a n00b to c++ and use a book called "A computer science tapestry" by astrachan http://www.cs.duke.edu/csed/tapestry/ .
    The book is very different from other books and i like it very much. but, i can't get the example programs to work. on the page you'll notice a lnk to download the example code. can anyone tell my how to make these programs work with dev c++? I will appreciate it very much.
    Thank you

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    7,366
    Any particular ones giving you trouble? Any error messages you can share? The ones I looked at should compile fine in the latest version of Dev-C++.

  3. #3
    Registered User
    Join Date
    Apr 2006
    Posts
    4
    the book i use is a singapore editon(i am from india). It comes with no cd. so from the tapestry website i downloaded wincode.zip. i created a new empty project in dev c++ and added all the files in the wincode.zip file and tried to compile the file "gfly.cpp" and i end up getting close to a 100 error messages! the main thing is some color.h file is missing. i figured it'll be in the toogl library so i zapped this file tapcygwin.tar. but i have no idea what to do with this. it contains some makefiles but how the heck do you "make" this library and what exactly should i do after i get "make" to run? Should i download cygwin and do something?
    thanks for the help

  4. #4
    C / C++
    Join Date
    Jan 2006
    Location
    The Netherlands
    Posts
    312
    I think you should start with the "Hello World" program before starting with large programs.
    Operating Systems:
    - Ubuntu 9.04
    - XP

    Compiler: gcc

  5. #5
    C++ Enthusiast jmd15's Avatar
    Join Date
    Mar 2005
    Location
    MI
    Posts
    532
    Yes, I am in concurrence with Ideswa. I think you should build a basic program in Win32 that ONLY displays and runs a window. Then from there you can work your way up to understanding the code you are trying to compile and just add that code onto your window program. I use Dev-C++ extensively for Win32 API programming so it may be an issue if it's MSVC++ code? Either way, that can be changed slightly to compile on Dev and you shouldn't have much of a problem.
    Trinity: "Neo... nobody has ever done this before."
    Neo: "That's why it's going to work."
    c9915ec6c1f3b876ddf38514adbb94f0

  6. #6
    Registered User
    Join Date
    Apr 2006
    Posts
    4
    Actually i went through hello world and all and gfly.cpp file appears in chapter3. the program is used to illustrate the use of oop as the programmer need not know the implementation to use the implementation. the problem is there is some library stuff which i don't know how to deal with and there are no instructions in the book either.

  7. #7
    Registered User
    Join Date
    Apr 2006
    Posts
    4
    i don't know how but i just opened a cmd prompt and changed to the directory containing the extracted files and found a readme which i did'nt know about. i followed the instructions and just typed make and it started compiling and it was doing well until the file directory.cpp which has some errors. can anyone download the files and instruct me how to compile them.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Computer Science vs Computer Engineering degree
    By PCG33K in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 10-03-2007, 07:13 AM
  2. Computer Science Major
    By Dark_Oppressor in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 11-20-2006, 09:18 AM
  3. Starting C++ & Computer Science Major
    By learning C++ in forum C++ Programming
    Replies: 8
    Last Post: 12-26-2003, 12:17 PM