Begginer
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Begginer

  1. #1
    Join Date
    Feb 2005
    Posts
    36

    Begginer

    Hey, im really new to c++ im in like a class right now at my school, but anyway. I use Larewnseville press textbooks they have an lvp folder. and i downloaded that from their site. its libraries for the include statements, anyway whenever i try to incluse the lvp/string library it gives me these errors:

    c:\program files\microsoft visual studio\vc98\include\lvp\string.cpp(59) : error C2065: 'strlen' : undeclared identifier
    c:\program files\microsoft visual studio\vc98\include\lvp\string.cpp(62) : error C2065: 'strcpy' : undeclared identifier
    c:\program files\microsoft visual studio\vc98\include\lvp\string.cpp(346) : error C2065: 'strncmp' : undeclared identifier
    c:\program files\microsoft visual studio\vc98\include\lvp\string.cpp(374) : error C2065: 'strcmp' : undeclared identifier
    Error executing cl.exe.

    Anyone know whats wrong?
    thanks in advance guys im gunna like fail this class if i dont get help this weekend

  2. #2
    Join Date
    Mar 2004
    Location
    Central Florida
    Posts
    293

    Re: Begginer

    Unless you post the actual code we won't be able to tell you much if anything at all.

  3. #3
    Join Date
    Apr 2004
    Location
    In the back seat of New Horizons.
    Posts
    1,235

    Re: Begginer

    Quote Originally Posted by B-80
    Hey, im really new to c++ im in like a class right now at my school, but anyway. I use Larewnseville press textbooks they have an lvp folder. and i downloaded that from their site. its libraries for the include statements, anyway whenever i try to incluse the lvp/string library it gives me these errors:
    What the heck is a "lvp/string" library ? I've never heard of that.
    Quote Originally Posted by B-80
    c:\program files\microsoft visual studio\vc98\include\lvp\string.cpp(59) : error C2065: 'strlen' : undeclared identifier
    c:\program files\microsoft visual studio\vc98\include\lvp\string.cpp(62) : error C2065: 'strcpy' : undeclared identifier
    c:\program files\microsoft visual studio\vc98\include\lvp\string.cpp(346) : error C2065: 'strncmp' : undeclared identifier
    c:\program files\microsoft visual studio\vc98\include\lvp\string.cpp(374) : error C2065: 'strcmp' : undeclared identifier
    Error executing cl.exe.
    By the looks of those errors, I would say that you are missing the string header file. Another words, write "#include <string>" at the top of your C++ file.

    Imo, this belongs in the Non-Visual C++ forum, :shrug: .
    Here are the rules, you must obey them or the gender bender will get you.

    And if you ever think of posting without code-tags, the evil monkey will come after you.

  4. #4
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652

    Re: Begginer

    Well...it looks you are missing some header files here...make sure you have set the path to the include directory within the project options and that the appropriate header is actually being inlcuded in 'string.cpp'...
    Ciao, Andreas

    "Software is like sex, it's better when it's free." - Linus Torvalds


    Article(s): Allocators (STL) Function Objects (STL)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center