Menu

Problems with Apvector? anyone?

2002-10-09
2012-09-26
  • Nobody/Anonymous

    I get apstring to work in my programs ,but when I try to use apvector I get errors? Its not my code I could Just #include it and it gives me errors. Please any suggestions?

     
    • Matt Fiedler

      Matt Fiedler - 2002-10-09

      This is a snippet from a post I put in another thread.  It should apply to your case.

      A few things to remember:

      1) You must download the AP classes (both the ".h" and ".cpp" files) from the AP website and put them in a folder where Dev-C++ can find them. They are not a standard part of any C++ distribution.
      2) Remember to include the headers!
      3) When using apstring, the file "apstring.cpp" must be part of your project.
      4) When using any of the other classes (for example, apvector) the corresponding ".cpp" file must not be included in your project.

      I'll just finish this off by saying that I just compiled a few test projects which use the code from the AP classes on Dev, so I know they can work without a problem.

      I hope this helps.

      Matt

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.