creating libraries for c++

This is a discussion on creating libraries for c++ within the C++ Programming forums, part of the General Programming Boards category; Originally posted by Okiesmokie uhh that is not a library file, that is a header file. In visual C++ in ...

  1. #31
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    Originally posted by Okiesmokie
    uhh that is not a library file, that is a header file.

    In visual C++ in the new project menu, you choose Static Linked Library and write your code, hit the build button and voila you have a library.
    Why don't you re-read my post. I never once stated that it was a library file. I was just showing a simple header.
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

  2. #32
    Unregistered
    Guest
    Name the file menuscreen_.h instead of .cpp
    name the function something else than main, like void menuscreen()
    include menuscreen_.h in excalibur.cpp and call menuscreen(), don't call the file, call the function.

  3. #33
    Sir Mister Insane Sako Klinerr1's Avatar
    Join Date
    May 2002
    Posts
    608
    no it was supposed to be a cpp file, i meant like attaching files, not header(include files).
    Email: Klinerr1@nc.rr.com || AIM: MisterSako || MSN: sakotheinsane@hotmail.com

    -the shroom has spoken

  4. #34
    x4000 Ruski's Avatar
    Join Date
    Jun 2002
    Location
    Outer Space!
    Posts
    542
    Sams Teachyourself C++ In 21 Days is a good book to read. Maybe you'll get something from there. Besides, it's free on the net
    what does signature stand for?

Page 3 of 3 FirstFirst 123
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  2. MinGW thread-safe runtime libraries
    By Mario F. in forum C++ Programming
    Replies: 3
    Last Post: 08-21-2006, 08:15 AM
  3. Two questions (Linking Libraries and Creating Them)
    By Thantos in forum Linux Programming
    Replies: 3
    Last Post: 03-21-2004, 04:01 PM
  4. Resource ICONs
    By gbaker in forum Windows Programming
    Replies: 4
    Last Post: 12-15-2003, 06:18 AM
  5. creating libraries in c
    By reallyfreakedou in forum C Programming
    Replies: 2
    Last Post: 03-31-2003, 11:12 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21