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

  • Home
  • SEARCH
  • 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 8838519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:01:03+00:00 2026-06-14T10:01:03+00:00

I am new to c++ and visual studio 2012 so probably the problem is

  • 0

I am new to c++ and visual studio 2012 so probably the problem is between the screen and the chair. I performed the following steps;

  1. I made a simple proto file with the option optimize_for = LITE_RUNTIME
  2. Create the matching h and c files with protoc
  3. Compiled the library libprotobuf-lite.lib
  4. Created a new console Visual Studio 2012 project.
  5. Copied the libprotobuf-lite.lib where my single source file is.
  6. Created a new folder named protobuffers
  7. Copied the c, h and the google directory from the protobuffers src directory to the protobuffers folder
  8. Added the protobuffers folder as an Additional Include Directory
  9. Added the library file to the linker through Additional Dependencies
  10. Compiled the following source file;

    #include <iostream>
    #include "protobuffers\genome.pb.h"
    
    int main()
    {
       genomeMessage::Genome genome;
       return 0;
    }
    
  11. Stuck… I get the following error;

    1>Source.obj : error LNK2019: unresolved external symbol "public: __cdecl genomeMessage::Genome::Genome(void)" (??0Genome@genomeMessage@@QEAA@XZ) referenced in function main
    1>Source.obj : error LNK2019: unresolved external symbol "public: virtual __cdecl genomeMessage::Genome::~Genome(void)" (??1Genome@genomeMessage@@UEAA@XZ) referenced in function main
    1>C:\Projects\testproto\x64\Debug\testproto.exe : fatal error LNK1120: 2 unresolved externals
    

So I know it is not a missing lib file because if I move the lib file the linker complains that it can’t find it. The problem is that I have no clue how to fix this … anyone?

  • 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-14T10:01:05+00:00Added an answer on June 14, 2026 at 10:01 am

    According to this message:

    1>Source.obj : error LNK2019: unresolved external symbol "public: __cdecl genomeMessage::Genome::Genome(void)" (??0Genome@genomeMessage@@QEAA@XZ) referenced in function main
    1>Source.obj : error LNK2019: unresolved external symbol "public: virtual __cdecl genomeMessage::Genome::~Genome(void)" (??1Genome@genomeMessage@@UEAA@XZ) referenced in function main
    

    the source file that declares genomeMessage::Genome::Genome(void) and genomeMessage::Genome::~Genome(void) is not part of your project.

    In particular, it sounds like you haven’t added the genome.pb.cc file (which is created by the Protocol Buffers compiler) to your project.

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

Sidebar

Related Questions

When I create a new WPF application in Visual Studio 2012 the platform target
I am new to Visual Studio 2012 and Javscript coding. I have two questions
I am new to Visual Studio and this problem has been bugging me for
In Visual Studio 2012, the find dialog have been changed. When the new 'Quick
working with visual studio 2012 ultimate everytime i create a new dependency graph i
I read some small articles about Visual studio 2012 and the new features. But
I've created a brand new MVC 4 application in C# using Visual Studio 2012.
I have installed the new Visual Studio 2012 Ultimate. I have created a Test
I recently updated to Visual Studio 2012 and now, when I create a new
When I create a new ADO.NET Entity Data Model in Visual Studio 2012, it

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.