Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8073105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:13:53+00:00 2026-06-05T14:13:53+00:00

I think the issue is with a function ConvertToUpperCase included in a helper library

  • 0

I think the issue is with a function ConvertToUpperCase included in a helper library used in my CS course. I am trying to write something for my experiment but I learned with the helper library – so I don’t know what to do without it.

The full error error:

LNK2019: unresolved external symbol “class std::basic_string,class std::allocator > __cdecl ConvertToUpperCase(class std::basic_string,class std::allocator >)” (?ConvertToUpperCase@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@Z) referenced in function “public: bool __thiscall Lexicon::containsPrefix(class std::basic_string,class std::allocator >)” (?containsPrefix@Lexicon@@QAE_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)

The function is included in strutils.h and explained here

Sample code:

#include "stdafx.h"
#include <cstdlib>
#include <string>
#include <iostream>
#include <set>
#include <fstream>
#include "genlib.h"
#include "strutils.h"
#include "simpio.h"
#include "set.h"
#include "lexicon.h"

using namespace std;

/* Function: AddWord1
* -----------------
* This function prompts the user for a code and then
* coverts entry to upper case and adds this word to the code list passed in.
*/
void AddWord1(Lexicon & lex)
{
    cout << "Please enter activity code to add: ";
    string word = ConvertToUpperCase(GetLine()); //may need to remove for code
    lex.add(word);
    cout << word << " added to code list." << endl;
}

Clarification:

  • yes, this was working code in 2009 and 2010 – so it was implemented.
  • the library was a .lib and I am now using the sourceForge version.
  • VS 2008, it last was working from a VS2005 compile, I have tried VS2005 and VS2011BETA but still have errors.
  • I am trying to make sure the appropriate cpp files are added to the project; I think they are. My genlib.cpp is dated 2011 and is different than the github.com/b33tr00t/cs106lib version which is for Linux users, so it makes sense that there are some differences.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T14:13:54+00:00Added an answer on June 5, 2026 at 2:13 pm

    There should be a library containing the compiled code as well as the header that you have. You need to add that library (a .lib or .obj file) to your project – specifically you need to include it in the linker settings.

    If you don’t have that then you might have one or more C++ source files defining those functions – you could add those to the project.

    If you have none of those then you have a problem, I’m afraid.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've tried to write the recursive Ackermann function in Java. But I think I've
I'm having a solr query syntax issue (I think) with solr 1.4. I'm trying
I think this is an escaping issue or something. When I execute the query
Having an issue here that I have tried everything I can think of but
I'm having an issue that I think is simple to diagnose, but I can't
I have what I think should be a fairly simple mapping issue, but not
I've been asking similar questions here today, but I'm seeing I think the issue
I'm not a beginner, but the more I think about this issue, the more
BACKGROUND I'm trying to write a function query query('type', 'parameters', 'bind_types') which I can
I think I know the issue with this, but I do not know how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.